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

已提问 1 年前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
已回答 1 年前
profile picture
专家
已审核 1 个月前
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
已回答 1 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则