.NET 4.6可以在Linux上运行吗 [英] Can .Net 4.6 run on linux

查看:371
本文介绍了.NET 4.6可以在Linux上运行吗的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在将一个Web项目从DotNet 4.6升级到DotNetCore 2.0,并且打算在Linux上运行该应用程序.我想推迟将某些代码升级到DotNetCore-例如引用的DLL.我发现您可以在此答案中引用DotNetCore中的旧DLL

将.NETFramework 4.5 dll添加到.NETCore项目中 .

但是,我想这将不允许我在Linux上运行吗?是对的吗?有什么办法解决吗?

解决方案

如果这些DLL不包含任何Windows平台特定的引用(WinForm,WPF,WCF,XAML,COM),则可以在Linux上运行此类DLL:

I am upgrading a web project from DotNet 4.6 to DotNetCore 2.0, and I intend to run this application on Linux. I would like to postpone upgrading some of the code to DotNetCore - such as referenced DLLs. I found that you can reference older DLLs in DotNetCore in this answer

Add .NETFramework 4.5 dll to .NETCore project.

But, I am guessing this will not allow me to run on Linux? Is that right? Is there any way around this?

解决方案

You possibly can run such DLLs on Linux if they don't contain any windows platform specific references (WinForm, WPF, WCF, XAML, COM):

这篇关于.NET 4.6可以在Linux上运行吗的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆