You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/extensibility/visualstudio.extensibility/get-started/in-proc-extensions.md
+10-11Lines changed: 10 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -12,17 +12,17 @@ ms.technology: vs-ide-sdk
12
12
13
13
# Using VisualStudio.Extensibility SDK and VSSDK together
14
14
15
-
While the VisualStudio.Extensibility model was created primarily to host extensions outside of the devenv.exe process, it is possible to use VisualStudio.Extensibility SDK APIs in an extension running in Visual Studio process and utilizing traditional extensibility APIs provided by the [Microsoft.VisualStudio.Sdk](https://www.nuget.org/packages/Microsoft.VisualStudio.Sdk) packages.
15
+
While the VisualStudio.Extensibility model was created primarily to host extensions outside of the devenv.exe process, it is possible to use VisualStudio.Extensibility SDK APIs in an extension running in the Visual Studio process and utilizing traditional extensibility APIs provided by the [Microsoft.VisualStudio.Sdk](https://www.nuget.org/packages/Microsoft.VisualStudio.Sdk) packages.
16
16
17
17
The support of *in-proc* usage is meant to allow early adopters to the new VisualStudio.Extensibility APIs while relying on [Microsoft.VisualStudio.Sdk](https://www.nuget.org/packages/Microsoft.VisualStudio.Sdk) to cover any feature gap.
18
18
19
19
This document is a quick walkthrough on different options to utilize VisualStudio.Extensibility SDK in-proc.
20
20
21
21
* If you are developing a new extension, our recommended method is to create a VisualStudio.Extension that is hosted in-process following [this tutorial](#create-your-first-vssdk-compatible-visualstudioextensibility-extension). This will allow you to use full capabilities of VisualStudio.Extensibility SDK in addition to being able to inject VSSDK and MEF services.
22
22
23
-
* If you have an existing VSSDK extension, you can follow [these tips](#use-visualstudioextensibility-apis-from-existing-vssdk-extensions) to use the new `VisualStudioExtensibility` instance in your extension.
23
+
* If you have an existing VSSDK extension, you can follow [these tips](#use-visualstudioextensibility-apis-from-existing-vssdk-extensions) to use the new [VisualStudioExtensibility](https://learn.microsoft.com/en-us/dotnet/api/microsoft.visualstudio.extensibility.visualstudioextensibility) instance in your extension.
24
24
25
-
* If you want to add commands, debug visualizers, tool windows to your existing VSSDK extension by using VisualStudio.Extensibility SDK, you can refer to [these tips](#using-visualstudioextensibility-sdk-and-vssdk-together) to host both a VSSDK extension and VisualStudio.Extensibility SDK in the same VS extension project.
25
+
* If you want to add commands, debug visualizers, tool windows to your existing VSSDK extension by using the VisualStudio.Extensibility SDK, you can refer to [these tips](#add-a-visualstudioextensibility-extension-to-an-existing-vssdk-extension-project) to host both a VSSDK extension and a VisualStudio.Extensibility extension in the same VS extension project.
26
26
27
27
# Create your first VSSDK-compatible VisualStudio.Extensibility extension
28
28
@@ -31,9 +31,8 @@ While the VisualStudio.Extensibility model was created primarily to host extensi
31
31
32
32
## Prerequisites
33
33
34
-
* Visual Studio 2022.6 Preview 1 or higher with `.Net desktop development` workload.
35
-
* Install [VisualStudio.Extensibility Project System](https://marketplace.visualstudio.com/items?itemName=vsext.gladstone): This extension contains project templates for VisualStudio.Extensibility extensions.
36
-
* If you're updating from earlier builds, make sure to update VisualStudio.Extensibility Project System to latest version as there are breaking changes in VisualStudio.Extensibility packages.
34
+
* Visual Studio 2022.9 Preview 1 or higher with `.Net desktop development` and `Visual Studio extension development` workload.
35
+
* If you're updating from earlier builds, make sure to uninstall VisualStudio.Extensibility Project System to avoid potential conflicts.
37
36
38
37
## Create the extension project
39
38
@@ -124,9 +123,9 @@ internal class MyExtension : Extension
124
123
125
124
# Use VisualStudio.Extensibility from existing VSSDK extensions
ForexistingVSSDKextensions, anotheroptionistoqueryforthe [VisualStudioExtensibility](https://learn.microsoft.com/en-us/dotnet/api/microsoft.visualstudio.extensibility.visualstudioextensibility) instance via service provider and utilize its methods. This method will allow you to use new the API surface area of VisualStudio.Extensibility SDK in your existing components. This can be useful in situations where you like to use the new API to query project information, document management without creating a new VisualStudio.Extensibility based extension.
Ifyoualsowanttocontributecomponentsliketoolwindows, editorlistenersusingtheVisualStudio.ExtensibilitySDKwithinyourexistingVSSDKextension, youwillhavetofollowadditionalstepstocreateaVisualStudio.Extensibility[Extension](https://learn.microsoft.com/en-us/dotnet/api/microsoft.visualstudio.extensibility.extension) instance in your project.
0 commit comments