asp.net core学习:准备asp.net core源码编译环境

时间:2020-12-19 13:44:03   收藏:0   阅读:50

通过源码学习,不但可以让我们知道asp.net core框架更底层的原理,而且在遇到问题找不到资料时,也是一个解决道路,以下是我准备asp.net core源码编译时的步骤。

1.下载源码:github https://github.com/dotnet/aspnetcore

git clone --recursive https://github.com/aspnet/AspNetCore

git submodule update --init --recursive

2.用希望调试的tag版本创建分支,如果只想调主分支可忽略此步,我要调试的是 v3.1.8

查看所有tag:git tag

检出v3.1.8: git checkout -b local3.1.8 v3.1.8

还原子模块:git submodule update --init --recursive

3.准备环境

以管理员运行powershell

PS> set-ExecutionPolicy RemoteSigned,选择‘Y‘

PS> ./eng/scripts/InstallVisualStudio.ps1

PS> ./eng/scripts/InstallJdk.ps1

4.Visual Stduio 中编译

PS> .\restore.cmd

这个过程会比较慢,等的时间也是最长的,一直在失败,程序会自动重试。

技术分享图片

 

 

PS>.\startvs.cmd

 

  

 

  

原文:https://www.cnblogs.com/asminfo/p/14158764.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!