When executing nuget pack [ProjectName].nuspec

The error message occured: Value cannot be null or an empty string. Parameter name: value

It’s caused by the <version>$version$</version> inside the .nuspec file.

Pack the [ProjectName].csproj directly to fix the problem.

nuget pack [ProjectName].nuspec

Further Reading

  1. Unhelpful error message when incorrectly using nuspec version tag of nuget pack | GitHub

Posted:

Comments are configured with provider: disqus, but are disabled in non-production environments.