我正在使用web.config转换文件的概念。我有三个Web配置。一个是分期,生产,部署。我有这三个不同的连接信息。VS.中的Web.Config转换
的Web.Config:
<connectionStrings>
<add name="MyGallery"
connectionString="Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=DevelopmentStorageDb;Data Source=BALA\SQLEXPRESS" />
</connectionStrings>
Web.Config.Production:
<add
name="MyGallery"
connectionString="Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=SharePoint_Config;Data Source=BALA\SQLEXPRESS"
xdt:Transform="Replace" xdt:Locator="Match(name)"
/>
现在我建立它工作正常的代码。我已经创建了这个包。当我在生产模式下运行代码时,新的连接字符串没有占用。
我该如何解决这个问题。我是否需要额外的努力将其移动到某个地方
软件包仅在生产配置文件设置中创建。 – 2009-07-13 22:48:13