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

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

问题描述

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

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?

我已经研究过 ClickOnce 和 Wix,但两者都没有提供任何选项来为上述创建安装程序.

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

我知道有 2 种方法可以发布 .NET Core 应用程序,但之后我需要创建一个安装程序,我找不到任何可以帮助我实现目标的方法.

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 help me achieve the objective.

推荐答案

WiX 工具集绝对可以用于打包已发布的 .NET Core 3.0 应用程序.由于没有深入的工具集成(正如 Jon Skeet 正确建议的那样),这将需要一些肘部润滑脂.

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.

步骤类似于:

  1. 发布 .NET Core 项目
  2. 在 1 个或多个 .wxs 文件中引用已发布文件夹中的所有文件
  3. 构建 .wxs 文件的 .wixproj 之后发布 .NET Core 项目
  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

即使我还没有使用 .NET Core 3.0,我也非常有信心这会起作用,因为我们已经在 FireGiant.

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天全站免登陆