Visual Studio 2008 Add in problems
Hi,
I downloaded and installed the Visual Studio 2008 Add In with no problems yesterday, but when I loaded it again today the "sign in" dialog box hadn't saved my details and had no languages in the Languages drop down list: just one entry of "System.Data.DataRo" (I'm assuming there is a "w" but it is hidden due to the width of the list). If I try and sign in this way nothing happens.
When I run with DebugView running I get this:
00000003 22.11790085 [1124] CounterSoft Gemini: C:\Development\Card2008
00000004 22.11965752 [1124] CounterSoft Gemini: Loading MainControl Exception. Index and length must refer to a location within the string.
00000005 22.11965752 [1124] Parameter name: length :: mscorlib :: at System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length, Boolean fAlwaysCopy)
00000006 22.11965752 [1124] at System.String.Substring(Int32 startIndex, Int32 length)
00000007 22.11965752 [1124] at CounterSoft.Gemini.VSAddIn.MainControl..ctor()
I loaded the add in DLL into Reflector and can see the problem. There's the line:
Environment.CurrentDirectory.Substring(Environment.CurrentDirectory.IndexOf("Microsoft Visual Studio") + 0x18, 1);
This only happens if I double click a .sln file to open Visual Studio. If I open VS directly and then manually load the project the add in works normally. If I double click the .sln file I think the current directory is set to the directory of the solution, rather than the vs executable.
I've not created many complicated Add Ins before, but when you create a VS2008 Add In project in VS you get an _applicationObject variable in the main Connect class which has a Version property which should give the proper version number.
deschain
· 1 |
|
Monday, September 29, 2008, 5:28:09 PM |