I submitted a question to MSDN support describing a problem where ClickOnce publishing was failing with just one error:
Error 1 Cannot publish because a project failed to build. 1 1 Scheduler3
The IDE provices no other error information. The response back from MSDN is that DeveloperExpress components can cause this problem. Their response follows:
--------
"Since I found DevExpress staff in your project, I think you may have DevExpress add-ins on Visual Studio. Sometimes, the third-party add-ins will cause unexpected issues. So I asked you to try running the Visual Studio in safemode that will force the visual studio loading only the default environment and services, and shipped versions of third party packages.
Generally, we can simply disable all the third-party add-ins to fix the issue. But per my experience, the DevExpress may add hooks on visual studio and the simple disable may be not able to fix the issue. So if the issue is still there, please uninstall the DevExpress."
-------
As they suggested later down in their message, I restarted VS2010 in safemode and was able to ClickOnce publish without a problem. This got me past my immediate problem except that I just tried to ClickOnce publish another app and got the same error. So your stuff has a bug or MSDN support is misleading me.
Either way it seems that you should look into the issue.
We have closed this ticket because another page addresses its subject:
It is impossible to publish a project when IDE Tools are loaded at the IDE's startup
Hi Tim,
I've reproduced the problem locally, and this seems to be a bug in the current version of our IDE Tools. I've registered the corresponding bug report on your behalf, and we'll do our best to fix it as soon as we can:
ID: B156192, It is impossible to publish a project when IDE Tools are loaded at the IDE's startup
However, I found that on my machine the problem occurs only when our tools are loaded at the IDE's startup. So, as an immediate solution, I suggest that you activate the "Load Manually" option. Please do the following:
Core
This page level is Expert, and will only be visible if the Level combo on the lower-left of the Options dialog is set to Expert.
This seems to fix the problem on my machine.
Please try this workaround, and let us know whether this helps.
Thanks,
Vito