MSBuildVersion Enum

Summary

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

Syntax

public enum MSBuildVersion

Fields

Name Constant Value Summary
MSBuild12 4
Version 12.0
static
MSBuild14 5
Version 14.0
static
MSBuild15 6
Version 15.0
static
MSBuild16 7
Version 16.0
static
MSBuild17 10
Version 17.0
static
MSBuild20 1
Version 2.0
static
MSBuild35 2
Version 3.5
static
MSBuild4 3
Version 4.0
static
MSBuildCustomVS 8
Custom VS Version
static
MSBuildNETCustom 9
Custom .NET Version
static

Extension Methods

Name Value Summary
Dump<MSBuildVersion>() string
Get a basic string representation of specified object.
Requires the Cake.Incubator addin
IsIn<MSBuildVersion>(MSBuildVersion[]) bool
Checks if the source is contained in a list
Requires the Cake.Incubator addin
ThrowIfNull<MSBuildVersion>(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
ThrowIfNull<MSBuildVersion>(string) T
Throws a System.ArgumentNullException if the value is null, otherwise returns the value
Requires the Cake.Incubator addin
ToDictionary() IDictionary<string, object>
Requires the Cake.DeployParams addin
ToStringWithNullMarkup() string
Returns the string value or a Not set> markup suitable for Spectre.Console.
Requires the Cake.Issues addin