diff options
Diffstat (limited to 'src/qtvstools/Vsix.cs')
-rw-r--r-- | src/qtvstools/Vsix.cs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/qtvstools/Vsix.cs b/src/qtvstools/Vsix.cs index 1aecd180..cd7c90d5 100644 --- a/src/qtvstools/Vsix.cs +++ b/src/qtvstools/Vsix.cs @@ -39,6 +39,8 @@ using System.Windows.Forms; namespace QtVsTools { + using VisualStudio; + [Guid(PackageGuid)] [PackageRegistration(UseManagedResourcesOnly = true)] [InstalledProductRegistration("#110", "#112", Version.PRODUCT_VERSION, IconResourceID = 400)] @@ -124,6 +126,9 @@ namespace QtVsTools Dte = (this as IServiceProvider).GetService(typeof(DTE)) as DTE; + if (!string.IsNullOrEmpty(VsShell.InstallRootDir)) + HelperFunctions.VCPath = Path.Combine(VsShell.InstallRootDir, "VC"); + // determine the package installation directory var uri = new Uri(System.Reflection.Assembly .GetExecutingAssembly().EscapedCodeBase); |