Runtimes.DotnetInfo Class
Declaring Type: Runtimes
Namespace: Velopack.Windows
Assembly: Velopack
Assembly Version: 0.0.1053+0cec039
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
Name | Description |
---|---|
DotnetInfo(Version, RuntimeCpu, Runtimes.DotnetRuntimeType) |
Properties
Name | Description |
---|---|
CpuArchitecture | The 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 | |
MinVersion | The minimum compatible version that must be installed. |
RuntimeType | The type of runtime required, eg. Windows Desktop, AspNetCore, Sdk. |
Methods
Name | Description |
---|---|
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