Problem using AWS Toolkit in Visual Studio when deploying my .net application

0

I have installed AWS Toolkit in visual studio. I seem to have connected fine, as the panel on the left connects to my AWS account and displays proper AWS services. I then follow directions from here (https://docs.aws.amazon.com/toolkit-for-visual-studio/latest/user-guide/publish-experience.html). When i right click on my project, and select 'Publish to AWS', i get a message stating 'There are no compatible publish targets for this application'.

My project is .NET 6.0 Console Application targeting Windows 7.0. Ultimately what i am trying to do is have AWS host our website.

Message

asked a year ago564 views
2 Answers
0

The "Publish to AWS" workflow scans the .csproj and directory you are attempting to publish to make its recommendations for which AWS Services to publish to.

Some key pieces of information it's searching for include:

  • <Project Sdk="Microsoft.NET.Sdk.Web">, to denote ASP.NET web applications
  • <Project Sdk="Microsoft.NET.Sdk"> or <Project Sdk="Microsoft.NET.Sdk.Worker">, to denote long-running or scheduled console applications
  • The presence of a Dockerfile, to denote containerized applications

Currently it's unable to match your application to one of the built-in "recipes". See the Failed to find compatible deployment recommendations section of the troubleshooting guide for more info.

If you reply with a slimmed down, anonymized version of your .csproj we may be able to advise how to adjust and/or submit bug or feature requests to support your use case.

profile pictureAWS
answered a year ago
0

Hi, @rePost-User-6855801.

You have to select a deployable project type for AWS.
In this case you should select the ASP.NET Application template.

profile picture
EXPERT
iwasa
answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions