开源地址
CoreFX is the foundational class libraries for .NET Core.
It includes types for collections, file systems, console, JSON, XML,
async and many others.
https://github.com/dotnet/corefx
ASP.NET Core is a cross-platform .NET framework for building modern cloud-based web applications on Windows, Mac, or Linux.
https://github.com/dotnet/aspnetcore
.NET APIs for commonly used programming patterns and utilities,
such as dependency injection, logging, and configuration.
https://github.com/dotnet/extensions
ASP.NET and Entity Framework
https://github.com/aspnet
EF Core is a modern object-database mapper for .NET. It supports LINQ queries, change tracking, updates, and schema migrations.
https://github.com/aspnet/EntityFrameworkCore
以下项目已经迁移到新地址上,最好还是看迁移后的地址...
这些项目大多是.Net Core 2.x(包括2.x)以前的版本,
也是微软在Github上的一个重构.
[Archived] Interfaces and providers for accessing configuration files. Project moved to https://github.com/aspnet/Extensions
https://github.com/aspnet/Configuration
Middleware for routing requests to application logic.
Project moved to https://github.com/aspnet/AspNetCore
https://github.com/aspnet/Routing
Middleware for security and authorization of web apps.
Project moved to https://github.com/aspnet/AspNetCore
https://github.com/aspnet/Security
Contains common DI abstractions that ASP.NET Core and Entity Framework Core use.
Project moved to https://github.com/aspnet/Extensions
https://github.com/aspnet/DependencyInjection
HTTP abstractions such as HttpRequest, HttpResponse, and HttpContext, as well as common web utilities.
Project moved to https://github.com/aspnet/AspNetCore
https://github.com/aspnet/HttpAbstractions
A framework for accessing and configuring POCO settings.
Project moved to https://github.com/aspnet/Extensions
https://github.com/aspnet/Options
ASP.NET Core MVC is a model view controller framework for building dynamic web sites with clean separation of concerns,
including the merged MVC, Web API, and Web Pages w/ Razor.
Project moved to https://github.com/aspnet/AspNetCore
https://github.com/aspnet/Mvc
Code for hosting and starting up an ASP.NET Core application.
Project moved to
https://github.com/aspnet/Extensions
and
https://github.com/aspnet/AspNetCore
这也是Asp.Net Core第一个真正开始看源码的项目
https://github.com/aspnet/Hosting
注意事项
1.注意.Net Core版本
比如我本来想看.Net Core 3.x版本关于{Hosting}和{starting up}源码,
结果我开始看的这个项目→https://github.com/aspnet/Hosting
并且我是配合蒋金楠大神的那本书<Asp.Net Core 3框架揭秘>,
我对照着书中的源码看,发现对不上...然后才发现看错版本了.
2.在Github上看代码的时候,注意切换此项目的分支
不管你是在线看源代码,还是将代码通过{Git}克隆到本地,
都要记得切换分支...
3.一定要看Github的{About}关于项目的介绍
4.一定要看{README.md}
看文件名字起的就很直白了...
5.
杂谈
我自己感觉的话,从学习方面来说的话,
没迁移前的各个小项目,还是好入门点.
包括你克隆下来之后,生成之类的.
其中感悟最深的就是刚开始看这个项目→https://github.com/aspnet/Hosting
直接将源代码克隆到本地之后,
一下就生成生成了,感觉整个流程很顺利...
但是看迁移后的项目https://github.com/dotnet/extensions的时候,
各种曲折,那几天都是在熬夜搞这个项目,到处找解决方案,
一度成为那几天的心病.哈哈...
最后还是在Github上提了一个Issue,最终才解决.
我现在学习源码的流程就是↓
1.先Fork项目到自己库中.
2.克隆自己库中的此项目地址到本地,
3.自己本地修改的话,有时候也会提交到自己Github上.
还有就是网络上,关于.Net Core源码的研究也比较少...
遇到问题老难解决了.
最后,希望我写的这些东西,能给大家一点点帮助.
??