bsivanov / Open-XML-Package-Editor-Power-Tool-for-Visual-Studio

This Power Tool is a Visual Studio add-in that provides an easy way to parse and edit Open Packaging Conventions files, including Word, Excel and PowerPoint documents.
17 stars 4 forks source link

Upgrade to `AsyncPackage` to improve Visual Studio startup performance #7

Open bsivanov opened 2 years ago

bsivanov commented 2 years ago

Inheriting from AsyncPackage instead of from Package is recommended, as this improves Visual Studio startup performance.

Now, when uploading the extension to the marketplace, the following warning is shown:

(Open XML Package Editor for Modern Visual Studios) The package (Microsoft.OpenXMLEditor.OpenXMLEditor) class should derive from AsyncPackage instead of Package when targeting Visual Studio 2015 and above. Read more about using AsyncPackage here: https://aka.ms/asyncpackage.

There's an extensibility sample here: https://github.com/microsoft/VSSDK-Extensibility-Samples/blob/master/AsyncPackageMigration/README.md.