ExtensionMetadata.DotnetTargetVersions Property

Definition

Gets the optional list of .NET versions that the extension is supported on.

public Microsoft.VisualStudio.Extensibility.DotnetTarget[]? DotnetTargetVersions { get; init; }
member this.DotnetTargetVersions : Microsoft.VisualStudio.Extensibility.DotnetTarget[] with get, set
Public Property DotnetTargetVersions As DotnetTarget()

Property Value

Remarks

Extensions should be built with a TargetFramework compatible with all the DotnetTargetVersions values.

Visual Studio 2022 17.9 loads VisualStudio.Extensibility out-of-process extensions using .NET 8. Newer versions of Visual Studio may use a newer version of.NET, which may require specification of a different DotnetTargetVersions value.

DotnetTargetVersions should include all.NET versions used by VS versions the extension is compatible with.

Applies to