我有一个带有2个转换的web.config - 用于调试和发布.
web.config中:
<connectionStrings>
<clear />
<add name="StrName" connectionString="data source=.\sqlexpress;User Id=sa;Password=pass;Database=SocialBot;"
providerName="System.Data.SqlClient" />
</connectionStrings>
Run Code Online (Sandbox Code Playgroud)
我刚刚复制了给出的示例并用StrName替换了名称.我最终得到:
<add name="StrName" connectionString="$(ReplacableToken_SocialBotConnectionString-Web.config Connection String_0)"
providerName="System.Data.SqlClient" />
Run Code Online (Sandbox Code Playgroud)
到底是什么ReplacableToken_?
我有另一个项目,它没有任何问题.