使用System.Deployment不存在吗?
我尝试寻找system.deployment
在我的Blazor Server应用程序中使用此代码:
但是System.Deployment不在我的项目系统中,也不在可用的项目参考中,我在Google上查找可下载的.dll链接,Microsoft似乎没有它。我想念什么?我尝试使用使用System.Deployment
和使用System.Deployment.Application
,都不作用。
I've tried looking for System.Deployment
to use this code in my Blazor Server application:
But System.Deployment is not in my project system, nor in the available Project References, I looked on Google to find a downloadable .dll link and Microsoft doesn't seem to have it. What am I missing? I've tried using System.Deployment
and using System.Deployment.Application
, neither works.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
只需引用“ frameworkextract.system.system.system.deployment.deployment “ nuget” nuget。
祝你今天过得愉快,
Just reference the "FrameworkExtract.System.Deployment" nuget to your project.
Have a nice day,
如果您不想依靠外部软件包,则可以依靠注册表来跟踪其卸载中的应用程序版本。
基本上,当您去添加/删除并检查版本时。
我将使用上面的答案,只需通过Nuget软件包安装缺失的功能,但是我想我会在这里留给任何想要更多地控制自己获取版本信息的人。
If you're not looking to rely on an external package, you can rely on the registry to keep track of your applications version in it's uninstall.
Basically when you go to Add/Remove and check a version.
I'd use the above answer and just install the missing functionality through a nuget package but I thought I'd leave this solution here for anyone who wants a little more control over how they're getting the version info.