天天看點

asp.net core源代碼下載下傳與運作

  1. 下載下傳源代碼

    git clone --recursive https://github.com/dotnet/aspnetcore.git

  2. 檢視版本标簽

    git tag

  3. 切換到指定版本

    git checkout v3.1.2

  4. visual studio更新,這裡使用powershell,以管理者身份運作

    .\eng\scripts .\InstallVisualStudio.ps1 -edition enterprise

    如果出現錯誤,則運作下面指令:

    Set-ExecutionPolicy RemoteSigned

  5. 項目依賴還原,這裡使用cmd視窗,powershell不行

    aspnetcore根目錄下有restore.cmd,執行restore指令

    asp.net core源代碼下載下傳與運作
  6. 運作build指令,這裡使用cmd視窗,powershell不行
  7. visual studio 打開 Mvc解決方案

    src\Mvc Mvc.sln startvs Mvc.sln的路徑

參考:https://www.cnblogs.com/calvinK/p/6711848.html

https://www.cnblogs.com/ZaraNet/archive/2019/12/07/12001261.html

繼續閱讀