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

feita há um ano649 visualizações
2 Respostas
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
respondido há um ano
profile picture
ESPECIALISTA
avaliado há um mês
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
ESPECIALISTA
iwasa
respondido há um ano

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas