Commit bc089045 bc0890457047aa922a95c83ea5c733c1bcbd7814 by Christian Gerdes

Non working save commit

1 parent 3798811b
......@@ -20,6 +20,7 @@ using System.ComponentModel.Design;
using System.Globalization;
using Microsoft.VisualStudio.Shell;
using Microsoft.VisualStudio.Shell.Interop;
using Microsoft.VisualStudio.TestTools.LoadTesting;
namespace WebTest.WebServive.Plugin
{
......@@ -107,6 +108,13 @@ namespace WebTest.WebServive.Plugin
string message = @"Repository, Wiki, Issues at https://git.lightsinline.se/lilchger/WebServicePlugins";
string title = "WebService Plugin For WebTest version 1.0";
WebServiceVSPackage wsp = package as WebServiceVSPackage;
EnvDTE80.DTE2 dte = wsp.GetDTE2();
LoadTestPackageExt wpe = dte.GetObject("Microsoft.VisualStudio.TestTools.LoadTesting.LoadTestPackageExt") as LoadTestPackageExt;
if (wpe != null) title += " (loaded)"; else title += " (not loaded)";
// Show a message box to prove we were here
VsShellUtilities.ShowMessageBox(
this.ServiceProvider,
......
......@@ -144,6 +144,10 @@
<HintPath>..\packages\Microsoft.VisualStudio.OLE.Interop.7.10.6071\lib\Microsoft.VisualStudio.OLE.Interop.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="Microsoft.VisualStudio.QualityTools.LoadTestPackage, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\PrivateAssemblies\Microsoft.VisualStudio.QualityTools.LoadTestPackage.dll</HintPath>
</Reference>
<Reference Include="Microsoft.VisualStudio.Shell.14.0, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
<HintPath>..\packages\Microsoft.VisualStudio.Shell.14.0.14.3.25407\lib\Microsoft.VisualStudio.Shell.14.0.dll</HintPath>
<Private>True</Private>
......
......@@ -96,6 +96,11 @@ namespace WebTest.WebServive.Plugin
}
public DTE2 GetDTE2()
{
return (DTE2)GetService(typeof(DTE));
}
protected override void Dispose(bool disposing)
{
if(_wsp_connect != null)
......