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.
Web.config is removed when application code is published
Alex Harytovich
0
Reputation points
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
1,745 questions
Developer technologies | ASP.NET | Other
3,598 questions