MSI Web Setup Project Error: Unable to build project output group ‘Content Files from SOMEWEB (Active)’

I stumbled onto this error and thanks to Scott Hanselman’s blog I was able to find a solution to it.

The only problem? My project had a TON of files marked as Content (such as multiple versions of angular) and I didn’t want to spend all morning going through the countless folders to figure out which files were missing in order to resolve the conflict. If only Visual Studio has some way to verify this and let you know which files were missing…

Oh wait, it does! Its just buried and very difficult to find.

You can get visual studio to display all these “yellow icon” missing files by using the Publish Solution option. For those of you unfamiliar with the publish wizard, here is what I did:

  • Right Click your website project and click publish.
  • On the publish wizard that pops up, select Custom and type in any name for the profile.
  • For publish method, I selected File System and chose a directory to publish to.
  • Click the Publish button and it will error and show you exactly which files were missing. You may have to do this multiple times until you get all the missing files resolved.

1 comment

  1. It helped me resolve the build errors.. saved a lot of time. There are 100s folders and 1000s files in my project so it was like a nightmare when I found that some of the content files are missing in output.
    Thank you!

Leave a Reply

Your email address will not be published. Required fields are marked *