Quantcast
Channel: Visual Studio Integrate forum
Viewing all articles
Browse latest Browse all 4410

Import of SVsServiceProvider not working in custom editor

$
0
0

Hi all,

Now I want to get TFS object in VS 2015. i tried the SVsServiceProvider to get DTE but not working.

According to a MSDN article (http://msdn.microsoft.com/en-us/library/ee834473(v=vs.110).aspx) I implemented this exactly like this:

 [Import]
 internal SVsServiceProvider ServiceProvider = null;

 DTE dte = (DTE)ServiceProvider.GetService(typeof(DTE)); //error null

 tfsSvrExt = dte.GetObject("Microsoft.VisualStudio.TeamFoundation.TeamFoundationServerExt") as TeamFoundationServerExt;

Anybody found this issue or better idea to get tfs object in vs2015? Thanks.


True mastery of any skill takes a lifetime.


Viewing all articles
Browse latest Browse all 4410

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>