本文介绍了使用 ASP.Net Core 定位 netcoreapp 和完整的 net461的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在最近发布的 ASP.Net Core RC2 Preview 1 版本中,项目模板被拆分为面向 net461 的完整 .NET Framework 项目和面向 netcoreapp1.0 的 .NET Core 项目.

In the recent ASP.Net Core RC2 Preview 1 release of the tooling, the project templates were split into full .NET Framework projects targeting net461 and .NET Core projects targeting netcoreapp1.0.

在以前的世界中,这两个目标框架都被添加到一个项目中.这还能做吗?分手的原因是什么?

In the previous world, both of these target frameworks were added in a single project. Can this still be done? What was the reason for splitting them up?

推荐答案

两者都在一个项目中:是的,您可以做到.创建其中一个,像以前一样在 project.json 中添加另一个框架.就像 Tseng 概述的那样,它只是不再支持它的默认 Windows 模板.

Both in a single project: Yes you can do that. Create one of them, add the other other framework in the project.json like before. Like Tseng outlined, it is just the default Windows template which no longer support it.

他们分手的原因:恕我直言:我认为合并后的观点让很多人感到困惑.此外,即将从 project.json/xproj 移动到 csproj 的更改可能会影响这一点.

Why they splitted up: IMHO: I think the combined view confused many people. Also the upcoming change moving from project.json/xproj to csproj may influence this.

这篇关于使用 ASP.Net Core 定位 netcoreapp 和完整的 net461的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-26 01:59