Ok. So, I have a setup project that writes out the "primary output" and some other files.
I have EXCLUDED the app.config that is automagically renamed to MyApp.exe.config.
In addition i have 3 config files, (Dev/Stg/Prd).exe.config
I have their target names set to MyApp.exe.config
I have added a 3 radio button screen to the installation process.
I added conditions (on the 3 config files ) that check the selected radio button value.
The aim is that the user selects one of the 3 radio buttons (you guessed it)
Development / Staging / Production and the appropriate config file is written out to the application folder.
Here's the problem:
If the targetname of the config files are set to anything other than MyApp.exe.config it will output the correct version of the file.
When I set the target name of (all) the config files to MyApp.config.exe it only outputs the config file when I select the 3rd radio button.
I don't care what messed up steps i have to take to make this work, I'm just looking for some way to beat this into submission.
(And whoever has the I hate Microsoft forever..., I agree with you)
-Sometimes the answer to your question is the hack that works
I have EXCLUDED the app.config that is automagically renamed to MyApp.exe.config.
In addition i have 3 config files, (Dev/Stg/Prd).exe.config
I have their target names set to MyApp.exe.config
I have added a 3 radio button screen to the installation process.
I added conditions (on the 3 config files ) that check the selected radio button value.
The aim is that the user selects one of the 3 radio buttons (you guessed it)
Development / Staging / Production and the appropriate config file is written out to the application folder.
Here's the problem:
If the targetname of the config files are set to anything other than MyApp.exe.config it will output the correct version of the file.
When I set the target name of (all) the config files to MyApp.config.exe it only outputs the config file when I select the 3rd radio button.
I don't care what messed up steps i have to take to make this work, I'm just looking for some way to beat this into submission.
(And whoever has the I hate Microsoft forever..., I agree with you)
-Sometimes the answer to your question is the hack that works