Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

1.1K
Visualizações
In Visual Studio 2022, publish to IIS returns a build error, but publish to Folder is ok (and it was all working fine before)

I've updated Visual Studio 2022 to 17.1.0 recently and I now have this weird error, but not on every project (on only one up to now). I've tested other projects and they still work fine.

But this one project won't publish to IIS. It builds/runs locally, it can publish to a Folder profile, and a previous version is working in IIS.

It's a .NET 6.0 web api project.

In the Output window I can see these 2 errors:

Error CTC1000: Method not found: 'Void Microsoft.VisualStudio.Containers.Tools.Shared.Functions.AzureFunctionsFeedDataProvider..ctor(Microsoft.VisualStudio.Containers.Tools.Common.Services.Logging.ILoggingService)'.
Error MSB4018: The "KillAppInsideContainer" task failed unexpectedly.

But I'm not deploying on Azure and I'm not deploying on a container. The project was set up for Docker use but I commented out the <DockerDefaultTargetOS> part of the .csproj and excluded the dockerfile from the project to test if it impacted the resut; it removes the KillAppInsideContainer error but not the other one.

Any help appreciated! Thanks

over 4 years ago · Santiago Trujillo
2 Respostas
Responde à pergunta

0

Remove package Microsoft.VisualStudio.Containers.* || Microsoft.VisualStudio.azure.Containers.*
over 4 years ago · Santiago Trujillo Relatório

0

To solve this publishing issue, I came back from Microsoft.VisualStudio.Azure.Containers.Tools.Targets version 1.14.0 to version 1.11.1 from nuget packages

over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda