"frameworks": { "aspnet50": { },"aspnetcore50": { } }
现在,这个框架部分是什么以及为什么有这些条目“aspnet50”和“aspnetcore50”?我知道现在有完整的.NET和Core CLR,但是这部分似乎暗示有两个不同的ASP.NET 5:一个ASP.NET 5和一个ASP.NET Core 5.只有一个框架ASP.NET 5可能运行在完整的.NET或Core CLR之上吗?如果是这样,为什么我们需要这些条目?
解决方法
现在,要做到这一点,他们不得不将框架分开一点,因此,CORE CLR诞生了.从webpage开始:
.NET Core 5 is the small optimized runtime that is the basis of ASP.NET Core 5. It currently runs on Windows,and will be extended to support Linux and Mac. It is a high-performance and modular design,and supports full side by side to make it easy to adopt new .NET Core versions without affecting other apps. These products are actively developed by the .NET team and in collaboration with a community of open source developers. Together we are dedicated to improving and extending the .NET platform with new features and for new scenarios.
为实现这一目标,一些功能显然被抛弃了. Asp.net必须为您的应用定位一个有限的子集,以便在核心框架上工作.它基本上告诉框架将您可以使用的功能集限制为两者都支持的功能集.
这是我的理解,但我可能是错的:-)