Targetting netcoreapp And The Full net461 Using AS

2019-07-09 23:37发布

问题:

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?

回答1:

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.

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.