问题
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