Often when building MSI Windows Installers from ASP.NET Web Projects within Visual Studio.NET you'll get this error:
在Visual Studio.NET中从ASP.NET Web项目构建MSI Windows安装程序时,通常会出现以下错误:
Unable to build project output group 'Content Files from SOMEWEB (Active)'
无法建立项目输出组“来自SOMEWEB的内容文件(活动)”
And you'll have no idea why this happened, no descriptive error message, nada.
而且您不知道为什么会这样,没有描述性的错误信息,nada。
Turns out that this is the MSI builder's way of telling you that it can't physically find a Content File that is referenced in the Project (CSPROJ, or VBPROJ).
原来,这是MSI构建器告诉您无法物理找到项目中引用的内容文件(CSPROJ或VBPROJ)的方式。
The trick is turn on 'Show All Files' and open every folder until you find one with the Yellow Yield Icon. This subtle tip is telling you that this file doesn't exist on disk, but it does exist in the Project. Right-Click on it and Exclude From Project.
诀窍是打开“显示所有文件”并打开每个文件夹,直到找到带有黄色产量图标的文件夹。 这个微妙的提示是告诉您该文件在磁盘上不存在,但在Project中确实存在。 右键单击它,然后从项目中排除。
When the MSI Installer builder can't find a file marked as Content, it borks.
当“ MSI安装程序”构建器找不到标记为“内容”的文件时,它会失败。
Enjoy.
请享用。