Web.config is removed when application code is published

Alex Harytovich 0 Reputation points
2023-10-17T19:04:36.76+00:00

Whether I am publishing locally or using Azure DevOps the result doesn't include web.config file.

The file has Build Action = Content in properties.

What could be the reason?

Windows development | Internet Information Services
Developer technologies | ASP.NET | Other
{count} votes

1 answer

Sort by: Most helpful
  1. Alex Harytovich 0 Reputation points
    2023-10-18T04:23:13.2866667+00:00

    Sorry, I should have provided an updated. After basically going through all the files in Visual Studio Code and searching for "web.config" I found *.wpp.targets file that had "web.config" excluded. That was the reason.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.