Request: Tweak assembly version number for new revisions

Jun 27, 2010 at 10:55 PM
Edited Jun 27, 2010 at 10:56 PM

I would like to suggest/request that you add your revision number somewhere to the .net version: such as 3.5.7 or 3.5.0.7. This makes sense because the DLL is a strongly named assembly, and the signatures of some public methods are still changing.

We ran into an issue when we upgraded from revision 5 or 6 to 7. The .net version for all of these is 3.5.0.0. Well, the old version managed to get into our GACs, so the assembly loader was finding those. Eventually we got a missing method error on ReadJson due to the new  parameter that was added in revision 7 (existingValue),  But this error was buried inside a TypeLoadException that didn't have anything related to Newtonsoft.Json on the call stack. 

System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information. at System.Reflection.Module._GetTypesInternal(StackCrawlMark& stackMark) at System.Reflection.Assembly.GetTypes()

I would prefer an nice error along the lines of  "Yo dude, can't find version 3.0.7 of Newtonsoft.Json.dll"

 

 

 

Jun 30, 2010 at 8:34 PM

Agreed.  Of course, this is only necessary if the API interface has changed.