Skip to content

Commit

Permalink
Using nuget pkg for ms build
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanKert committed Apr 6, 2019
1 parent dcde1ae commit c5cc157
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 12 deletions.
22 changes: 12 additions & 10 deletions src/BuildVision/BuildVision.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,6 @@
<DeployExtension>False</DeployExtension>
</PropertyGroup>
<ItemGroup>
<Reference Include="Microsoft.Build" />
<Reference Include="Microsoft.Build.Engine" />
<Reference Include="Microsoft.Build.Framework" />
<Reference Include="Microsoft.Build.Utilities.v4.0" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="Microsoft.VisualBasic" />
<Reference Include="PresentationFramework.Aero" />
Expand All @@ -81,12 +77,6 @@
<Reference Include="PresentationFramework" />
<Reference Include="System.Xml.Linq" />
<Reference Include="UIAutomationTypes" />
<Reference Include="VSLangProj, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<EmbedInteropTypes>True</EmbedInteropTypes>
</Reference>
<Reference Include="VSLangProj2, Version=7.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<EmbedInteropTypes>True</EmbedInteropTypes>
</Reference>
<Reference Include="WindowsBase" />
<Reference Include="System.Xaml" />
</ItemGroup>
Expand Down Expand Up @@ -231,6 +221,18 @@
<PackageReference Include="Madskristensen.VisualStudio.SDK">
<Version>14.3.81-pre</Version>
</PackageReference>
<PackageReference Include="Microsoft.Build">
<Version>16.0.461</Version>
</PackageReference>
<PackageReference Include="Microsoft.Build.Engine">
<Version>16.0.461</Version>
</PackageReference>
<PackageReference Include="Microsoft.Build.Framework">
<Version>16.0.461</Version>
</PackageReference>
<PackageReference Include="Microsoft.Build.Utilities.Core">
<Version>16.0.461</Version>
</PackageReference>
<PackageReference Include="Microsoft.VisualStudio.SDK.Analyzers">
<Version>15.8.36</Version>
</PackageReference>
Expand Down
4 changes: 2 additions & 2 deletions src/BuildVision/Services/WindowStateService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
using System.ComponentModel.Composition;
using BuildVision.UI.Settings.Models.ToolWindow;
using EnvDTE;
using Microsoft;
using Microsoft.VisualStudio;
using Microsoft.VisualStudio.Shell;
using Microsoft.VisualStudio.Shell.Interop;
Expand Down Expand Up @@ -130,8 +131,7 @@ public void Initialize(ToolWindowPane toolWindowPane)
{
ThreadHelper.ThrowIfNotOnUIThread();
_dte = _serviceProvider.GetService(typeof(DTE)) as DTE;
if (_dte == null)
throw new InvalidOperationException("Unable to get DTE instance.");
Assumes.Present(_dte);
_windowFrame = (IVsWindowFrame)toolWindowPane.Frame;
_window = GetWindowInstance(_dte, typeof(BuildVisionPane).GUID);
if (_window == null)
Expand Down

0 comments on commit c5cc157

Please sign in to comment.