Visual Studio MSI问题:无法建立项目输出组“来自SOMEWEB的内容文件(活动)”

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.

请享用。

翻译自: https://www.hanselman.com/blog/visual-studio-msi-problems-unable-to-build-project-output-group-content-files-from-someweb-active

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值