Class WorkflowBuildOptionsExtensions.StepsBuildOptions.SetupDotnetOptions
Provides factories for creating SetupDotnetStep options for common .NET SDK versions.
public sealed class WorkflowBuildOptionsExtensions.StepsBuildOptions.SetupDotnetOptions
- Inheritance
-
objectWorkflowBuildOptionsExtensions.StepsBuildOptions.SetupDotnetOptions
Constructors
SetupDotnetOptions()
public SetupDotnetOptions()
Methods
Dotnet100X(bool, string?)
Creates a step that installs the latest .NET 10.0 SDK.
public SetupDotnetStep Dotnet100X(bool cache = false, string? lockFile = null)
Parameters
cacheboolWhether to enable NuGet package caching.
lockFilestringAn optional path to a lock file used as the cache key.
Returns
- SetupDotnetStep
A SetupDotnetStep option.
Dotnet110X(bool, string?)
Creates a step that installs the latest .NET 11.0 SDK.
public SetupDotnetStep Dotnet110X(bool cache = false, string? lockFile = null)
Parameters
cacheboolWhether to enable NuGet package caching.
lockFilestringAn optional path to a lock file used as the cache key.
Returns
- SetupDotnetStep
A SetupDotnetStep option.
Dotnet80X(bool, string?)
Creates a step that installs the latest .NET 8.0 SDK.
public SetupDotnetStep Dotnet80X(bool cache = false, string? lockFile = null)
Parameters
cacheboolWhether to enable NuGet package caching.
lockFilestringAn optional path to a lock file used as the cache key.
Returns
- SetupDotnetStep
A SetupDotnetStep option.
Dotnet90X(bool, string?)
Creates a step that installs the latest .NET 9.0 SDK.
public SetupDotnetStep Dotnet90X(bool cache = false, string? lockFile = null)
Parameters
cacheboolWhether to enable NuGet package caching.
lockFilestringAn optional path to a lock file used as the cache key.
Returns
- SetupDotnetStep
A SetupDotnetStep option.
From(Template?, DotnetQuality?, bool, string?)
Creates a step that installs a custom .NET SDK version.
public SetupDotnetStep From(Template? dotnetVersion = null, SetupDotnetStep.DotnetQuality? quality = null, bool cache = false, string? lockFile = null)
Parameters
dotnetVersionTemplateAn optional expression that resolves to the SDK version to install.
qualitySetupDotnetStep.DotnetQuality?An optional SDK quality channel (e.g., preview, GA).
cacheboolWhether to enable NuGet package caching.
lockFilestringAn optional path to a lock file used as the cache key.
Returns
- SetupDotnetStep
A SetupDotnetStep option.