I have created a build configuration but the "Add Config transforms" option doesn't show up for me. I've tried currently being on that build configuration or not. I've tried to add the file manually, but then it doesn't stack with the original Web.config file.
Release. config transformation files that are created by default for the two default build configurations. You can create transformation files for custom build configurations by right-clicking the Web. config file and choosing Add Config Transforms from the context menu.
Switching configuration based on configuration is a perfect use of transformations. Web. config transformations are implemented using a markup language called XML Document Transform - XDT for short. XDT is an XML-based document format invented by Microsoft and used to describe changes to a Web.
This package allows you to automatically transform your app. config (or any file) when you press F5 in Visual Studio. You can have different transformations based on the build configuration. This will enable you to easily have different app settings, connection strings, etc for Debug versus Release.
Install "Configuration Transform" extension. And this option will show up.
Tools -> Extension and updates... -> (select "Online" and type "transform" into search box)
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