更改已部署的 clickonce 应用程序的命名空间

发布于 2024-08-13 07:01:01 字数 117 浏览 2 评论 0原文

我犯了一些命名空间拼写错误,我希望纠正它。我的应用程序当前使用 Application.Settings 来存储大量用户信息。如果我将命名空间重构为拼写正确,应用程序设置文件是否会因为无法在其中找到新的命名空间而被擦除?

I made a bit of a namespace spelling mistake and I wish to correct it. My application currently uses Application.Settings to store a bulk of the user's information. If I refactor my namespace to be spelled correctly, will the application settings file essentially get wiped because it can't find the new namespace in it?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

寄与心 2024-08-20 07:01:01

我相信 ClickOnce 会将其视为不同的应用程序,所以是的,应用程序设置将“丢失”。我必须自己这样做一次,然后我丢失了所有设置。用户必须将其作为新应用程序安装,并重新设置他们的个人信息。

我从来没有得到关于为什么会出现这种情况的明确答案,但这是我的猜测:

如果 ClickOnce 表现不佳,那么有人很容易用他们自己的恶意应用程序替换您的应用程序,因此从安全角度来看,这是有道理的。

然而,我可能是错的。你可以尝试一下,然后看看。如果设置丢失,您可以随时恢复(假设您正在使用源代码管理)。

I believe that ClickOnce will see this as a different application, so yes, the application settings would be "lost". I had to do this once myself, and I lost all the settings. Users had to install it as a new application and set up their personal inf all over again.

I never gt a definitive answer on why this was, but here's my guess:

If ClickOnce behaved otherwise, it would be too easy for someone to replace your app with a malicious one of their own, so from a security perspective, this makes sense.

However, I could be wrong. You could try it, and see. If the settings are lost, you can always revert (assuming you're using source control).

雨夜星沙 2024-08-20 07:01:01

我以前从未尝试过此操作,但看起来您应该能够将 app.exe.config 文件名更改为应用程序的新名称,假设您可以编写脚本,它就会很好地读取它到您的部署中。

I've never tried this before, but it looks like you should be able to just change the app.exe.config filename to your app's new name and it will read it just fine, assuming you can script that into your deployment.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文