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

질문됨 일 년 전649회 조회
2개 답변
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
답변함 일 년 전
profile picture
전문가
검토됨 한 달 전
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
전문가
iwasa
답변함 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠