简体   繁体   English

使用MSI文件部署web.config

[英]Deploy web.config with msi file

Back to .NET 2.0 -- I have a Web Site project which hosts a web service and I use Deployment Project to create MSI file to deploy the Web Site. 返回.NET 2.0-我有一个承载Web服务的Web站点项目,并且我使用Deployment Project创建MSI文件来部署Web站点。 The specifics of the situation require to deploy a new web.config when installing the MSI. 具体情况需要在安装MSI时部署新的web.config。 How can I include my web.config into MSI file created by the Deployment Project? 如何将我的web.config包含到由部署项目创建的MSI文件中?

(Not sure if Config Transforms are possible with Web Sites in .NET 2.0) (不确定.NET 2.0中的网站是否可以进行配置转换)

To include the file to MSI for deployment, right-click on the Deployment Project => Add => File... and select the file. 要将文件包含到MSI中进行部署,请右键单击Deployment Project => Add => File ...,然后选择文件。 It can be any existing file. 它可以是任何现有文件。 There is nothing special here about Web Site or web.config. 关于网站或web.config,这里没有什么特别的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM