I need to convert the app.config file using msbuild. I can convert the file if it is called app.DEBUG.config or app.Release.config, but I cannot if I add one called app.PROD.config.
Using regular XDT conversions, msbuild will recognize different web.config files if I select a different PublishProfile
msbuild path.to.project.csproj Configuration=Release PublishProfile=DEV
App.config does not seem to work with the same setting. I can always create a specific build configuration for installing DEV.config, but it seems useless to have a separate build confirmation for one application. The hacker way to do this is to simply copy the correct app.config file for the POST-BUILD environment.
I tried using the SlowCheetah plugin, but it only seems to convert the default DEBUG and RELEASE configuration files, which is not suitable since I have more than two environments. If I really use this incorrectly, tell me which parameter I should pass to msbuild in order to select my .DEV.config application.
The expected result will be that msbuild will convert app.config according to the conversion configured as app.DEV.config or the one configured for app.PROD.config. I would expect that there is a parameter that I can pass to msbuild that will allow me to use the Release configuration, but convert with a different name for each environment.