简体   繁体   English

如何确定 WiX 安装所需的 .NET Core 3.1 运行时文件

[英]How to determine .NET Core 3.1 runtime files needed for WiX install

I have a suite of 6 .NET Core 3.1 Windows desktop applications that I build into a common binary directory.我有一套 6 .NET Core 3.1 Windows 桌面应用程序,我构建到一个通用的二进制目录中。 Studio / MSBuild has populated that directory with various supporting DLL's. Studio / MSBuild 已在该目录中填充了各种支持的 DLL。 I'm working on the Wix installer uplift next.接下来我正在研究 Wix 安装程序提升。

How do I know which of these extra DLL's are required for running my application and must be in the MSI?我如何知道运行我的应用程序需要哪些额外的 DLL 并且必须在 MSI 中? (Wix installer) At the moment I'm including all of them. (Wix 安装程序)目前我包括所有这些。 Maybe some aren't needed?也许有些不需要? Maybe another "appears" when I make a change to one of my DLL's.当我对我的一个 DLL 进行更改时,可能会出现另一个“出现”。 As a former "Framework" application, I packaged "my stuff", the rest was automatically part of the .NET framework.作为以前的“框架”应用程序,我打包了“我的东西”,rest 自动成为 .NET 框架的一部分。 Now with .NET Core 3.1 there are these extra files.现在使用 .NET Core 3.1 有这些额外的文件。

Note, I'm packaging all the JSON files but maybe some of these are optional too?请注意,我正在打包所有 JSON 文件,但也许其中一些也是可选的?

It doesn't seem like this question has anything to do with WiX, but more with the way you are publishing your .NET Core applications.这个问题似乎与 WiX 没有任何关系,但更多的是与您发布 .NET 核心应用程序的方式有关。 I assume you are using self-contained deployment where "The output publishing folder contains all components of the app, including the .NET libraries and target runtime."我假设您使用的是独立部署,其中“output 发布文件夹包含应用程序的所有组件,包括 .NET 库和目标运行时。”

If you need to deploy .NET Core runtime with your application (self-contained deployment) you could do the following things to reduce the number of files being deployed:如果您需要在您的应用程序中部署 .NET Core 运行时(独立部署),您可以执行以下操作来减少部署的文件数量:

The alternative is to use framework-dependent deployment model (which also supports PublishSingleFile option).另一种方法是使用依赖于框架的部署 model (它也支持 PublishSingleFile 选项)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 .net 核心 3.1 自包含,服务要求安装运行时 - .net core 3.1 Self-Contained, service asks for Runtime to be installed 在 Linux 上安装特定版本的 .NET Core 运行时 - Install specific version of .NET Core runtime on Linux 如何在基于 linux 的 ec2 实例中安装 .net 核心 3.1 - How do i install .net core 3.1 in my linux based ec2 instance 如何使用WiX捆绑包安装.NET 4.5? - How to install .NET 4.5 with a WiX bundle? .Net Core 3.1 with SoapCore - 如何在 Docker 中运行它? - .Net Core 3.1 with SoapCore - how to run it in Docker? 在.Net Core 中运行时更新 Resx 文件 - Update Resx files at runtime in .Net Core AWS Lambda .NET core 3.1 by native runtime vs .NET 5.0 作为容器托管? - AWS Lambda .NET core 3.1 by native runtime vs .NET 5.0 as container-hosted? 如何将 .net framework 4.6.1 类库转换为 .net core 3.1 - how to convert .net framework 4.6.1 class library to .net core 3.1 Is there a way to restrict .NET Core projects to generate only.dll as output files when using .NET Core 3.1 sdk - Is there a way to restrict .NET Core projects to generate only .dll as output files when using .NET Core 3.1 sdk WIX脱机安装.net Framework 4 - WIX install .net framework 4 offline
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM