Partilhar via


TargetDotNetFrameworkVersion Enum

Definition

Used to specify the targeted version of the .NET Framework for some methods of ToolLocationHelper.

public enum class TargetDotNetFrameworkVersion
public enum TargetDotNetFrameworkVersion
type TargetDotNetFrameworkVersion = 
Public Enum TargetDotNetFrameworkVersion
Inheritance
TargetDotNetFrameworkVersion

Fields

Name Value Description
Version11 0

version 1.1

Version20 1

version 2.0

Version30 2

version 3.0

Version35 3

version 3.5

Version40 4

version 4.0

Version45 5

version 4.5

VersionLatest 5

The latest version available at the time of major release. This value should not be updated in minor releases as it could be a breaking change. Use 'Latest' if possible, but note the compatibility implications.

Version451 6

version 4.5.1

Version46 7

version 4.6

Version461 8

version 4.6.1

Version452 9

version 4.5.2. Enum is out of order because it was shipped out of band from a Visual Studio update without a corresponding SDK release.

Version462 10

version 4.6.2

Version47 11

version 4.7

Version471 12

version 4.7.1

Version472 13

version 4.7.2

Version48 14

version 4.8

Version481 15

version 4.8.1

Latest 9999

Sentinel value for the latest version that this version of MSBuild is aware of. Similar to VersionLatest except the compiled value in the calling application will not need to change for the update in MSBuild to be used.

Applies to