I have a Multi-tenant Deployment projects . I have about 150 tenants, each tenant represents an ASP.net site. Each of this ASP.net site has a web.config file with different connection string and other client specific settings. In all of my web.config file I have this line
<compilation debug="true" targetFramework="4.5">
I want to remove debug=“true” from the above tag. I created a NuGet package with a single transform file called Web.Release.config. My transform file looks like this
<?xml version="1.0"?> <configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform"> <system.web> <compilation xdt:Transform="RemoveAttributes(debug)"/> </system.web> </configuration>
I ran this package on all of my 150 tenants, but my default web.config didn’t change , it did not remove debug=“true” from any web.config file. I don’t know what I am doing wrong.
Please help me