简体   繁体   English

Centos .netcore找不到框架“ .NETFramework,Version = v4.6.1”的参考程序集

[英]Centos .netcore The reference assemblies for framework “.NETFramework, Version=v4.6.1” were not found

I have a C# .NET app that is currently running in Windows Server 2012. I wish to move that app to run on Centos with .NetCore installed. 我有一个当前在Windows Server 2012中运行的C#.NET应用程序。我希望将该应用程序移动到在安装了.NetCore的Centos上运行。 When I try to run the app using dotnet run --project 'foldername' I get the error 当我尝试使用dotnet run --project 'foldername'运行应用程序时,出现错误

The reference assemblies for framework ".NETFramework, Version=v4.6.1" were not found 找不到框架“ .NETFramework,Version = v4.6.1”的参考程序集

The FW is available from MS but they are in .exe. FW可从MS获得,但它们在.exe中。 How does one install that FW on Centos .NetCore. 如何在Centos .NetCore上安装该固件。 Basically, how do I upgrade my FW on Centos .NetCore 基本上,如何在Centos .NetCore上升级我的固件

You have to convert your .NETFramework projects to .NETCore and .NETStandard projects, than you can use the created .dll-s in CentOS with the .NETCore. 您必须将.NETFramework项目转换为.NETCore和.NETStandard项目,然后才能在CentOS中将创建的.dll-s与.NETCore一起使用。 Where you can, I recommend the .NETStandard, because you will be able to use it everywhere later (.NETCore, .NETFramework, Xamarin, UWP). 在可能的地方,我建议使用.NETStandard,因为以后您将可以在任何地方使用它(.NETCore,.NETFramework,Xamarin,UWP)。

I suggest you, to make some research in the topic. 我建议您对这个主题进行一些研究。

.NET Standard: .NET标准:

.NET Core 2.0: .NET Core 2.0:

Porting to .NET Core: 移植到.NET Core:

暂无
暂无

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

相关问题 找不到框架“.NETFramework,Version=v4.7.1”的参考程序集 - Reference assemblies for framework ".NETFramework,Version=v4.7.1" were not found 未找到框架 .NETCore、Version=v5.0 的参考程序集 - The reference assemblies for framework .NETCore, Version=v5.0 were not found 无法解析目标框架“.NETFramework,Version=v4.6.1”的 mscorlib - Could not resolve mscorlib for target framework '.NETFramework,Version=v4.6.1' 如何修复`您的项目未引用“.NETFramework,Version=v4.6.1”框架...` - How to fix `Your project does not reference ".NETFramework,Version=v4.6.1" framework...` 错误:未找到 .NETFramework,Version=v5.0 的参考程序集 - Error: The reference assemblies for .NETFramework,Version=v5.0 were not found Ranorex 构建失败 9.4.1 找不到框架“.NETFramework,Version=v4.7.2”的参考程序集 - Ranorex build fails 9.4.1 The reference assemblies for framework “.NETFramework,Version=v4.7.2” were not found 使用 Docker .NET 核心映像构建 WinForms C# 应用程序导致错误:.NETFramework,Version=v4.6.1 were not found - Building a WinForms C# application with Docker .NET Core image results to an error : .NETFramework,Version=v4.6.1 were not found Uno 平台项目报告:未找到 .NETFramework,Version=v5.0 的参考程序集 - Uno Platform Project reports: The reference assemblies for .NETFramework,Version=v5.0 were not found 使用'.NETFramework,Version = v4.6.1'而不是项目目标框架'.NETCoreApp,Version = v2.0'恢复了包'EntityFramework 6.2.0' - Package 'EntityFramework 6.2.0' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETCoreApp,Version=v2.0' Godot 无法构建 C# 脚本:找不到 .NETFramework,Version=v4.7 的参考程序集 - Godot unable to build C# scripts : The reference assemblies for .NETFramework,Version=v4.7 were not found
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM