Last post Oct 12, 2018 02:46 PM by nathon
Oct 04, 2018 01:43 PM|nathon|LINK
I'm trying to get an ASP.NET site setup to do XDT transforms through TFS builds, for a CI/CD pipeline. I need to add the various web.config files for each environment, since they don't currently exist. I right-click on the web.config file and select Add
Config Transform. It then creates a bunch of Web.XXX.config files, where XXX is not in the Configuration Manager.
For instance, here are just a few of the Web.XXX.config file names.
However, when I open the Configuration Manager, I only see the following active solution configurations.
The active solution platform contains the following.
I have searched high and low for where the additional Web.XXX.config file names are coming from, but to no avail. Does anyone know where these might be sourced from?
Oct 05, 2018 06:21 AM|Zhi Lv - MSFT|LINK
To specify the changes that you want to be make in Web.config files, you use transform files. A transform file is associated with a build configuration. By default, Visual Studio creates Debug and Release build configurations. You can also create custom
More details about Transform Web.config When Deploying a Web Application Project, please refer to the following links:
Oct 12, 2018 02:40 PM|nathon|LINK
That's not what I was asking. I'm familiar with config transforms. What I'd like to know is where the additional web.XXX.config names came from, if not from the Configuration Manager. I show several additional config transforms that I can't account for anywhere.
Oct 12, 2018 02:46 PM|nathon|LINK
Actually I just had an idea, which lead me to the answer. When I use the Solution Configurations drop down on the tool bar, I only see the 3 configurations (Debug, Release and Release with Documentation) and the active project is esp. When I click on Configuration
Manager, the Active Solutions Configuration drop down also only has those 3 configurations. However, if I open the configuration drop down for the esp project, all of the missing configurations are there.
This is interesting. Why would they show for the project, but not for the solution when the active project is that same project? Either way, I found the answer. I hope this helps others!