How to Fix “Cannot Publish Because a Project Failed to Build” error
The Problem: You attempt to publish your C# ClickOnce application in Visual Studio 2010, but you get the “How to Fix “Cannot Publish Because a Project Failed to Build” error” error. There are no syntax errors.
The Cause: No idea
The Solution: Simply right click on the solution in the Solution Explorer, and click “Publish” – no idea why that works, but it does.