简体   繁体   English

无法从中构建项目输出组内容文件

[英]Unable to build project output group Content Files from

currently I'm trying to create an WebSetup Project for one of our ASP.net4/Silverlight-Web Applications using Visual Studio 2010. 目前我正在尝试使用Visual Studio 2010为我们的一个ASP.net4 / Silverlight-Web应用程序创建WebSetup项目。

I created the setup Project according to this tutorial, but when I'm trying to build the Setup Project (I did a build of the whole solution before), I get the following error: 我根据教程创建了安装项目,但是当我尝试构建安装项目时(我之前完成了整个解决方案的构建),我收到以下错误:

Unable to build project output group 'Content Files from MyWebProject (Active)'  

According to this and almost any other site I found, this error refers to items that are included in the web-project but missing on disk. 根据我发现的这个和几乎任何其他站点,此错误指的是包含在Web项目中但在磁盘上丢失的项目。

I checked all my projects twice, there is no missing file. 我检查了两次所有项目,没有遗漏文件。 Are there any other solutions to this problem? 这个问题还有其他解决方案吗?

Other things I tried: 我试过的其他事情:

  • This post: I do have .xml Files accompanying our .dlls. 这篇文章:我的.dml附带了.xml文件。 I also removed the xml File from my project, but it didn't help either 我还从我的项目中删除了xml文件,但它也没有帮助

  • This post: Setting the startup project to my web application changed nothing. 这篇文章:将启动项目设置为我的Web应用程序没有任何改变。

Both of the above Posts are from this thread on forums.asp.net. 以上帖子都来自forums.asp.net上的这个主题。

I had this problem also. 我也有这个问题。 (Visual Studio 2010 Pro, .Net 4.0) I found the missing file using "Publish..." option. (Visual Studio 2010 Pro,.Net 4.0)我使用“发布...”选项找到了丢失的文件。 Right click on the web app. 右键单击Web应用程序。 Up near the top of the menu (5th from the top for me) is "Publish...". 靠近菜单的顶部(对我来说是顶部的第5个)是“Publish ...”。 Click that. 点击它。 I did "Publish method: File System". 我做了“发布方法:文件系统”。 Publish fails for the same reason that building the setup fails. 发布失败的原因与构建安装失败的原因相同。 The difference is that when Publish fails, it gives an error message. 不同之处在于,当Publish失败时,它会给出错误消息。

In most cases it's due to missing files. 在大多数情况下,这是由于丢失文件。 Expand all your projects and check that none of them is marked with the Yellow Exclamation mark. 展开所有项目并检查它们是否都没有标记黄色感叹号。 For web applications the usual suspect is config.web and more specifically the Debug/Release versions , click on the '+' next to the Web.Config and see if they are marked as missing. 对于Web应用程序,通常的嫌疑人是config.web,更具体地说是Debug / Release版本,单击Web.Config旁边的“+”,看看它们是否被标记为缺失。 Good luck 祝好运

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

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