IGLib
1.7.2
The IGLib base library EXTENDED - with other lilbraries and applications.
|
RuntimeFramework represents a particular version of a common language runtime implementation. More...
Public Member Functions | |
RuntimeFramework (RuntimeType runtime, Version version) | |
Construct from a runtime type and version. If the version has two parts, it is taken as a framework version. If it has three or more, it is taken as a CLR version. In either case, the other version is deduced based on the runtime type and provided version. More... | |
override string | ToString () |
Overridden to return the short name of the framework More... | |
bool | Supports (RuntimeFramework target) |
Returns true if the current framework matches the one supplied as an argument. Two frameworks match if their runtime types are the same or either one is RuntimeType.Any and all specified version components are equal. Negative (i.e. unspecified) version components are ignored. More... | |
Static Public Member Functions | |
static RuntimeFramework | Parse (string s) |
Parses a string representing a RuntimeFramework. The string may be just a RuntimeType name or just a Version or a hyphenated RuntimeType-Version or a Version prefixed by 'v'. More... | |
static RuntimeFramework | GetBestAvailableFramework (RuntimeFramework target) |
Returns the best available framework that matches a target framework. If the target framework has a build number specified, then an exact match is needed. Otherwise, the matching framework with the highest build number is used. More... | |
Static Public Attributes | |
static readonly Version | DefaultVersion = new Version(0, 0) |
DefaultVersion is an empty Version, used to indicate that NUnit should select the CLR version to use for the test. More... | |
Properties | |
static RuntimeFramework | CurrentFramework [get] |
Static method to return a RuntimeFramework object for the framework that is currently in use. More... | |
static RuntimeFramework[] | AvailableFrameworks [get] |
Gets an array of all available frameworks More... | |
bool | IsAvailable [get] |
Returns true if the current RuntimeFramework is available. In the current implementation, only Mono and Microsoft .NET are supported. More... | |
RuntimeType | Runtime [get, private set] |
The type of this runtime framework More... | |
Version | FrameworkVersion [get, private set] |
The framework version for this runtime framework More... | |
Version | ClrVersion [get, private set] |
The CLR version for this runtime framework More... | |
bool | AllowAnyVersion [get] |
Return true if any CLR version may be used in matching this RuntimeFramework object. More... | |
string | DisplayName [get, private set] |
Returns the Display name for this framework More... | |
Private Member Functions | |
void | InitFromFrameworkVersion (Version version) |
void | InitFromClrVersion (Version version) |
Static Private Member Functions | |
static void | ThrowInvalidFrameworkVersion (Version version) |
static bool | IsRuntimeTypeName (string name) |
static string | GetDefaultDisplayName (RuntimeType runtime, Version version) |
static bool | VersionsMatch (Version v1, Version v2) |
static void | AppendMonoFrameworks (List< RuntimeFramework > frameworks) |
static void | AppendAllMonoFrameworks (List< RuntimeFramework > frameworks) |
static void | AppendDefaultMonoFramework (List< RuntimeFramework > frameworks) |
static void | AppendMonoFramework (List< RuntimeFramework > frameworks, string monoPrefix, string version) |
static void | AppendDotNetFrameworks (List< RuntimeFramework > frameworks) |
static void | AppendExtremelyOldDotNetFrameworkVersions (List< RuntimeFramework > frameworks) |
static void | AppendOlderDotNetFrameworkVersion (List< RuntimeFramework > frameworks, RegistryKey versionKey, Version version) |
static void | AppendDotNetFourFrameworkVersions (List< RuntimeFramework > frameworks, RegistryKey versionKey) |
static bool | CheckInstallDword (RegistryKey key) |
Static Private Attributes | |
static RuntimeFramework | currentFramework |
static RuntimeFramework[] | availableFrameworks |
RuntimeFramework represents a particular version of a common language runtime implementation.
|
inline |
Construct from a runtime type and version. If the version has two parts, it is taken as a framework version. If it has three or more, it is taken as a CLR version. In either case, the other version is deduced based on the runtime type and provided version.
runtime | The runtime type of the framework |
version | The version of the framework |
|
inlineprivate |
|
inlinestaticprivate |
|
inlineprivate |
|
inlinestatic |
Parses a string representing a RuntimeFramework. The string may be just a RuntimeType name or just a Version or a hyphenated RuntimeType-Version or a Version prefixed by 'v'.
s |
Referenced by NUnit.Engine.Services.RuntimeFrameworkService.IsAvailable(), NUnit.Engine.Services.TestAgency.LaunchAgentProcess(), NUnit.Engine.Services.Tests.RuntimeFrameworkServiceTests.SelectRuntimeFramework(), NUnit.Engine.Services.RuntimeFrameworkService.SelectRuntimeFramework(), and NUnit.Engine.Runners.MasterTestRunner.ValidatePackageSettings().
|
inlinestatic |
Returns the best available framework that matches a target framework. If the target framework has a build number specified, then an exact match is needed. Otherwise, the matching framework with the highest build number is used.
target |
References NUnit.Engine.RuntimeFramework.ClrVersion, and NUnit.Engine.RuntimeFramework.Supports().
Referenced by NUnit.Engine.Services.TestAgency.LaunchAgentProcess().
|
inline |
Overridden to return the short name of the framework
Referenced by NUnit.Engine.Services.RuntimeFrameworkService.SelectRuntimeFramework().
|
inline |
Returns true if the current framework matches the one supplied as an argument. Two frameworks match if their runtime types are the same or either one is RuntimeType.Any and all specified version components are equal. Negative (i.e. unspecified) version components are ignored.
target | The RuntimeFramework to be matched. |
true
on match, otherwise false
References NUnit.Engine.RuntimeFramework.AllowAnyVersion, NUnit.Engine.RuntimeFramework.ClrVersion, NUnit.Engine.RuntimeFramework.FrameworkVersion, and NUnit.Engine.RuntimeFramework.Runtime.
Referenced by NUnit.Engine.RuntimeFramework.GetBestAvailableFramework().
|
inlinestaticprivate |
|
inlinestaticprivate |
|
inlinestaticprivate |
|
inlinestaticprivate |
|
inlinestaticprivate |
|
inlinestaticprivate |
|
inlinestaticprivate |
|
inlinestaticprivate |
|
inlinestaticprivate |
|
inlinestaticprivate |
|
inlinestaticprivate |
|
inlinestaticprivate |
|
static |
DefaultVersion is an empty Version, used to indicate that NUnit should select the CLR version to use for the test.
Referenced by NUnit.Engine.Services.RuntimeFrameworkService.SelectRuntimeFramework().
|
staticprivate |
|
staticprivate |
|
staticget |
Static method to return a RuntimeFramework object for the framework that is currently in use.
Referenced by NUnit.Engine.Services.TestAgency.LaunchAgentProcess(), NUnit.Agent.NUnitTestAgent.Main(), NUnit.Engine.Services.RuntimeFrameworkService.SelectRuntimeFramework(), and NUnit.Engine.Runners.MasterTestRunner.ValidatePackageSettings().
|
staticget |
Gets an array of all available frameworks
Referenced by NUnit.Engine.Services.RuntimeFrameworkService.IsAvailable().
|
get |
Returns true if the current RuntimeFramework is available. In the current implementation, only Mono and Microsoft .NET are supported.
Referenced by NUnit.Engine.Services.TestAgency.LaunchAgentProcess(), and NUnit.Engine.Services.RuntimeFrameworkService.SelectRuntimeFramework().
|
getprivate set |
The type of this runtime framework
Referenced by NUnit.Engine.Services.RuntimeFrameworkService.FrameworksMatch(), NUnit.Engine.Services.TestAgency.LaunchAgentProcess(), NUnit.Engine.Services.RuntimeFrameworkService.SelectRuntimeFramework(), and NUnit.Engine.RuntimeFramework.Supports().
|
getprivate set |
The framework version for this runtime framework
Referenced by NUnit.Engine.RuntimeFramework.AppendMonoFramework(), NUnit.Engine.Services.RuntimeFrameworkService.FrameworksMatch(), NUnit.Engine.Services.RuntimeFrameworkService.SelectRuntimeFramework(), and NUnit.Engine.RuntimeFramework.Supports().
|
getprivate set |
The CLR version for this runtime framework
Referenced by NUnit.Engine.Services.RuntimeFrameworkService.FrameworksMatch(), NUnit.Engine.RuntimeFramework.GetBestAvailableFramework(), NUnit.Engine.Services.TestAgency.LaunchAgentProcess(), and NUnit.Engine.RuntimeFramework.Supports().
|
get |
Return true if any CLR version may be used in matching this RuntimeFramework object.
Referenced by NUnit.Engine.RuntimeFramework.Supports().
|
getprivate set |
Returns the Display name for this framework
Referenced by NUnit.Engine.RuntimeFramework.AppendMonoFramework(), and NUnit.Agent.NUnitTestAgent.Main().