Will ClickOnce be ported to .NET Core 3 as well as WinForms?

别来无恙 提交于 2020-01-14 08:03:35

问题


Now that Winforms is being ported to .NET Core 3, what technology will be used for deploying those apps? Will ClickOnce also be ported?

Many of the properties used by ClickOnce are currently stored in the .csproj file, but those project files change significantly between .NET Framework and .NET Core, so presumably this would require changes to Microsoft's ClickOnce code to make it work?

Has there been any official word from Microsoft on this, I can't find anything in the documentation?


回答1:


It appears that ClickOnce will not be ported to .NET core:

Microsoft's Scott Hunter addressed this in the comments of the .NET Core is the Future of .NET blog post. He was asked:

What about ClickOnce? Will that be a supported distribution system for .NET 5 desktop applications?

To which he gave the response:

We are going to recommend MSIX for installation and support for MSIX will be added for Windows 7 so it should work on all the platforms you that .NET Core runs on.

More details MSIX can be found in Microsoft's MSIX documentation and in it's GitHub repo.

Other installation frameworks exist too, such as Squirrel.




回答2:


There is no mention of anything about .net core 3 winforms working with Clickonce. The answer provided above had a link that had Scott Hunter who redirected to Microsoft's MSIX technology. Based on my readings the only way to deploy to end users without using the Microsoft store is to "sideload" your application and that seems to involve many steps that may make the user hesitant even if you sign the package it seems that users have to enable sideloading first. Not my idea of user friendly.



来源:https://stackoverflow.com/questions/56390876/will-clickonce-be-ported-to-net-core-3-as-well-as-winforms

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!