48 references to Runtime
Microsoft.Build (36)
BackEnd\Components\RequestBuilder\RequestBuilder.cs (1)
1379
registeredTaskRecord.TaskFactoryParameters.
Runtime
);
BackEnd\TaskExecutionHost\TaskExecutionHost.cs (2)
954
returnClass.FactoryIdentityParameters.
Runtime
?? XMakeAttributes.MSBuildRuntimeValues.any,
956
taskIdentityParameters.
Runtime
?? XMakeAttributes.MSBuildRuntimeValues.any,
Instance\TaskFactories\AssemblyTaskFactory.cs (19)
441
string runtime = taskHostParameters.
Runtime
524
if (identityParameters.
Runtime
!= null)
526
if (!XMakeAttributes.IsValidMSBuildRuntimeValue(identityParameters.
Runtime
))
532
identityParameters.
Runtime
,
571
if (XMakeAttributes.RuntimeValuesMatch(taskIdentityParameters.
Runtime
, factoryIdentityParameters.
Runtime
))
599
string normalizedRuntime = XMakeAttributes.GetExplicitMSBuildRuntime(factoryIdentityParameters.
Runtime
);
602
return normalizedRuntime == factoryIdentityParameters.
Runtime
&& normalizedArch == factoryIdentityParameters.Architecture
609
string normalizedRuntime = XMakeAttributes.GetExplicitMSBuildRuntime(taskIdentityParameters.
Runtime
);
612
return normalizedRuntime == taskIdentityParameters.
Runtime
&& normalizedArch == taskIdentityParameters.Architecture
617
if (!XMakeAttributes.TryMergeRuntimeValues(taskIdentityParameters.
Runtime
, factoryIdentityParameters.
Runtime
, out var mergedRuntime))
619
InternalError.Throw($"How did we get two runtime values that were unmergeable? TaskIdentity Runtime: {taskIdentityParameters.
Runtime
}, FactoryIdentity Runtime: {factoryIdentityParameters.
Runtime
}.");
641
if (currentParams.
Runtime
== null ||
642
!currentParams.
Runtime
.Equals(XMakeAttributes.MSBuildRuntimeValues.net, StringComparison.OrdinalIgnoreCase))
668
runtime: currentParams.
Runtime
,
686
if (mergedParameters.
Runtime
!= null)
690
if (!currentRuntime.Equals(XMakeAttributes.GetExplicitMSBuildRuntime(mergedParameters.
Runtime
), StringComparison.OrdinalIgnoreCase))
Instance\TaskFactories\TaskHostTask.cs (4)
311
_taskHostParameters.
Runtime
,
425
LogErrorUnableToCreateTaskHost(_requiredContext, _taskHostParameters.
Runtime
, _taskHostParameters.Architecture, null);
430
LogErrorUnableToCreateTaskHost(_requiredContext, _taskHostParameters.
Runtime
, _taskHostParameters.Architecture, ex);
434
LogErrorUnableToCreateTaskHost(_requiredContext, _taskHostParameters.
Runtime
, _taskHostParameters.Architecture, e);
Instance\TaskRegistry.cs (10)
913
int runtimeHash = obj.TaskIdentityParameters.
Runtime
== null ? 0 : StringComparer.OrdinalIgnoreCase.GetHashCode(obj.TaskIdentityParameters.
Runtime
);
955
return string.Equals(x.
Runtime
, y.
Runtime
, StringComparison.OrdinalIgnoreCase) &&
963
string runtimeX = x.
Runtime
;
964
string runtimeY = y.
Runtime
;
1170
Assumed.True(taskFactoryParameters.
Runtime
!= null && taskFactoryParameters.Architecture != null, "if the parameters are non-null, it should contain both Runtime and Architecture when we get here!");
1518
{ nameof(TaskHostParameters.
Runtime
), TaskFactoryParameters.
Runtime
},
1535
bool containsArchOrRuntimeParam = TaskFactoryParameters.
Runtime
!= null
Microsoft.Build.Framework (12)
BackEnd\CommunicationsUtilities.cs (4)
559
Assumed.NotNull(taskHostParameters.
Runtime
, "Should always have an explicit runtime when we call this method.");
562
if (taskHostParameters.
Runtime
.Equals(XMakeAttributes.MSBuildRuntimeValues.clr2, StringComparison.OrdinalIgnoreCase))
566
else if (taskHostParameters.
Runtime
.Equals(XMakeAttributes.MSBuildRuntimeValues.clr4, StringComparison.OrdinalIgnoreCase))
570
else if (taskHostParameters.
Runtime
.Equals(XMakeAttributes.MSBuildRuntimeValues.net, StringComparison.OrdinalIgnoreCase))
BinaryTranslator.cs (1)
1075
string runtime = value.
Runtime
;
TaskHostParameters.cs (7)
79
StringComparer.OrdinalIgnoreCase.Equals(
Runtime
?? string.Empty, other.
Runtime
?? string.Empty)
91
hash = hash * 31 + comparer.GetHashCode(
Runtime
?? string.Empty);
132
runtime: overrideParameters.
Runtime
?? baseParameters.
Runtime
,
163
{ nameof(
Runtime
),
Runtime
?? string.Empty },