title: Nuget gone crazy?
body: <p>I'm trying to create a nuget package via jenkins.</p>
  
  <p>It's a parameterized build that uses the following command to build the package:</p>
  
  <pre><code>"C:\Program Files (x86)\MSBuild\nuget.exe" pack "C:\Program Files (x86)\Jenkins\workspace\Common.Extensions\Common.Extensions.csproj" -Properties Configuration=Release -Version 1.2.3 -IncludeReferencedProjects
  </code></pre>
  
  <p>Unfortunately this errors out with an "Invalid arguments" error.</p>
  
  <p>I could not find any argument errors so I started removing options one at a time from the end.  Once I removed the 'IncludeReferencedProjects' and 'Version' options, the nuget package builds just fine.  </p>
  
  <p>Here is the strange part, I then re-introduced the options one at a time (not by re-typing them, just by going back in my command history and re-running previously failed commands) and the nuget packages build fine.</p>
  
  <p>I am at my wits end.  How can a command fail the first time it receives a command only to later succeed with the same command? </p>
  
  <p>I am using nuget 3.4.4</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>Actually I was wrong about the sequence of events.  If I remove the last two options, it starts working.  If I then retype the version parameter, it works.  If I navigate up in history and run the exact same command (I used notepad++ compare tool to ensure I was running the same command) taken from command history it doesn't work.  The two commands are identical!  How can one work and the other not work?</p>
  
  <p><strong>Edit 2</strong></p>
  
  <p>I'm adding a screen shot below because this is so strange I think I must be missing something obvious:</p>
  
  <p><a href="https://i.stack.imgur.com/IxW5Q.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/IxW5Q.jpg" alt="enter image description here"></a></p>
  
  <p>The first command is hand typed.  As you can see it works.  The second command is taken from the clipboard from the 'console output' from jenkins and it fails. </p>