Skip links

  • Skip to primary navigation
  • Skip to content
  • Skip to footer
Intuitive Theory
  • Tech and Society
  • Computer Science
  • Sitemap
    • Tech and Society
      • AdBlocker
    • Computer Science
      • Hightower's Algorithm
      • MIDI File from Scratch
    • C Language Q&A
      • Standard Inputs
      • Standard Outputs
      • Basic Syntaxes
      • Basic Recursions
      • Binary Representations
      • Basic Arrays and Pointers

    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
    © 2021 Johnson. Powered by Jekyll & Minimal Mistakes.