I need to base on debugging or release mode to create a tag on web config.
And I have tried these below codes, but they didn't work.
#if !DEBUG
<hostingEnvironment shadowCopyBinAssemblies="false" />
#Endif
<hostingEnvironment Condition="'$(Configuration)'=='Release'" shadowCopyBinAssemblies="false" />
Neither of them worked.
CodePudding user response:
Unfortunately, you can't do it for config files. I suggest that you use a configuration file transformations.
Check out this documentation for examples: http://msdn.microsoft.com/en-us/library/ie/dd465318.aspx