[Error] Failed storing global variables

Nov 26, 2010 at 9:28 PM
Edited Nov 27, 2010 at 8:50 AM

Hi,

i have tested this addin in a small solution with a single project and all seems to works. (Visual Studio 2010 Ultimate)

After this i have tried to use in a big solution with 17 project of different type (Console application, Windows, Silverlight, Class Library) and when i open the Setting's Dialog Box and try to close it using the OK button i get always this error: 

[Error] Failed storing global variables:System.NullReferenceException:

Object reference not set to an instance of an object.   at BuildVersionIncrement.VersioningStyle.ToString()   at BuildVersionIncrement.SolutionItemIncrementSettings.Save()   at BuildVersionIncrement.SolutionItem.SetGlobalVariables()   at BuildVersionIncrement.SolutionItem.SetGlobalVariables()   at BuildVersionIncrement.AddInSettingsForm.buttonOk_Click(Object sender, EventArgs e)

------

UPDATE:
I have found the the reason is not "how much projects" but this error happened only with some projects.
I have open an issue

http://autobuildversion.codeplex.com/workitem/5854 

Thanks in advance
Stefano