简体   繁体   English

如何确定一个程序集是针对 .net 核心、.net 框架还是 .net 标准构建的?

[英]How to determine whether one assembly was built against .net core, .net framework or .net standard?

For example, given NewtonSoft.Json.dll, its build target may be for .net standard, or it may be for .net core only or for .net framework only.例如,给定 NewtonSoft.Json.dll,其构建目标可能适用于 .net 标准,也可能仅适用于 .net core 或仅适用于 .net framework。 Could we detect its build target from dll?我们可以从 dll 中检测到它的构建目标吗?

A tool such as ILSpy offers this information: ILSpy等工具提供了以下信息:

在此处输入图片说明

暂无
暂无

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

相关问题 如何确定它是.net核心程序集还是带代码的框架程序集 - How to determine if it is a .net core assembly or a framework assembly with code C#类类型-如何确定它是否是标准.net框架类 - C# class type - How to determine whether it is a standard .net framework class .net 标准库在 .net 核心中失败,但在框架中失败 - .net standard library fails in .net core but not in framework 如何在 Visual Studio 中将 .NET Framework 更改为 .NET Standard/Core? - How to change .NET Framework to .NET Standard/Core in Visual Studio? 如何更新 .NET Core 和 .NET Framework 应用程序之间共享的程序集 - How to update an assembly shared between .NET Core and .NET Framework applications 如何从 .NET Framework 调用 .NET Core 程序集中的方法 - How to call a method in a .NET Core assembly from .NET Framework 为什么我的 .NET 框架应用程序会寻找错误版本的 .NET 核心/标准平台扩展程序集,我该如何解决? - Why is my .NET framework app looking for the wrong version of the .NET core/standard platform extension assembly, and how do I fix it? 如何从 .NET Framework 初始化 .net Core ILogger 或 ILoggerFactory 并注入 Class 内置库中的构造函数.Net Core - How to initialize .net Core ILogger or ILoggerFactory from .NET Framework and inject to a constructor in Class library built in .Net Core 在运行时确定.NET标准DLL中的框架 - Determine the framework in a .NET Standard DLL at runtime 为什么 Razor UI 类库构建为 .NET Standard 而不是 .Net core - Why is the Razor UI class library built as .NET Standard and not in .Net core
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM