51 references to Runtime
Microsoft.Build (38)
BackEnd\Components\RequestBuilder\RequestBuilder.cs (1)
1434registeredTaskRecord.TaskFactoryParameters.Runtime);
BackEnd\TaskExecutionHost\TaskExecutionHost.cs (3)
1232returnClass.FactoryIdentityParameters.Runtime ?? XMakeAttributes.MSBuildRuntimeValues.any, 1234taskIdentityParameters.Runtime ?? XMakeAttributes.MSBuildRuntimeValues.any, 2280XMakeAttributes.RuntimeValuesMatch(taskIdentityParameters.Runtime, XMakeAttributes.GetCurrentMSBuildRuntime()) &&
Instance\TaskFactories\AssemblyTaskFactory.cs (19)
436string runtime = taskHostParameters.Runtime 520if (identityParameters.Runtime != null) 522if (!XMakeAttributes.IsValidMSBuildRuntimeValue(identityParameters.Runtime)) 528identityParameters.Runtime, 567if (XMakeAttributes.RuntimeValuesMatch(taskIdentityParameters.Runtime, factoryIdentityParameters.Runtime)) 595string normalizedRuntime = XMakeAttributes.GetExplicitMSBuildRuntime(factoryIdentityParameters.Runtime); 598return normalizedRuntime == factoryIdentityParameters.Runtime && normalizedArch == factoryIdentityParameters.Architecture 605string normalizedRuntime = XMakeAttributes.GetExplicitMSBuildRuntime(taskIdentityParameters.Runtime); 608return normalizedRuntime == taskIdentityParameters.Runtime && normalizedArch == taskIdentityParameters.Architecture 613if (!XMakeAttributes.TryMergeRuntimeValues(taskIdentityParameters.Runtime, factoryIdentityParameters.Runtime, out var mergedRuntime)) 615InternalError.Throw($"How did we get two runtime values that were unmergeable? TaskIdentity Runtime: {taskIdentityParameters.Runtime}, FactoryIdentity Runtime: {factoryIdentityParameters.Runtime}."); 637if (currentParams.Runtime == null || 638!currentParams.Runtime.Equals(XMakeAttributes.MSBuildRuntimeValues.net, StringComparison.OrdinalIgnoreCase)) 664runtime: currentParams.Runtime, 682if (mergedParameters.Runtime != null) 686if (!currentRuntime.Equals(XMakeAttributes.GetExplicitMSBuildRuntime(mergedParameters.Runtime), StringComparison.OrdinalIgnoreCase))
Instance\TaskFactories\TaskHostTask.cs (5)
170string.Equals(_taskHostParameters.Runtime, XMakeAttributes.MSBuildRuntimeValues.net, StringComparison.OrdinalIgnoreCase); 362_taskHostParameters.Runtime, 485LogErrorUnableToCreateTaskHost(_requiredContext, _taskHostParameters.Runtime, _taskHostParameters.Architecture, null); 490LogErrorUnableToCreateTaskHost(_requiredContext, _taskHostParameters.Runtime, _taskHostParameters.Architecture, ex); 494LogErrorUnableToCreateTaskHost(_requiredContext, _taskHostParameters.Runtime, _taskHostParameters.Architecture, e);
Instance\TaskRegistry.cs (10)
702int runtimeHash = obj.TaskIdentityParameters.Runtime == null ? 0 : StringComparer.OrdinalIgnoreCase.GetHashCode(obj.TaskIdentityParameters.Runtime); 744return string.Equals(x.Runtime, y.Runtime, StringComparison.OrdinalIgnoreCase) && 752string runtimeX = x.Runtime; 753string runtimeY = y.Runtime; 954Assumed.True(taskFactoryParameters.Runtime != null && taskFactoryParameters.Architecture != null, "if the parameters are non-null, it should contain both Runtime and Architecture when we get here!"); 1305{ nameof(TaskHostParameters.Runtime), TaskFactoryParameters.Runtime }, 1322bool containsArchOrRuntimeParam = TaskFactoryParameters.Runtime != null
Microsoft.Build.Framework (13)
BackEnd\CommunicationsUtilities.cs (5)
589Assumed.NotNull(taskHostParameters.Runtime, "Should always have an explicit runtime when we call this method."); 592if (taskHostParameters.Runtime.Equals(XMakeAttributes.MSBuildRuntimeValues.clr2, StringComparison.OrdinalIgnoreCase)) 596else if (taskHostParameters.Runtime.Equals(XMakeAttributes.MSBuildRuntimeValues.clr4, StringComparison.OrdinalIgnoreCase)) 600else if (taskHostParameters.Runtime.Equals(XMakeAttributes.MSBuildRuntimeValues.net, StringComparison.OrdinalIgnoreCase)) 623XMakeAttributes.MSBuildRuntimeValues.net.Equals(taskHostParameters.Runtime, StringComparison.OrdinalIgnoreCase);
BinaryTranslator.cs (1)
1075string runtime = value.Runtime;
TaskHostParameters.cs (7)
79StringComparer.OrdinalIgnoreCase.Equals(Runtime ?? string.Empty, other.Runtime ?? string.Empty) 91hash = hash * 31 + comparer.GetHashCode(Runtime ?? string.Empty); 132runtime: overrideParameters.Runtime ?? baseParameters.Runtime, 163{ nameof(Runtime), Runtime ?? string.Empty },