Problem when not passing in a -p parameter


I am getting an exception when trying to pass this UpdateVersion command: "UpdateVersion -v Assembly -b Fixed -r Increment -i AssemblyInfo.vb -o test.txt"


dhunt wrote Jun 25, 2008 at 10:41 PM

Sorry, tried to add a new line and accidentally submitted the form
The exception is: "System.NullReferenceException: Object reference not set to instance of an object.
at MattGriffith.UpdateVersion.VersionUpdater..ctor(String input, Options options)
at MattGriffith.UpdateVersion.RunUpdateVersion.Main(String[] args)"

reddogaw wrote Mar 19, 2009 at 5:13 PM

Solution is to replace line 223 of Options.cs with
pinVersion = new Version();
Rather than
pinVersion = null;

wrote Feb 13, 2013 at 8:59 PM