为asp.net项目创建setup.msi打包

时间:2012-09-15 15:03:38

标签: asp.net visual-studio-2010 installation web-deployment

我需要使用VS2010创建一个asp.net setup.msi包,并按照此处的说明Create ASP.NET deployment package using Web Deployment and Web Setup project (MSI installer)后仍然无法创建.msi文件。我没有得到任何错误。

输出文件夹显示:

  Running aspnet_merge.exe.   Successfully merged '.\TempBuildDir'.
------ Skipped Build: Project: WebSetup1, Configuration: Release ------ Project not selected to build for this solution configuration 
========== Build: 7 succeeded or up-to-date, 0 failed, 1 skipped ==========

但是,我没有在输出中看到.msi文件 如何创建msi部署包?

1 个答案:

答案 0 :(得分:2)

如果您不需要安装程序,则可以选择使用VS内置的“构建部署包”。它创建一个不包含源代码文件的zip文件。您需要做的就是将文件解压缩并部署到适当的环境中。我发现创建一个msi要容易得多。