143 references to MSBuildRuntimeValues
Microsoft.Build (38)
BackEnd\Components\RequestBuilder\TaskBuilder.cs (1)
536msbuildRuntime = msbuildRuntime == String.Empty ? XMakeAttributes.MSBuildRuntimeValues.any : msbuildRuntime.Trim();
BackEnd\TaskExecutionHost\TaskExecutionHost.cs (2)
904usingTaskRuntime ?? XMakeAttributes.MSBuildRuntimeValues.any, 906taskRuntime ?? XMakeAttributes.MSBuildRuntimeValues.any,
CommunicationsUtilities.cs (3)
627if (runtimeVersion.Equals(XMakeAttributes.MSBuildRuntimeValues.clr2, StringComparison.OrdinalIgnoreCase)) 631else if (runtimeVersion.Equals(XMakeAttributes.MSBuildRuntimeValues.clr4, StringComparison.OrdinalIgnoreCase)) 635else if (runtimeVersion.Equals(XMakeAttributes.MSBuildRuntimeValues.net, StringComparison.OrdinalIgnoreCase))
Evaluation\IntrinsicFunctions.cs (4)
477ErrorUtilities.ThrowArgument("InvalidTaskHostFactoryParameter", runtime, "Runtime", XMakeAttributes.MSBuildRuntimeValues.clr2, XMakeAttributes.MSBuildRuntimeValues.clr4, XMakeAttributes.MSBuildRuntimeValues.currentRuntime, XMakeAttributes.MSBuildRuntimeValues.any);
Instance\TaskFactories\AssemblyTaskFactory.cs (5)
487XMakeAttributes.MSBuildRuntimeValues.clr2, 488XMakeAttributes.MSBuildRuntimeValues.clr4, 489XMakeAttributes.MSBuildRuntimeValues.currentRuntime, 490XMakeAttributes.MSBuildRuntimeValues.any); 622string currentRuntime = XMakeAttributes.GetExplicitMSBuildRuntime(XMakeAttributes.MSBuildRuntimeValues.currentRuntime);
Instance\TaskRegistry.cs (1)
440taskFactoryParameters.Add(XMakeAttributes.runtime, runtime == String.Empty ? XMakeAttributes.MSBuildRuntimeValues.any : runtime);
XMakeAttributes.cs (22)
110private static readonly HashSet<string> ValidMSBuildRuntimeValues = new HashSet<string>(StringComparer.OrdinalIgnoreCase) { MSBuildRuntimeValues.clr2, MSBuildRuntimeValues.clr4, MSBuildRuntimeValues.currentRuntime, MSBuildRuntimeValues.net, MSBuildRuntimeValues.any }; 184if (runtimeA.Equals(MSBuildRuntimeValues.any, StringComparison.OrdinalIgnoreCase) || runtimeB.Equals(MSBuildRuntimeValues.any, StringComparison.OrdinalIgnoreCase)) 190if ((runtimeA.Equals(MSBuildRuntimeValues.currentRuntime, StringComparison.OrdinalIgnoreCase) && runtimeB.Equals(GetCurrentMSBuildRuntime(), StringComparison.OrdinalIgnoreCase)) || 191(runtimeA.Equals(GetCurrentMSBuildRuntime(), StringComparison.OrdinalIgnoreCase) && runtimeB.Equals(MSBuildRuntimeValues.currentRuntime, StringComparison.OrdinalIgnoreCase))) 219runtimeA = MSBuildRuntimeValues.any; 224runtimeB = MSBuildRuntimeValues.any; 232if (runtimeA.Equals(MSBuildRuntimeValues.currentRuntime, StringComparison.OrdinalIgnoreCase) || 233runtimeA.Equals(MSBuildRuntimeValues.any, StringComparison.OrdinalIgnoreCase)) 250runtimeA.Equals(MSBuildRuntimeValues.currentRuntime, StringComparison.OrdinalIgnoreCase) || 251runtimeA.Equals(MSBuildRuntimeValues.any, StringComparison.OrdinalIgnoreCase)) && 254runtimeB.Equals(MSBuildRuntimeValues.currentRuntime, StringComparison.OrdinalIgnoreCase) || 255runtimeB.Equals(MSBuildRuntimeValues.any, StringComparison.OrdinalIgnoreCase))) 264if (runtimeA.Equals(MSBuildRuntimeValues.any, StringComparison.OrdinalIgnoreCase)) 271if (runtimeB.Equals(MSBuildRuntimeValues.any, StringComparison.OrdinalIgnoreCase)) 328MSBuildRuntimeValues.any.Equals(runtime, StringComparison.OrdinalIgnoreCase) || 329MSBuildRuntimeValues.currentRuntime.Equals(runtime, StringComparison.OrdinalIgnoreCase)) 463return MSBuildRuntimeValues.net;
Microsoft.Build.Engine.UnitTests (105)
BackEnd\AssemblyTaskFactory_Tests.cs (13)
176factoryIdentityParameters.Add(XMakeAttributes.runtime, XMakeAttributes.MSBuildRuntimeValues.currentRuntime); 196factoryIdentityParameters.Add(XMakeAttributes.runtime, XMakeAttributes.MSBuildRuntimeValues.clr2); 202taskIdentityParameters.Add(XMakeAttributes.runtime, XMakeAttributes.MSBuildRuntimeValues.clr4); 276taskParameters.Add(XMakeAttributes.runtime, XMakeAttributes.MSBuildRuntimeValues.any); 338taskParameters.Add(XMakeAttributes.runtime, XMakeAttributes.MSBuildRuntimeValues.any); 371taskParameters.Add(XMakeAttributes.runtime, XMakeAttributes.MSBuildRuntimeValues.any); 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 (49)
524runtime: XMakeAttributes.MSBuildRuntimeValues.clr4, 533runtime: XMakeAttributes.MSBuildRuntimeValues.clr4, 542runtime: XMakeAttributes.MSBuildRuntimeValues.clr2, 551runtime: XMakeAttributes.MSBuildRuntimeValues.clr4, 581taskParameters.Add(XMakeAttributes.runtime, XMakeAttributes.MSBuildRuntimeValues.clr4); 632expectedRuntime: XMakeAttributes.MSBuildRuntimeValues.any, 643expectedRuntime: XMakeAttributes.MSBuildRuntimeValues.any, 715expectedRuntime: XMakeAttributes.MSBuildRuntimeValues.clr4, 722runtime: XMakeAttributes.MSBuildRuntimeValues.clr4, 726expectedRuntime: XMakeAttributes.MSBuildRuntimeValues.clr4, 733runtime: XMakeAttributes.MSBuildRuntimeValues.clr4, 737expectedRuntime: XMakeAttributes.MSBuildRuntimeValues.clr4, 744runtime: XMakeAttributes.MSBuildRuntimeValues.clr4, 753runtime: XMakeAttributes.MSBuildRuntimeValues.any, 757expectedRuntime: XMakeAttributes.MSBuildRuntimeValues.clr4, 788expectedRuntime: XMakeAttributes.MSBuildRuntimeValues.clr4, 795runtime: XMakeAttributes.MSBuildRuntimeValues.clr2, 804runtime: XMakeAttributes.MSBuildRuntimeValues.clr4, 808expectedRuntime: XMakeAttributes.MSBuildRuntimeValues.clr4, 845expectedRuntime: XMakeAttributes.MSBuildRuntimeValues.clr4, 852runtime: XMakeAttributes.MSBuildRuntimeValues.clr4, 856expectedRuntime: XMakeAttributes.MSBuildRuntimeValues.clr4, 863runtime: XMakeAttributes.MSBuildRuntimeValues.clr4, 867expectedRuntime: XMakeAttributes.MSBuildRuntimeValues.clr4, 874runtime: XMakeAttributes.MSBuildRuntimeValues.clr4, 878expectedRuntime: XMakeAttributes.MSBuildRuntimeValues.any, 885runtime: XMakeAttributes.MSBuildRuntimeValues.any, 889expectedRuntime: XMakeAttributes.MSBuildRuntimeValues.clr4, 896runtime: XMakeAttributes.MSBuildRuntimeValues.clr2, 900expectedRuntime: XMakeAttributes.MSBuildRuntimeValues.any, 907runtime: XMakeAttributes.MSBuildRuntimeValues.clr2, 916runtime: XMakeAttributes.MSBuildRuntimeValues.clr2, 920expectedRuntime: XMakeAttributes.MSBuildRuntimeValues.any, 955runtime: XMakeAttributes.MSBuildRuntimeValues.clr4, 959expectedRuntime: XMakeAttributes.MSBuildRuntimeValues.any, 967runtime: XMakeAttributes.MSBuildRuntimeValues.clr4, 971expectedRuntime: XMakeAttributes.MSBuildRuntimeValues.any, 998runtime: XMakeAttributes.MSBuildRuntimeValues.clr4, 1002expectedRuntime: XMakeAttributes.MSBuildRuntimeValues.clr4, 1009runtime: XMakeAttributes.MSBuildRuntimeValues.clr4, 1018runtime: XMakeAttributes.MSBuildRuntimeValues.clr4, 1022expectedRuntime: XMakeAttributes.MSBuildRuntimeValues.clr4, 1029runtime: XMakeAttributes.MSBuildRuntimeValues.clr4, 1058taskParameters.Add(XMakeAttributes.runtime, XMakeAttributes.MSBuildRuntimeValues.clr4); 1068expectedRuntime: XMakeAttributes.MSBuildRuntimeValues.clr4, 1078expectedRuntime: XMakeAttributes.MSBuildRuntimeValues.clr4, 1082taskParameters.Add(XMakeAttributes.runtime, XMakeAttributes.MSBuildRuntimeValues.clr4); 1095expectedRuntime: XMakeAttributes.MSBuildRuntimeValues.clr4, 2058{XMakeAttributes.runtime, runtime ?? XMakeAttributes.MSBuildRuntimeValues.any},
XmakeAttributes_Tests.cs (43)
54Assert.True(XMakeAttributes.RuntimeValuesMatch(XMakeAttributes.MSBuildRuntimeValues.any, XMakeAttributes.MSBuildRuntimeValues.currentRuntime)); 55Assert.True(XMakeAttributes.RuntimeValuesMatch(XMakeAttributes.MSBuildRuntimeValues.any, XMakeAttributes.MSBuildRuntimeValues.net)); 56Assert.True(XMakeAttributes.RuntimeValuesMatch(XMakeAttributes.MSBuildRuntimeValues.any, XMakeAttributes.MSBuildRuntimeValues.clr4)); 57Assert.True(XMakeAttributes.RuntimeValuesMatch(XMakeAttributes.MSBuildRuntimeValues.clr2, XMakeAttributes.MSBuildRuntimeValues.any)); 59Assert.True(XMakeAttributes.RuntimeValuesMatch(XMakeAttributes.MSBuildRuntimeValues.currentRuntime, XMakeAttributes.MSBuildRuntimeValues.net)); 65Assert.False(XMakeAttributes.RuntimeValuesMatch(XMakeAttributes.MSBuildRuntimeValues.currentRuntime, XMakeAttributes.MSBuildRuntimeValues.clr2)); 67Assert.False(XMakeAttributes.RuntimeValuesMatch(XMakeAttributes.MSBuildRuntimeValues.clr4, XMakeAttributes.MSBuildRuntimeValues.clr2)); 68Assert.False(XMakeAttributes.RuntimeValuesMatch(XMakeAttributes.MSBuildRuntimeValues.clr4, XMakeAttributes.MSBuildRuntimeValues.net)); 69Assert.False(XMakeAttributes.RuntimeValuesMatch(XMakeAttributes.MSBuildRuntimeValues.clr2, XMakeAttributes.MSBuildRuntimeValues.net)); 73[InlineData(XMakeAttributes.MSBuildRuntimeValues.any, XMakeAttributes.MSBuildRuntimeValues.clr4, true, XMakeAttributes.MSBuildRuntimeValues.clr4)] 74[InlineData(XMakeAttributes.MSBuildRuntimeValues.clr4, XMakeAttributes.MSBuildRuntimeValues.any, true, XMakeAttributes.MSBuildRuntimeValues.clr4)] 75[InlineData(XMakeAttributes.MSBuildRuntimeValues.clr2, XMakeAttributes.MSBuildRuntimeValues.any, true, XMakeAttributes.MSBuildRuntimeValues.clr2)] 76[InlineData(XMakeAttributes.MSBuildRuntimeValues.currentRuntime, XMakeAttributes.MSBuildRuntimeValues.clr2, false, null)] 77[InlineData(XMakeAttributes.MSBuildRuntimeValues.clr4, XMakeAttributes.MSBuildRuntimeValues.clr2, false, null)] 89XMakeAttributes.TryMergeRuntimeValues(XMakeAttributes.MSBuildRuntimeValues.any, 90XMakeAttributes.MSBuildRuntimeValues.currentRuntime, 101XMakeAttributes.MSBuildRuntimeValues.currentRuntime, 102XMakeAttributes.MSBuildRuntimeValues.clr4, 104mergedRuntime.ShouldBe(XMakeAttributes.MSBuildRuntimeValues.clr4); 107XMakeAttributes.MSBuildRuntimeValues.currentRuntime, 108XMakeAttributes.MSBuildRuntimeValues.net, 117XMakeAttributes.MSBuildRuntimeValues.currentRuntime, 118XMakeAttributes.MSBuildRuntimeValues.net, 120mergedRuntime.ShouldBe(XMakeAttributes.MSBuildRuntimeValues.net); 123XMakeAttributes.MSBuildRuntimeValues.currentRuntime, 124XMakeAttributes.MSBuildRuntimeValues.clr4,