C# web.config转换未转换
我正在将网站应用程序发布到Azure应用程序服务。我创建了一个QA配置文件,并添加了一个匹配的C# web.config转换未转换,c#,asp.net,visual-studio,azure,visual-studio-2017,C#,Asp.net,Visual Studio,Azure,Visual Studio 2017,我正在将网站应用程序发布到Azure应用程序服务。我创建了一个QA配置文件,并添加了一个匹配的Web.QA.config文件。以下是该文件的全部内容(包括一些修订): <?xml version="1.0"?> <!-- For more information on using app.config transformation visit http://go.microsoft.com/fwlink/?LinkId=125889 --> <!-- In case
Web.QA.config
文件。以下是该文件的全部内容(包括一些修订):
<?xml version="1.0"?>
<!-- For more information on using app.config transformation visit http://go.microsoft.com/fwlink/?LinkId=125889 -->
<!-- In case configuration is not the root element, replace it with root element in source configuration file -->
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
<appSettings>
<add key="ida:ClientId" value="9a...54e" xdt:Transform="SetAttributes" xdt:Locator="Match(value)" />
<add key="ida:ClientSecret" value="vuW...z3kY=" xdt:Transform="SetAttributes" xdt:Locator="Match(value)" />
<add key="ida:PostLogoutRedirectUri" value="https://....azurewebsites.net/" xdt:Transform="SetAttributes" xdt:Locator="Match(value)" />
</appSettings>
</configuration>
当我使用QA配置文件将站点发布到Azure应用程序服务时,这些值不会被转换
我做错了什么?您在匹配
值
而不是键
使用
xdt:Locator=“匹配(键)”
ah!现在我觉得自己很傻。当它允许我的时候,我会标记为答案