Publishing ASP.NET Core app from Visual Studio 2022 to Azure does not work without checking out web.config

twoelfer@hotmail.com 136 Reputation points
2022-07-04T18:37:40.913+00:00

When I try to publish my ASP.NET Core app from VS 2022 (latest version) to Azure, the publishing fails in case the projects web.config file is not checked out.

After manually checking out this file, publishing works.

How can I make publishing work without the manual step? (I can not switch to github and I can not use continuous publishing)

WM_THXADVANCE

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,201 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,632 questions
Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
943 questions
{count} votes