What's the difference between Publish (Click Once) from the context menu and from the Project properties page in Visual Studio 2010?

杀马特。学长 韩版系。学妹 提交于 2019-12-14 03:54:06

问题


I have a Windows GUI client I've written in C# using Visual Studio 2010. When I publish from the project's Property Page it fails whilst it succeeds from the context menu on the project. Does anyone know why this might happen?


回答1:


I have an answer for this from the ClickOnce team at Microsoft.

When you use the publish option on the build menu, it totally circumvents anything in Visual Studio and uses msbuild directly. If you use the Publish button on the Publish tab, any add-ins that the user has installed impact the process of doing the build and publish (he said something like "it goes through VIsual Studio before getting to msbuild"). So using the Build menu is always better.



来源:https://stackoverflow.com/questions/4617046/whats-the-difference-between-publish-click-once-from-the-context-menu-and-fro

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!