開源地址
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
EF Core
https://github.com/dotnet/efcore
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源碼的研究也比較少...
遇到問題老難解決了.
最后,希望我寫的這些東西,能給大家一點點幫助.
😃