I have two asp.net core project which is targeting net5.0. I have web.config in the project as well namely
web.config
web.staging.config
web.production.config
I try to publish the project using the following command
dotnet publish --configuration Staging -o D:\Websites\testwebsite
The above command works perfectly and the environment variable is set in web.config properly.
But when I run the same command in another project it does not change the environment in web.config

