Compartilhar via


ProvideLoadKeyAttribute.ProductVersion Property

Gets the version number of your VSPackage.

Namespace:  Microsoft.VisualStudio.Shell
Assembly:  Microsoft.VisualStudio.Shell.12.0 (in Microsoft.VisualStudio.Shell.12.0.dll)

Syntax

'Declaration
Public ReadOnly Property ProductVersion As String
public string ProductVersion { get; }
public:
property String^ ProductVersion {
    String^ get ();
}
member ProductVersion : string with get
function get ProductVersion () : String

Property Value

Type: String
The version number of your VSPackage.

Remarks

Important

Packages that target Visual Studio 2010 only do not need a package load key.

Packages that target Visual Studio 2008 and earlier must have a package load key in order to validate and load VSPackages. This includes VSPackages provided by third parties, regardless of whether the hosting version of Visual Studio has a VSIP license.

ProductVersion is the version of the product that this VSPackage implements.

.NET Framework Security

See Also

Reference

ProvideLoadKeyAttribute Class

Microsoft.VisualStudio.Shell Namespace