Details about Problem
When running nuget pack with a .nuspec file that contains an empty version and passing -Version on the command line, nuget will fail with the error:
An error occured while trying to parse the value '' of property 'version' in the manifest file.
Value cannot be null or an empty string.
Parameter name: value
However, you put in a bogus version identifier in the nuspec file, the same command will run happily, with the version number passed on the command line.
NuGet product used: NuGet.exe
NuGet version (x.x.x.xxx): 4.9.3.5777
OS version (i.e. win10 v1607 (14393.321)): Win 10 1903
Detailed repro steps
-
Create a valid .nuspec file, but with an empty version, i.e. <version></version>
-
Run nuget.exe pack the.nuspec -Version 1.2.3.4
-
See error.
-
Replace version in .nuspec file with <version>0.0.0.0</version>
-
Run same command as above
-
See success.
Details about Problem
When running
nuget packwith a .nuspec file that contains an emptyversionand passing -Version on the command line, nuget will fail with the error:However, you put in a bogus version identifier in the nuspec file, the same command will run happily, with the version number passed on the command line.
NuGet product used: NuGet.exe
NuGet version (x.x.x.xxx): 4.9.3.5777
OS version (i.e. win10 v1607 (14393.321)): Win 10 1903
Detailed repro steps
Create a valid .nuspec file, but with an empty
version, i.e.<version></version>Run
nuget.exe pack the.nuspec -Version 1.2.3.4See error.
Replace
versionin .nuspec file with<version>0.0.0.0</version>Run same command as above
See success.