我有一个成功转换连接字符串的Web.Release.config.
当我添加一个microsoft.identityModel部分我得到一个警告说
The ‘http://schemas.microsoft.com/XML-Document-Transform’ attribute is
not declared
而转换在该部分不起作用.
我失去了什么让变革工作?
在这里完成Web.Release.config
<?xml version="1.0"?> <configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform"> <connectionStrings> <add name="MYNAME" connectionString="Metadata=res://*/Models.MYCOMPANY-Sales-Demo.csdl|res://*/Models.MYCOMPANY-Sales-Demo.ssdl|res://*/Models.MYCOMPANY-Sales-Demo.msl;provider=System.Data.sqlClient;provider connection string="data source=.;initial catalog=MYCOMPANYDemo;UID=MYCOMPANYDBUser;Password=********;multipleactiveresultsets=True;App=EntityFramework"" xdt:Transform="SetAttributes" xdt:Locator="Match(name)" /> </connectionStrings> <system.web> <compilation xdt:Transform="RemoveAttributes(debug)" /> </system.web> <microsoft.identityModel> <service> <audienceUris> <add value="http://MYCOMPANY-sales-demo.cloudapp.net/" xdt:Transform="Replace"/> </audienceUris> <federatedAuthentication> <wsFederation realm="http://MYCOMPANY-sales-demo.cloudapp.net/" xdt:Transform="SetAttributes(realm)" /> </federatedAuthentication> </service> </microsoft.identityModel> </configuration>