How to Fix “Cannot Publish Because a Project Failed to Build” error

by Steve French in How To Fix on October 1, 2010

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

Creative Commons License photo credit: sarnil

 

This post originally appeared on the Stronico blog – with the absorption of Stronico into Digital Tool Factory this post has been moved to the Digital Tool Factory blog