将.Net Core转换为.Net Framework [英] Convert .Net Core to .Net Framework

查看:720
本文介绍了将.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屋!

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