Is anyone using ClickOnce with VS2010?
I’m getting the following on publish, when the solution builds fine …
Building WindowsFormsApplication1...
Error: Cannot publish because a project failed to build.
Have tried everything, new clean project (both windforms and WPF), new temporary key, disabled pre-requisites and played with every publish setting.
I was hoping it’d be fixed in final, the same thing happened in RC
My ‘workaround’ at the moment is to use msbuild.exe with a clickonce.proj, along the lines of the following
http://social.msdn.microsoft.com/Forums/en-US/msbuild/thread/40bb7d32-a9ad-40d7-8113-cb3ed2747e69
(wired to an external tool+toolbar button as in hanselman’s parallel build blog post)
Funnily enough, publish from right-click on the project menu seems to work. It fires up the wizard rather than just publishing, so not ideal, but I do have 2 workarounds now (including the one stated in my original post).