从上下文菜单中发布(单击一次)和Visual Studio 2010中的项目属性页面有什么区别? [英] What's the difference between Publish (Click Once) from the context menu and from the Project properties page in Visual Studio 2010?

查看:144
本文介绍了从上下文菜单中发布(单击一次)和Visual Studio 2010中的项目属性页面有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个使用Visual Studio 2010的C#编写的Windows GUI客户端。当我从项目的属性页面发布时,它会在项目的上下文菜单中成功失败。有人知道为什么会发生这种情况吗?

解决方案

我从Microsoft的ClickOnce团队得到一个答案。



当您在构建菜单上使用发布选项时,它完全可以避免Visual Studio中的任何内容,并直接使用msbuild。如果您使用发布选项卡上的发布按钮,则用户已安装的任何加载项影响了构建和发布的过程(他说在进入msbuild之前会经过VIsual Studio)。所以使用Build菜单总是会更好。


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?

解决方案

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.

这篇关于从上下文菜单中发布(单击一次)和Visual Studio 2010中的项目属性页面有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆