Skip to main content

Runtimes.DotnetInfo Class

Declaring Type: Runtimes
Namespace: Velopack.Windows
Assembly: Velopack
Assembly Version: 0.0.626+6f1a94e

Represents a modern DOTNET runtime where versions are deployed independenly of the operating system

public class Runtimes.DotnetInfo : Runtimes.RuntimeInfo

Inheritance: object → Runtimes.RuntimeInfo → Runtimes.DotnetInfo

Constructors

NameDescription
DotnetInfo(Version, RuntimeCpu, Runtimes.DotnetRuntimeType)

Properties

NameDescription
CpuArchitectureThe CPU architecture of the runtime. This must match the RID of the app being deployed. For example, if the app was deployed with 'win-x64', this must be X64 also.
DisplayName
Id
MinVersionThe minimum compatible version that must be installed.
RuntimeTypeThe type of runtime required, eg. Windows Desktop, AspNetCore, Sdk.

Methods

NameDescription
CheckIsInstalled()
CheckIsSupported()
GetDotNetDownloadUrl(Runtimes.DotnetRuntimeType, string, string)Get download url for a specific version of dotnet. Version must be an absolute version, such as one returned by GetLatestDotNetVersion(Runtimes.DotnetRuntimeType, string, IFileDownloader). cpuarch should be either 'x86', 'x64', or 'arm64'.
GetDownloadUrl()
GetLatestDotNetVersion(Runtimes.DotnetRuntimeType, string, IFileDownloader)Get latest available version of dotnet. Channel can be 'LTS', 'current', or a two part version (eg. '6.0') to get the latest minor release.
Parse(string)Parses a string such as 'net6' or net5.0.14-x86 into a DotnetInfo class capable of checking the current system for installed status, or downloading / installing.
TryParse(string, Runtimes.DotnetInfo)

Documentation generated by MdDocs