asp.net nuget 打包,使用 nuget package explorer Reference

先建置 NuGet Server

  1. 下載 NuGet Package Explorer
    Architecture

  2. 開啟 NuGet Package ExplorerCreate a new package
    Architecture

  3. 編輯資訊
    Architecture
    Architecture

  4. Package contents 右鍵 → Add Lib Folder
    Architecture

  5. 新增 類別庫 專案
    Architecture

  6. 增加 Class1 屬性
    Architecture

  7. 將建好的 dll 拉進 NuGet Package ExplorerPackage contentslib
    Architecture

  8. Publish
    Architecture

  9. 輸入 Urlkey
    Architecture

  10. 發佈成功
    Architecture

  11. NuGet Server 專案 → Packages 產生 .nupkg 檔案
    Architecture

  12. 到其他專案選擇 封裝來源,可以看剛發佈的 package
    Architecture

  13. 可正常引用從 NuGet 下載的物件
    Architecture

Reference

Using the NuGet Package Explorer to Create, Explore and Publish Packages