'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.

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.

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. I also removed the xml File from my project, but it didn't help either

  • This post: Setting the startup project to my web application changed nothing.

Both of the above Posts are from this thread on forums.asp.net.



Solution 1:[1]

I had this problem also. (Visual Studio 2010 Pro, .Net 4.0) I found the missing file using "Publish..." option. Right click on the web app. Up near the top of the menu (5th from the top for me) is "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.

Solution 2:[2]

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. Good luck

Solution 3:[3]

I have faced the same issue at my side. `

[how to resolve ERROR: Unable to build project output group 'Content Files from XYZ.xyz (Active)]

so solution ==> as per my project resolution I was just removed the reference file same name as the reference shown in the error block as [XYZ.xyz (Active) ] from the WCFSetup project followed by clean with Rebuild the solution.

The problem will be resolved and .MSI, as well as .setup file, will generated

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 user1698125
Solution 2 AshMan
Solution 3 Kundan Jaiswal