This project is read-only.

Works in Experimental Instance but not Normal Instance


've created a couple of code diagnostic analyser and a colourisation which are packaged into a single VSIX. This VSIX works perfectly in the Experimental instance of visual studio, the diagnostic analyser and colourisation works.

So decide to installing it into the non-Experimenatlal (the default one) instance. It installs, appears in the list of extension and is enabled.

Everything appears fine but the analysers and colourisation ain't working?

Any ideas of what could be the cause?

Using the VS2015 preview.

I have tried restarting VS2015 it still doesn't work.

SFD_VB_Exp,jpg is what you see in the Experimental instance.
SFD_VB_orm.jpg is what you see in the Normal Instance.

file attachments


AdamSpeight2008 wrote Jan 6, 2015 at 8:04 PM

Tried also doing a hard reset of VS2015, still no luck.

AdamSpeight2008 wrote Jan 7, 2015 at 10:24 PM

The diff of \14.0 and \14.Roslyn and the problem vsix is available Here

srivatsn wrote Jan 10, 2015 at 1:19 AM

Jon, can you please take a look?

AdamSpeight2008 wrote Jan 11, 2015 at 6:32 PM

I'm going to try out a complete fresh VM and fresh install of V2015 and the SDK. To see if it's an installation problem.

AdamSpeight2008 wrote Jan 13, 2015 at 7:23 AM

Still not working, even with a fresh VM install.

jmarolf wrote Feb 10, 2015 at 9:07 PM

So I think I know what's going on here. Your analyzer it calling XDocument.Load("analyserlist.xml"). This will attempt to load your xml file from the current directory not whichever directory your analyzer dlls live in. The current directory can change depending on how you launch Visual Studio. I would recommend embedding this xml data as a resource in the dll itself so you don't have the tricky issue of trying to resolve xml file paths.

AdamSpeight2008 wrote Feb 10, 2015 at 10:38 PM

@jmarolf I tried that. Portable class library and embedded resources and or reflection. Has issues.

I'm at the moment I embedded the information directly in code.