[研究]LibMan(Library Manager)安裝 bootstrap 5.3.3、變更版本、移除套件 (VS2019)
2024-10-17
環境:Visual Studio 2019 + ASP.NET + WebForm + Web Application + .NET Framework
********************************************************************************
如何在 Web Application 專案中用 LibMan 管理 bootstrap:
- 右鍵點擊專案中的 Scripts 資料夾或其他希望存放前端資源的資料夾。
- 選擇「Add」->「Client-Side Library」。
- 在出現的對話框中,選擇 CDN 來源(如 unpkg 或 cdnjs),並搜尋 bootstrap。
- 選擇安裝的版本,LibMan 會將 bootstrap 安裝到指定的資料夾。
********************************************************************************
變更版本
例如把 bootstrap@5.3.3 變更為 bootstrap@5.3.2 ,就會變更版本了。
********************************************************************************
移除套件
libman.json
{
"version": "1.0",
"defaultProvider": "cdnjs",
"libraries": [
{
"library": "bootstrap@5.3.3",
"destination": "lib/bootstrap/"
}
]
}
|
改成
{
"version": "1.0",
"defaultProvider": "cdnjs",
"libraries": [
]
}
|
存檔後,就會自動移除 bootstrap了。
(完)










沒有留言:
張貼留言