Reputation: 43
I am trying to get Type for Visual Studio 2015 Community Edition as under but result (type) is always null.
System.Type type = Type.GetTypeFromProgID("VisualStudio.DTE.15.0", false);
EnvDTE.DTE dte = (EnvDTE.DTE) System.Activator.CreateInstance(type);
Upvotes: 3
Views: 2162
Reputation: 32616
While the product name is Visual Studio 2015, the version number is 14.0
. So try:
"VisualStudio.DTE.14.0"
(I do not have a chance to check Community Edition, but at least it works with my VS 2015 Professional.)
Upvotes: 5