spec command (NuGet CLI)
Applies to: package creation • Supported versions: all
Generates a .nuspec
file for a new package. If run in the same folder as a project file (.csproj
, .vbproj
, .fsproj
), spec
creates a tokenized .nuspec
file, that defaults to the MIT License. For additional information, see Creating a Package.
Usage
nuget spec [<packageID>] [options]
where <packageID>
is an optional package identifier to save in the .nuspec
file.
Options
-AssemblyPath
Specifies the path to the assembly to use for metadata.
-Force
Overwrites any existing
.nuspec
file.-ForceEnglishOutput
(3.5+) Forces nuget.exe to run using an invariant, English-based culture.
-?|-help
Displays help information for the command.
-NonInteractive
Suppresses prompts for user input or confirmations.
-Verbosity [normal|quiet|detailed]
Specifies the amount of detail displayed in the output:
normal
(the default),quiet
, ordetailed
.
Also see Environment variables
Examples
nuget spec
nuget spec MyPackage
nuget spec -AssemblyPath MyAssembly.dll
Обратна връзка
https://aka.ms/ContentUserFeedback.
Очаквайте скоро: През цялата 2024 г. постепенно ще отстраняваме проблемите в GitHub като механизъм за обратна връзка за съдържание и ще го заменим с нова система за обратна връзка. За повече информация вижте:Подаване и преглед на обратна връзка за