WPF .NET Core Installer on VS 2019

眉间皱痕 提交于 2019-12-25 04:18:08

问题


I am looking to create an installer for a WPF application with .NET CORE 3.0 (not a console application) in Visual Studio 2019.

Can you help me out with some suggestions for any third party tools or any other way it can be done?

I have already looked into ClickOnce and Wix but both don't provide any option to create an installer for the above.

I know there are 2 ways to publish a .NET Core application but I need to create an installer after that and I cannot find anything that will me achieve the objective.


回答1:


The WiX Toolset could definitely be used to pack up a published .NET Core 3.0 application. It will take a bit of elbow grease as there isn't deep tool integration (as Jon Skeet correctly suggests)... yet.

Steps would be something like:

  1. Publish .NET Core project
  2. Reference all the files in published folder in 1 or more .wxs files
  3. Build .wixproj of .wxs files after publish .NET Core project

I'm pretty confident this will work even though I've not used.NET Core 3.0 yet because we've done something very similar for a complex .NET Core 2.0 application at FireGiant.



来源:https://stackoverflow.com/questions/55529451/wpf-net-core-installer-on-vs-2019

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