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年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ