MSBuildToolVersion Enum

Summary

Represents a MSBuild tool version.
Namespace
Cake.Common.Tools.MSBuild
Interfaces
  • IComparable
  • IFormattable
  • IConvertible
Base Types
  • object
  • ValueType
  • Enum
graph BT Type-->Base0["Enum"] Base0-->Base1["ValueType"] Base1-->Base2["object"] Type-.->Interface0["IComparable"] Type-.->Interface1["IFormattable"] Type-.->Interface2["IConvertible"] Type["MSBuildToolVersion"] class Type type-node

Syntax

public enum MSBuildToolVersion

Fields

Name Constant Value Summary
Default 0
The highest available MSBuild tool version.
static
NET20 1
MSBuild tool version: .NET 2.0
static
NET30 1
MSBuild tool version: .NET 3.0
static
NET35 2
MSBuild tool version: .NET 3.5
static
NET40 3
MSBuild tool version: .NET 4.0
static
NET45 3
MSBuild tool version: .NET 4.5
static
NET451 4
MSBuild tool version: .NET 4.5.1
static
NET452 4
MSBuild tool version: .NET 4.5.2
static
NET46 5
MSBuild tool version: .NET 4.6
static
NETCustom 9
Custom Visual Studio build
static
VS2005 1
MSBuild tool version: Visual Studio 2005
static
VS2008 2
MSBuild tool version: Visual Studio 2008
static
VS2010 3
MSBuild tool version: Visual Studio 2010
static
VS2011 3
MSBuild tool version: Visual Studio 2011
static
VS2012 3
MSBuild tool version: Visual Studio 2012
static
VS2013 4
MSBuild tool version: Visual Studio 2013
static
VS2015 5
MSBuild tool version: Visual Studio 2015
static
VS2017 6
MSBuild tool version: Visual Studio 2017
static
VS2019 7
MSBuild tool version: Visual Studio 2019
static
VS2022 10
MSBuild tool version: Visual Studio 2022
static
VSCustom 8
Custom Visual Studio build
static

Extension Methods

Name Value Summary
Dump<MSBuildToolVersion>() string
Get a basic string representation of specified object.
Requires the Cake.Incubator addin
IsIn<MSBuildToolVersion>(MSBuildToolVersion[]) bool
Checks if the source is contained in a list
Requires the Cake.Incubator addin
ThrowIfNull<MSBuildToolVersion>(string) T
Throws a System.ArgumentNullException if the value is null, otherwise returns the value
Requires the Cake.Incubator addin
ThrowIfNull<MSBuildToolVersion>(string, string) T
Throws a System.ArgumentNullException with a specific message if the value is null, otherwise returns the value
Requires the Cake.Incubator addin
ToDictionary() IDictionary<string, object>
Requires the Cake.DeployParams addin