Only having debug and release web.config files is not enough for our deployment process. We use the standard Web.config
for local development, Web.Debug.config
for the shared development environment, and Web.Release.config
for staging and production environments.
Now we would like to have a distinct configuration for staging and production environments.
Is it possible to create a new configuration profile 'staging', have the associated web.staging.config, and tell the build process to use the transformations it defines when we select the appropriate publish profile?
Ok I got it. You need to go to the solution's properties > Configuration
> Configuration Manager
. Open the Active solution configuration
dropdown > New
, to create a new configuration scheme. Leave the Create new project configurations
checked.
Then right-click the web.config file and click Add Config Transform
. Finally, you can edit the publish profiles to use the new configuration.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With