简体   繁体   English

是否可以做一个包含 .NET 核心框架的 .NET 核心 DLL ?

[英]Is it possible to do a .NET Core DLL containing .NET Core Framework?

Is it possible to create a .NET Core DLL which contains the other .NET Core Framework DLLs in order to be run without installing the .NET Core?是否可以创建一个包含其他 .NET 核心框架 DLL 的 .NET 核心 DLL 以便在不安装 Z303CB0EF11D9082DAZ6 核心的情况下运行?

Thanks a lot非常感谢

.NET Core 3 supports single-file executables that contain all framework specific assemblies, resources, content files and other stuff that the app requires to run: .NET Core 3 支持单文件可执行文件,其中包含应用程序运行所需的所有特定于框架的程序集、资源、内容文件和其他内容:

dotnet publish -r win10-x86 -c release /p:PublishSingleFile=true

Self-contained deployments (SCD) are supported in earlier versions.早期版本支持独立部署 (SCD)

Yes.是的。 What you are looking for is called Self-contained deployment and is possible with .NET Core, but not .NET Framework.您正在寻找的是所谓的独立部署,并且可以使用 .NET 核心,但不是 .NET 框架。

See more here: https://docs.microsoft.com/en-us/dotnet/core/deploying/#self-contained-deployments-scd在此处查看更多信息: https://docs.microsoft.com/en-us/dotnet/core/deploying/#self-contained-deployments-scd

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM