Skip to content

Commit

Permalink
Merge pull request #5 from bsivanov/fix-properties-window-command
Browse files Browse the repository at this point in the history
Fix `Show Properties` button throwing exception on Visual Studio 2022
  • Loading branch information
bsivanov authored Sep 3, 2022
2 parents 3e12201 + f043714 commit e9a25d7
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
3 changes: 2 additions & 1 deletion PackageEditorPane.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2414,7 +2414,8 @@ private void ButtonProps_Click(object sender, EventArgs e)
{
// FindToolWindow fails sometimes if the property window is collapsed.
// Fire the PROPPAGE command key instead.
EnvDTE.DTE dte = (EnvDTE.DTE)GetVsService(typeof(EnvDTE._DTE));
EnvDTE80.DTE2 dte = (EnvDTE80.DTE2)GetVsService(typeof(EnvDTE._DTE));

if (dte != null)
dte.ExecuteCommand("View.PropertiesWindow", "");
}
Expand Down
2 changes: 1 addition & 1 deletion Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Reflection;

[assembly: AssemblyVersion("2.0.0.0")]
[assembly: AssemblyVersion("2.0.1.0")]
[assembly: AssemblyTitle("Open XML Package Editor for Visual Studio")]
[assembly: AssemblyDescription("Open XML Package Editor for Visual Studio")]
[assembly: AssemblyCompany("Borislav Ivanov")]
Expand Down
5 changes: 4 additions & 1 deletion ReleaseNotes.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
v.2.0.0
v.2.0.1
Fix `Show Properties` buttons throwing exception in Visual Studio 2022.

v.2.0.0
Add support for Visual Studio 2022
Drop support for Visual Studio 2015 and below. You can install compatible version from https://github.com/bsivanov/Open-XML-Package-Editor-Power-Tool-for-Visual-Studio/releases/tag/v1.1.0.

Expand Down
2 changes: 1 addition & 1 deletion 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="ac41218c-c632-413c-b108-a9ecbbaabb90" Version="2.0.0" Language="en-US" Publisher="Borislav Ivanov"/>
<Identity Id="ac41218c-c632-413c-b108-a9ecbbaabb90" Version="2.0.1" Language="en-US" Publisher="Borislav Ivanov"/>
<DisplayName>Open XML Package Editor for Modern Visual Studios</DisplayName>
<Description xml:space="preserve">Parse and edit Open Packaging Conventions files, including Word, Excel, PowerPoint and Visio documents. Fork of the original Open XML Package Editor for Visual Studio extension by Microsoft.</Description>
<License>eula.1033.txt</License>
Expand Down

0 comments on commit e9a25d7

Please sign in to comment.