59 references to Runtime
Microsoft.Build (40)
BackEnd\Components\RequestBuilder\RequestBuilder.cs (1)
1382
registeredTaskRecord.TaskFactoryParameters.
Runtime
);
BackEnd\TaskExecutionHost\TaskExecutionHost.cs (2)
954
returnClass.FactoryIdentityParameters.
Runtime
?? XMakeAttributes.MSBuildRuntimeValues.any,
956
taskIdentityParameters.
Runtime
?? XMakeAttributes.MSBuildRuntimeValues.any,
CommunicationsUtilities.cs (4)
694
ErrorUtilities.VerifyThrow(taskHostParameters.
Runtime
!= null, "Should always have an explicit runtime when we call this method.");
697
if (taskHostParameters.
Runtime
.Equals(XMakeAttributes.MSBuildRuntimeValues.clr2, StringComparison.OrdinalIgnoreCase))
701
else if (taskHostParameters.
Runtime
.Equals(XMakeAttributes.MSBuildRuntimeValues.clr4, StringComparison.OrdinalIgnoreCase))
705
else if (taskHostParameters.
Runtime
.Equals(XMakeAttributes.MSBuildRuntimeValues.net, StringComparison.OrdinalIgnoreCase))
Instance\TaskFactories\AssemblyTaskFactory.cs (19)
434
string runtime = taskHostParameters.
Runtime
517
if (identityParameters.
Runtime
!= null)
519
if (!XMakeAttributes.IsValidMSBuildRuntimeValue(identityParameters.
Runtime
))
525
identityParameters.
Runtime
,
564
if (XMakeAttributes.RuntimeValuesMatch(taskIdentityParameters.
Runtime
, factoryIdentityParameters.
Runtime
))
592
string normalizedRuntime = XMakeAttributes.GetExplicitMSBuildRuntime(factoryIdentityParameters.
Runtime
);
595
return normalizedRuntime == factoryIdentityParameters.
Runtime
&& normalizedArch == factoryIdentityParameters.Architecture
602
string normalizedRuntime = XMakeAttributes.GetExplicitMSBuildRuntime(taskIdentityParameters.
Runtime
);
605
return normalizedRuntime == taskIdentityParameters.
Runtime
&& normalizedArch == taskIdentityParameters.Architecture
610
if (!XMakeAttributes.TryMergeRuntimeValues(taskIdentityParameters.
Runtime
, factoryIdentityParameters.
Runtime
, out var mergedRuntime))
613
$"TaskIdentity Runtime: {taskIdentityParameters.
Runtime
}, FactoryIdentity Runtime: {factoryIdentityParameters.
Runtime
}.");
636
if (currentParams.
Runtime
== null ||
637
!currentParams.
Runtime
.Equals(XMakeAttributes.MSBuildRuntimeValues.net, StringComparison.OrdinalIgnoreCase))
663
runtime: currentParams.
Runtime
,
681
if (mergedParameters.
Runtime
!= null)
685
if (!currentRuntime.Equals(XMakeAttributes.GetExplicitMSBuildRuntime(mergedParameters.
Runtime
), StringComparison.OrdinalIgnoreCase))
Instance\TaskFactories\TaskHostTask.cs (4)
309
_taskHostParameters.
Runtime
,
400
LogErrorUnableToCreateTaskHost(_requiredContext, _taskHostParameters.
Runtime
, _taskHostParameters.Architecture, null);
405
LogErrorUnableToCreateTaskHost(_requiredContext, _taskHostParameters.
Runtime
, _taskHostParameters.Architecture, ex);
409
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
;
1171
taskFactoryParameters.
Runtime
!= null && taskFactoryParameters.Architecture != null,
1520
{ nameof(TaskHostParameters.
Runtime
), TaskFactoryParameters.
Runtime
},
1537
bool containsArchOrRuntimeParam = TaskFactoryParameters.
Runtime
!= null
Microsoft.Build.Engine.UnitTests (3)
BackEnd\TaskRegistry_Tests.cs (1)
1910
Assert.Equal(expectedRuntime, record.TaskFactoryParameters.
Runtime
);
TestComparers\TaskRegistryComparers.cs (2)
56
Assert.Equal(xParams.
Runtime
, yParams.
Runtime
);
Microsoft.Build.Framework (8)
BinaryTranslator.cs (1)
1087
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 },
Microsoft.Build.Tasks.Core (4)
CommunicationsUtilities.cs (4)
694
ErrorUtilities.VerifyThrow(taskHostParameters.
Runtime
!= null, "Should always have an explicit runtime when we call this method.");
697
if (taskHostParameters.
Runtime
.Equals(XMakeAttributes.MSBuildRuntimeValues.clr2, StringComparison.OrdinalIgnoreCase))
701
else if (taskHostParameters.
Runtime
.Equals(XMakeAttributes.MSBuildRuntimeValues.clr4, StringComparison.OrdinalIgnoreCase))
705
else if (taskHostParameters.
Runtime
.Equals(XMakeAttributes.MSBuildRuntimeValues.net, StringComparison.OrdinalIgnoreCase))
MSBuild (4)
CommunicationsUtilities.cs (4)
694
ErrorUtilities.VerifyThrow(taskHostParameters.
Runtime
!= null, "Should always have an explicit runtime when we call this method.");
697
if (taskHostParameters.
Runtime
.Equals(XMakeAttributes.MSBuildRuntimeValues.clr2, StringComparison.OrdinalIgnoreCase))
701
else if (taskHostParameters.
Runtime
.Equals(XMakeAttributes.MSBuildRuntimeValues.clr4, StringComparison.OrdinalIgnoreCase))
705
else if (taskHostParameters.
Runtime
.Equals(XMakeAttributes.MSBuildRuntimeValues.net, StringComparison.OrdinalIgnoreCase))