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