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