VS 2019上的WPF .NET Core安装程序 [英] WPF .NET Core Installer on VS 2019

查看:724
本文介绍了VS 2019上的WPF .NET Core安装程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望在Visual Studio 2019中为使用.NET CORE 3.0的WPF应用程序创建安装程序(而不是控制台应用程序)。



能帮帮我吗对任何第三方工具或其他任何可行的方法有一些建议?



我已经研究过ClickOnce和Wix,但都没有提供任何创建选项上面的安装程序。



我知道有两种发布.NET Core应用程序的方法,但此后我需要创建一个安装程序,而我找不到能实现目标的任何东西。 / p>

解决方案

WiX工具集绝对可以用于打包已发布的.NET Core 3.0应用程序。

步骤将如下所示:由于没有深度的工具集成(如Jon Skeet的正确建议),这将需要一点弯头油脂。

/ p>


  1. 发布.NET Core项目

  2. 引用1个或多个.wxs中已发布文件夹中的所有文件文件

  3. 在发布.NET Core项目后构建.wxs文件的.wixproj

我非常有信心即使我没有使用过.NET Core 3.0也能正常工作,因为我们对 FireGiant


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.

解决方案

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.

这篇关于VS 2019上的WPF .NET Core安装程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆