48 references to runtime
Microsoft.Build (26)
BackEnd\Components\RequestBuilder\TaskBuilder.cs (1)
538
taskIdentityParameters.Add(XMakeAttributes.
runtime
, msbuildRuntime);
BackEnd\TaskExecutionHost\TaskExecutionHost.cs (2)
893
returnClass.FactoryIdentityParameters.TryGetValue(XMakeAttributes.
runtime
, out usingTaskRuntime);
897
taskIdentityParameters.TryGetValue(XMakeAttributes.
runtime
, out string taskRuntime);
CommunicationsUtilities.cs (1)
624
ErrorUtilities.VerifyThrow(taskHostParameters.TryGetValue(XMakeAttributes.
runtime
, out string runtimeVersion), "Should always have an explicit runtime when we call this method.");
Construction\ProjectUsingTaskElement.cs (3)
111
get => GetAttributeValue(XMakeAttributes.
runtime
);
115
SetOrRemoveAttribute(XMakeAttributes.
runtime
, value, "Set usingtask Runtime {0}", value);
187
public ElementLocation RuntimeLocation => GetAttributeLocation(XMakeAttributes.
runtime
);
Evaluation\IntrinsicFunctions.cs (1)
489
parameters.Add(XMakeAttributes.
runtime
, runtime);
Evaluation\ProjectParser.cs (1)
51
private static readonly HashSet<string> ValidAttributesOnUsingTask = new HashSet<string> { XMakeAttributes.condition, XMakeAttributes.label, XMakeAttributes.taskName, XMakeAttributes.assemblyFile, XMakeAttributes.assemblyName, XMakeAttributes.taskFactory, XMakeAttributes.architecture, XMakeAttributes.
runtime
, XMakeAttributes.requiredPlatform, XMakeAttributes.requiredRuntime, XMakeAttributes.overrideUsingTask };
Instance\TaskFactories\AssemblyTaskFactory.cs (11)
351
if (!mergedParameters.ContainsKey(XMakeAttributes.
runtime
))
353
mergedParameters[XMakeAttributes.
runtime
] = XMakeAttributes.GetCurrentMSBuildRuntime();
477
if (identityParameters.TryGetValue(XMakeAttributes.
runtime
, out runtime))
528
taskIdentityParameters.TryGetValue(XMakeAttributes.
runtime
, out taskRuntime);
530
factoryIdentityParameters.TryGetValue(XMakeAttributes.
runtime
, out usingTaskRuntime);
569
mergedParameters.TryGetValue(XMakeAttributes.
runtime
, out mergedRuntime);
572
mergedParameters[XMakeAttributes.
runtime
] = XMakeAttributes.GetExplicitMSBuildRuntime(mergedRuntime);
579
taskIdentityParameters.TryGetValue(XMakeAttributes.
runtime
, out string taskRuntime);
580
factoryIdentityParameters.TryGetValue(XMakeAttributes.
runtime
, out string usingTaskRuntime);
588
mergedParameters.Add(XMakeAttributes.
runtime
, mergedRuntime);
620
if (mergedParameters.TryGetValue(XMakeAttributes.
runtime
, out runtime))
Instance\TaskFactories\TaskHostTask.cs (1)
254
string runtime = _taskHostParameters[XMakeAttributes.
runtime
];
Instance\TaskRegistry.cs (5)
440
taskFactoryParameters.Add(XMakeAttributes.
runtime
, runtime == String.Empty ? XMakeAttributes.MSBuildRuntimeValues.any : runtime);
946
obj.TaskIdentityParameters.TryGetValue(XMakeAttributes.
runtime
, out runtime);
1023
x.TryGetValue(XMakeAttributes.
runtime
, out runtimeX);
1029
y.TryGetValue(XMakeAttributes.
runtime
, out runtimeY);
1485
XMakeAttributes.
runtime
,
Microsoft.Build.Engine.UnitTests (22)
BackEnd\AssemblyTaskFactory_Tests.cs (16)
176
factoryIdentityParameters.Add(XMakeAttributes.
runtime
, XMakeAttributes.MSBuildRuntimeValues.currentRuntime);
182
taskIdentityParameters.Add(XMakeAttributes.
runtime
, XMakeAttributes.GetCurrentMSBuildRuntime());
196
factoryIdentityParameters.Add(XMakeAttributes.
runtime
, XMakeAttributes.MSBuildRuntimeValues.clr2);
202
taskIdentityParameters.Add(XMakeAttributes.
runtime
, XMakeAttributes.MSBuildRuntimeValues.clr4);
276
taskParameters.Add(XMakeAttributes.
runtime
, XMakeAttributes.MSBuildRuntimeValues.any);
307
taskParameters.Add(XMakeAttributes.
runtime
, XMakeAttributes.GetCurrentMSBuildRuntime());
338
taskParameters.Add(XMakeAttributes.
runtime
, XMakeAttributes.MSBuildRuntimeValues.any);
371
taskParameters.Add(XMakeAttributes.
runtime
, XMakeAttributes.MSBuildRuntimeValues.any);
404
factoryParameters.Add(XMakeAttributes.
runtime
, XMakeAttributes.GetCurrentMSBuildRuntime());
439
taskParameters.Add(XMakeAttributes.
runtime
, XMakeAttributes.MSBuildRuntimeValues.clr2);
472
taskParameters.Add(XMakeAttributes.
runtime
, XMakeAttributes.MSBuildRuntimeValues.clr2);
503
factoryParameters.Add(XMakeAttributes.
runtime
, XMakeAttributes.MSBuildRuntimeValues.clr2);
567
taskParameters.Add(XMakeAttributes.
runtime
, XMakeAttributes.MSBuildRuntimeValues.any);
602
taskParameters.Add(XMakeAttributes.
runtime
, XMakeAttributes.MSBuildRuntimeValues.any);
631
factoryParameters.Add(XMakeAttributes.
runtime
, XMakeAttributes.MSBuildRuntimeValues.any);
659
taskParameters.Add(XMakeAttributes.
runtime
, XMakeAttributes.MSBuildRuntimeValues.clr2);
BackEnd\TaskRegistry_Tests.cs (6)
581
taskParameters.Add(XMakeAttributes.
runtime
, XMakeAttributes.MSBuildRuntimeValues.clr4);
1058
taskParameters.Add(XMakeAttributes.
runtime
, XMakeAttributes.MSBuildRuntimeValues.clr4);
1082
taskParameters.Add(XMakeAttributes.
runtime
, XMakeAttributes.MSBuildRuntimeValues.clr4);
2019
Assert.Equal(expectedRuntime, record.TaskFactoryParameters[XMakeAttributes.
runtime
]);
2058
{XMakeAttributes.
runtime
, runtime ?? XMakeAttributes.MSBuildRuntimeValues.any},
2081
taskParameters.TryGetValue(XMakeAttributes.
runtime
, out expectedRuntime);