将 .Net Core 转换为 .Net Framework [英] Convert .Net Core to .Net Framework
本文介绍了将 .Net Core 转换为 .Net Framework的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个 .Net Core 项目 web 项目,出于各种原因想将其转换为 .Net Framework 项目.
I have a .Net Core project web project, and for various reasons want to convert it to a .Net Framework project.
有没有简单的方法可以做到这一点,或者我必须重新开始并从以前的项目中导入代码
Is there an easy way to do this, or do I have to start again and import the code from the previous projects
推荐答案
我已将核心项目加载到 VS 2017 RC 社区并在文本编辑器中打开 *.csproj.
I have loaded core project to the VS 2017 RC Community and open *.csproj in text editor.
删除teg
<RuntimeFrameworkVersion>
并替换
<TargetFramework>netcoreapp1.1</TargetFramework>
到
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
毕竟在项目属性中设置为任何其他框架并重新设置(VS 重新加载和修复 *.csproj 文件).
And after all in project properties set to any another framework and reset back (VS reload and repair *.csproj file).
这篇关于将 .Net Core 转换为 .Net Framework的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文