51 references to runtime
Microsoft.Build (29)
BackEnd\Components\RequestBuilder\TaskBuilder.cs (1)
548
taskIdentityParameters.Add(XMakeAttributes.
runtime
, msbuildRuntime);
BackEnd\TaskExecutionHost\TaskExecutionHost.cs (3)
923
returnClass.FactoryIdentityParameters.TryGetValue(XMakeAttributes.
runtime
, out usingTaskRuntime);
927
taskIdentityParameters.TryGetValue(XMakeAttributes.
runtime
, out string taskRuntime);
1783
[XMakeAttributes.
runtime
] = XMakeAttributes.GetCurrentMSBuildRuntime(),
CommunicationsUtilities.cs (1)
869
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)
507
{ 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 (12)
391
if (!mergedParameters.ContainsKey(XMakeAttributes.
runtime
))
393
mergedParameters[XMakeAttributes.
runtime
] = XMakeAttributes.GetCurrentMSBuildRuntime();
401
if (mergedParameters[XMakeAttributes.
runtime
].Equals(XMakeAttributes.MSBuildRuntimeValues.net))
528
if (identityParameters.TryGetValue(XMakeAttributes.
runtime
, out runtime))
579
taskIdentityParameters.TryGetValue(XMakeAttributes.
runtime
, out taskRuntime);
581
factoryIdentityParameters.TryGetValue(XMakeAttributes.
runtime
, out usingTaskRuntime);
622
mergedParameters.TryGetValue(XMakeAttributes.
runtime
, out mergedRuntime);
625
mergedParameters[XMakeAttributes.
runtime
] = XMakeAttributes.GetExplicitMSBuildRuntime(mergedRuntime);
632
taskIdentityParameters.TryGetValue(XMakeAttributes.
runtime
, out string taskRuntime);
633
factoryIdentityParameters.TryGetValue(XMakeAttributes.
runtime
, out string usingTaskRuntime);
641
mergedParameters.Add(XMakeAttributes.
runtime
, mergedRuntime);
687
if (mergedParameters.TryGetValue(XMakeAttributes.
runtime
, out runtime))
Instance\TaskFactories\TaskHostTask.cs (1)
284
string runtime = _taskHostParameters[XMakeAttributes.
runtime
];
Instance\TaskRegistry.cs (6)
432
taskFactoryParameters.Add(XMakeAttributes.
runtime
, runtime == String.Empty ? XMakeAttributes.MSBuildRuntimeValues.any : runtime);
952
obj.TaskIdentityParameters.TryGetValue(XMakeAttributes.
runtime
, out runtime);
1029
x.TryGetValue(XMakeAttributes.
runtime
, out runtimeX);
1035
y.TryGetValue(XMakeAttributes.
runtime
, out runtimeY);
1605
bool containsArchOrRuntimeParam = TaskFactoryParameters?.TryGetValue(XMakeAttributes.
runtime
, out _) == true
1615
XMakeAttributes.
runtime
,
Microsoft.Build.Engine.UnitTests (22)
BackEnd\AssemblyTaskFactory_Tests.cs (16)
177
factoryIdentityParameters.Add(XMakeAttributes.
runtime
, XMakeAttributes.MSBuildRuntimeValues.currentRuntime);
183
taskIdentityParameters.Add(XMakeAttributes.
runtime
, XMakeAttributes.GetCurrentMSBuildRuntime());
197
factoryIdentityParameters.Add(XMakeAttributes.
runtime
, XMakeAttributes.MSBuildRuntimeValues.clr2);
203
taskIdentityParameters.Add(XMakeAttributes.
runtime
, XMakeAttributes.MSBuildRuntimeValues.clr4);
279
taskParameters.Add(XMakeAttributes.
runtime
, XMakeAttributes.MSBuildRuntimeValues.any);
312
taskParameters.Add(XMakeAttributes.
runtime
, XMakeAttributes.GetCurrentMSBuildRuntime());
345
taskParameters.Add(XMakeAttributes.
runtime
, XMakeAttributes.MSBuildRuntimeValues.any);
380
taskParameters.Add(XMakeAttributes.
runtime
, XMakeAttributes.MSBuildRuntimeValues.any);
415
factoryParameters.Add(XMakeAttributes.
runtime
, XMakeAttributes.GetCurrentMSBuildRuntime());
452
taskParameters.Add(XMakeAttributes.
runtime
, XMakeAttributes.MSBuildRuntimeValues.clr2);
487
taskParameters.Add(XMakeAttributes.
runtime
, XMakeAttributes.MSBuildRuntimeValues.clr2);
520
factoryParameters.Add(XMakeAttributes.
runtime
, XMakeAttributes.MSBuildRuntimeValues.clr2);
588
taskParameters.Add(XMakeAttributes.
runtime
, XMakeAttributes.MSBuildRuntimeValues.any);
625
taskParameters.Add(XMakeAttributes.
runtime
, XMakeAttributes.MSBuildRuntimeValues.any);
656
factoryParameters.Add(XMakeAttributes.
runtime
, XMakeAttributes.MSBuildRuntimeValues.any);
686
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);