Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在部署一个 ClickOnce WPF C# 应用程序,一切正常。
每当我发布新版本时,我的用户都会在应用程序重新启动时收到标准 ClickOnce“更新可用”消息,但该消息并没有指定更多内容,而不仅仅是“有新版本”..
有没有办法改变它MessageBox并添加更多信息?(例如:新版本说明/理由、版本号等...)
MessageBox
您可以控制您的应用如何通过清单检查更新。
使用它,您可以用自己的机制替换默认机制。包括你自己的看法。这可以说任何你想要的。
https://docs.microsoft.com/en-us/dotnet/api/system.deployment.application.applicationdeployment?redirectedfrom=MSDN&view=netframework-4.8
那里有诸如更新版本之类的属性。