PS: I cannot find any VS2008 version to peg this under, the drop-down only lists VS2010.
The problem is in Setup from VS2008. I have not tried the same in VS2010
I am unable to build a Setup Project for an Asp.Net project, the installer itself fails with the message:
"ERROR: Unable to build project output group 'Content Files from <Project Name> (Active)'"
Normally, this error is easilly fixed by simply adding or removing references that are marked with a yellow triangle (indicating that they are missing), but this time, I cannot find any of these.
To make matters worse, when I right-click the setup project in VS2008 and select "ReBuild", it works every second time with no errors, and every second time with the error above. I've ran the build using detailed output to no avail, no hints are given.
So, I did a dir /S /B on the entire solution to see if there is a change on disk from when the setup project builds and when it does not and I found that there are some mysterious xml files that are in the bin folder every other build, these come from libraries such as Log4Net.dll (gives log4net.xml), Castle.Windsor.dll (gives Castle.Windsor.xml) etc. I suspect that these dlls have embedded these xml files as content files, because they contain, in general what appears to be intellisense text.
I've ensured that none of the projects are configured to render any xml documentation.
What I *suspect* is that these xml files are embedded as Content, and that for some reason, because they are in referenced dlls and not directly referenced dlls, they are extracted too late for the setup project to catch them. What I can't explain is why this works every second rebuild. Running the devenv.exe as a command line to build the same setup project fails every time.
Other things that I've done:
I run VS2008 as administrator.
I have reviewed the ASP.Net Project numerous times, using "show all files" to see if any reference is missing, but found none.
I've tried to exclude the dlls that contain the xml files from the "Content Files" in teh setup project as well as using filters such as *.xml etc.
I hope that someone at the Setup team knows what this is about and can help me, I am completely stuck, and cannot get our CI server to build this last setup project because of it, it is a major blocker.