• Skip to primary navigation
  • Skip to content
  • Skip to footer
Johnson's Site
  • Posts
  • Cheatsheets
  • Notes
  • Essays
  • Sitemap

    NuGet pack dollar version error

    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: March 6, 2018

    Previous Next

    Comments

    • Feed
    © 2023 Johnson. Powered by Jekyll & Minimal Mistakes Template.