Skip to content

Commit

Permalink
VS2017 support
Browse files Browse the repository at this point in the history
  • Loading branch information
Ramon Viladomat committed Jan 15, 2021
1 parent a70e4a8 commit 1c65665
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 12 deletions.
13 changes: 6 additions & 7 deletions StructLayout/LayoutWindow/LayoutWindowCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -86,14 +86,13 @@ public static async Task InitializeAsync(AsyncPackage package)
/// <param name="e">The event args.</param>
private void Execute(object sender, EventArgs e)
{
this.package.JoinableTaskFactory.RunAsync(async delegate
ThreadHelper.ThrowIfNotOnUIThread();

LayoutWindow win = EditorUtils.GetLayoutWindow(true);
if (win != null)
{
ToolWindowPane window = await this.package.ShowToolWindowAsync(typeof(LayoutWindow), 0, true, this.package.DisposalToken);
if ((null == window) || (null == window.Frame))
{
throw new NotSupportedException("Cannot create tool window");
}
});
EditorUtils.FocusWindow(win);
}
}
}
}
3 changes: 1 addition & 2 deletions StructLayout/StructLayout.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,7 @@
<Reference Include="WindowsBase" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.VisualStudio.SDK" Version="16.0.205" ExcludeAssets="runtime" />
<PackageReference Include="Microsoft.VSSDK.BuildTools" Version="16.6.2051" />
<PackageReference Include="Microsoft.VisualStudio.SDK" Version="15.0.1" ExcludeAssets="runtime" />
</ItemGroup>
<ItemGroup>
<Page Include="Editor\ParseMessageControl.xaml">
Expand Down
6 changes: 3 additions & 3 deletions StructLayout/source.extension.vsixmanifest
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<PackageManifest Version="2.0.0" xmlns="http://schemas.microsoft.com/developer/vsx-schema/2011" xmlns:d="http://schemas.microsoft.com/developer/vsx-schema-design/2011">
<Metadata>
<Identity Id="StructLayout.ae9caa76-a538-4c6c-bff5-9e0a61e6b728" Version="0.4.4" Language="en-US" Publisher="Ramon Viladomat" />
<Identity Id="StructLayout.ae9caa76-a538-4c6c-bff5-9e0a61e6b728" Version="0.4.5" Language="en-US" Publisher="Ramon Viladomat" />
<DisplayName>Struct Layout</DisplayName>
<Description xml:space="preserve">C++ struct memory layout viewer</Description>
<MoreInfo>https://github.com/Viladoman/StructLayout</MoreInfo>
Expand All @@ -10,13 +10,13 @@
<Tags>cpp memory struct class debugging cache cacheline layout</Tags>
</Metadata>
<Installation>
<InstallationTarget Id="Microsoft.VisualStudio.Community" Version="[16.0, 17.0)" />
<InstallationTarget Id="Microsoft.VisualStudio.Community" Version="[15.0, 17.0)" />
</Installation>
<Dependencies>
<Dependency Id="Microsoft.Framework.NDP" DisplayName="Microsoft .NET Framework" d:Source="Manual" Version="[4.5,)" />
</Dependencies>
<Prerequisites>
<Prerequisite Id="Microsoft.VisualStudio.Component.CoreEditor" Version="[16.0,17.0)" DisplayName="Visual Studio core editor" />
<Prerequisite Id="Microsoft.VisualStudio.Component.CoreEditor" Version="[15.0,17.0)" DisplayName="Visual Studio core editor" />
</Prerequisites>
<Assets>
<Asset Type="Microsoft.VisualStudio.VsPackage" d:Source="Project" d:ProjectName="%CurrentProject%" Path="|%CurrentProject%;PkgdefProjectOutputGroup|" />
Expand Down

0 comments on commit 1c65665

Please sign in to comment.