通过源码学习,不但可以让我们知道asp.net core框架更底层的原理,而且在遇到问题找不到资料时,也是一个解决道路,以下是我准备asp.net core源码编译时的步骤。
git clone --recursive https://github.com/aspnet/AspNetCore
git submodule update --init --recursive
查看所有tag:git tag
检出v3.1.8: git checkout -b local3.1.8 v3.1.8
还原子模块:git submodule update --init --recursive
以管理员运行powershell
PS> set-ExecutionPolicy RemoteSigned,选择‘Y‘
PS> ./eng/scripts/InstallVisualStudio.ps1
PS> ./eng/scripts/InstallJdk.ps1
安装Chrome, Selenium测试需要这个
PS> .\restore.cmd
这个过程会比较慢,等的时间也是最长的,一直在失败,程序会自动重试。
PS>.\startvs.cmd
asp.net core学习:准备asp.net core源码编译环境
原文:https://www.cnblogs.com/asminfo/p/14158764.html