規格命令 (NuGet CLI)
適用于: 套件建立• 支援的版本: 全部
.nuspec
產生新封裝的檔案。 如果在與專案檔相同的資料夾中執行 (.csproj
, .vbproj
.fsproj
) spec
會建立 .nuspec
token 化檔案。 如需詳細資訊,請參閱 建立封裝。
使用方式
nuget spec [<packageID>] [options]
其中 <packageID>
是要儲存在檔案中 .nuspec
的選擇性封裝識別碼。
選項
-AssemblyPath
指定要用於中繼資料之元件的路徑。
-Force
覆寫任何現有
.nuspec
的檔案。-ForceEnglishOutput
(3.5 +) 使用不因文化特性而異的文化特性,強制執行 nuget.exe。
-?|-help
顯示命令的說明資訊。
-NonInteractive
抑制使用者輸入或確認的提示。
-Verbosity [normal|quiet|detailed]
指定輸出中顯示的詳細資料量:
normal
(預設) 、quiet
或detailed
。
另請參閱 環境變數
範例
nuget spec
nuget spec MyPackage
nuget spec -AssemblyPath MyAssembly.dll