从WinForms应用程序中删除的ClickOnce应用程序、WinForms、ClickOnce

2023-09-03 15:38:51 作者:牵着蜗牛去散心

我有打算使用的ClickOnce WinForms应用程序。但事实证明的ClickOnce不会为我的应用程序工作,所以我想将其删除。只是......似乎没有成为一个明显的方式来做到这一点。有没有非的ClickOnce按钮。有谁知道我需要让我的应用程序像从前那样的ClickOnce集成本身有什么步骤?

I have a WinForms application that was going to use ClickOnce. But it turns out ClickOnce won't work for my application, so I'd like to remove it. Only...there doesn't seem to be an obvious way to do this. There's no "Un-ClickOnce" button. Does anybody know what steps I need to take to get my app to be like it was before ClickOnce integrated itself?

(我知道我可以创建一个新的项目,进口的东西进去,但它似乎愚蠢不得不这样做,所以我希望有另一种方式。)

(I know I can create a new project and import stuff into it, but it seems silly to have to do that, so I'm hoping there's another way.)

推荐答案

其他答复这里是不正确的或有帮助。这是不正确的指出,它永远不需要删除。

Other responses here are not correct or helpful. It is incorrect to state that it never needs removing.

这样的一个例子,我经历了最近是当应用程序有一个需要管理权限。任何试图嵌入管理要求纳入清单会导致应用程序甚至没有编制,而ClickOnce是仍然present的解决方案。

One such example I experienced recently was when the application had a need for administrative privileges. Any attempt to embed administrative requirements into the manifest will result in the application not even compiling while ClickOnce is still present in the solution.

下面的两个步骤,使我能够关闭的ClickOnce(在Visual Studio 2010):

The following two steps enabled me to turn off ClickOnce (in Visual Studio 2010):

在项目属性,

的登录的标签:取消选中签署的ClickOnce清单 的安全的标签:取消选中启用的ClickOnce安全设置 Signing tab: Untick "Sign the ClickOnce manifests" Security tab: Untick "Enable ClickOnce security settings"