简体   繁体   English

是否可以在将在Linux上运行的.Net Core Console App中使用.Net Framework 4.5 Dll参考

[英]Is it possible to use the .Net Framework 4.5 Dll reference in .Net Core Console App that will run in Linux

I have a DLL(Say FileWrapper.dll) that is build using .Net Framework 4.5 (Build for linux) 我有一个使用.Net Framework 4.5(适用于Linux的版本)构建的DLL(Say FileWrapper.dll)

Is it possible to build a console application (in .Net Core 2.2 - For Linux) that has references FileWrapper.dll and use various functions within in FileWrapper.dll. 是否可以构建引用FileWrapper.dll的控制台应用程序(在.Net Core 2.2中-对于Linux),并在FileWrapper.dll中使用各种功能。

Any pointers or past experience is helpful. 任何指示或过去的经验都是有帮助的。

Building .net core 2.2 console app for Linux using dll build in .Net Framework 4.5 使用.Net Framework 4.5中的dll构建适用于Linux的.net Core 2.2控制台应用程序

No Code specific 没有特定的代码

Hoping to build .net core console app that uses a dll build in .net framework 4.5 希望构建使用.net Framework 4.5中的dll构建的.net核心控制台应用程序

Yes, this is possible and was introduced with the .NET standard 2.0 which is supported by .Net Core 2 and .Net Framework 4.6.1. 是的,这是可行的,并由.Net Core 2和.Net Framework 4.6.1支持的.NET标准2.0引入。 The concept is described is called a "compatibility shim" in .Net Standard 2.0. 该概念在.Net Standard 2.0中被称为“兼容性填充程序”。 Here are a couple of links to get you started 这里有几个链接可以帮助您入门

Building a Compatibility Shim with .Net Standard 2.0 与.Net Standard 2.0建立相容性Shim

stack overflow - Compatibility shim used by .Net Standard 2.0 堆栈溢出-.Net Standard 2.0使用的兼容性填充程序

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

相关问题 如何将.net框架数据层引用到.net核心控制台应用程序 - How reference .net framework data layer to .net core console app 参考.NET Core 1.1 csproj中的.NET 4.5 dll? - Reference .NET 4.5 dll in .NET Core 1.1 csproj? 如果.Net Core可以在Windows上运行,为什么不能在.Net Framework中引用.Net Core DLL? - If .Net Core can run on Windows, why can't you reference a .Net Core DLL in .Net Framework? 是否可以在仅.NET 4.5的环境中运行.NET 3.5 DLL? - Is it possible to run a .NET 3.5 DLL in a .NET 4.5 only environment? 是否可以在XP上运行.NET 4.5应用程序? - Is it possible to run a .NET 4.5 app on XP? 是否可以从 a.Net Framework 应用程序使用 a.Net5(核心)库? - Is it possible to use a .Net5 (core) library from a .Net Framework app? 是否可以使用控制台应用程序在 .net 框架 4.5 中实现相扑逻辑? 如果是,我们如何实施 - Is it possible to implement sumo logic in .net framework 4.5 with Console app? If yes how can we implement 是否可以做一个包含 .NET 核心框架的 .NET 核心 DLL ? - Is it possible to do a .NET Core DLL containing .NET Core Framework? 在.NET核心下的Linux上运行.NET 4.5 - Running .NET 4.5 on Linux under .NET core 在Framework 4.6项目中使用.net核心DLL - Use .net core DLL in Framework 4.6 project
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM