Applies to Visual Studio 2017.6 and newer
This sample shows how to provide an Async Tool Window in a Visual Studio extension.
Clone the repo to test out the sample in Visual Studio 2017 yourself.
Since Async Tool Window support is new in Visual Studio 2017 Update 6, we need to specify that our extension requires that version or newer. We do that in the .vsixmanifest file like so:
<InstallationTarget Id="Microsoft.VisualStudio.Community" Version="[15.0.27413, 16.0)" />
15.0.27413 is the full version string of Visual Studio 2017 Update 6.
See the full sample .vsixmanifest file.
The code in this sample contains the concepts:
- Custom Tool Window Pane
- XAML control for the pane
- Custom command that can show the tool window
- AsyncPackage class that glues it all together
Follow the links above directly into the source code to see how it is all hooked up.
Read the docs for all the details surrounding these scenarios.