141 references to MSBuildRuntimeValues
Microsoft.Build (42)
BackEnd\Components\RequestBuilder\TaskBuilder.cs (1)
567msbuildRuntime = msbuildRuntime == string.Empty ? XMakeAttributes.MSBuildRuntimeValues.any : msbuildRuntime.Trim();
BackEnd\TaskExecutionHost\TaskExecutionHost.cs (2)
954returnClass.FactoryIdentityParameters.Runtime ?? XMakeAttributes.MSBuildRuntimeValues.any, 956taskIdentityParameters.Runtime ?? XMakeAttributes.MSBuildRuntimeValues.any,
CommunicationsUtilities.cs (3)
968if (taskHostParameters.Runtime.Equals(XMakeAttributes.MSBuildRuntimeValues.clr2, StringComparison.OrdinalIgnoreCase)) 972else if (taskHostParameters.Runtime.Equals(XMakeAttributes.MSBuildRuntimeValues.clr4, StringComparison.OrdinalIgnoreCase)) 976else if (taskHostParameters.Runtime.Equals(XMakeAttributes.MSBuildRuntimeValues.net, StringComparison.OrdinalIgnoreCase))
Evaluation\IntrinsicFunctions.cs (4)
494ErrorUtilities.ThrowArgument("InvalidTaskHostFactoryParameter", runtime, "Runtime", XMakeAttributes.MSBuildRuntimeValues.clr2, XMakeAttributes.MSBuildRuntimeValues.clr4, XMakeAttributes.MSBuildRuntimeValues.currentRuntime, XMakeAttributes.MSBuildRuntimeValues.any);
Instance\TaskFactories\AssemblyTaskFactory.cs (6)
538XMakeAttributes.MSBuildRuntimeValues.clr2, 539XMakeAttributes.MSBuildRuntimeValues.clr4, 540XMakeAttributes.MSBuildRuntimeValues.currentRuntime, 541XMakeAttributes.MSBuildRuntimeValues.any); 648!currentParams.Runtime.Equals(XMakeAttributes.MSBuildRuntimeValues.net, StringComparison.OrdinalIgnoreCase)) 694string currentRuntime = XMakeAttributes.GetExplicitMSBuildRuntime(XMakeAttributes.MSBuildRuntimeValues.currentRuntime);
Instance\TaskRegistry.cs (1)
429runtime == string.Empty ? XMakeAttributes.MSBuildRuntimeValues.any : runtime,
TypeLoader.cs (3)
628_runtime = targetFramework.StartsWith(DotNetCoreIdentifier) ? MSBuildRuntimeValues.net : MSBuildRuntimeValues.clr4; 641_runtime = MSBuildRuntimeValues.net;
XMakeAttributes.cs (22)
108private static readonly HashSet<string> ValidMSBuildRuntimeValues = new HashSet<string>(StringComparer.OrdinalIgnoreCase) { MSBuildRuntimeValues.clr2, MSBuildRuntimeValues.clr4, MSBuildRuntimeValues.currentRuntime, MSBuildRuntimeValues.net, MSBuildRuntimeValues.any }; 176if (runtimeA.Equals(MSBuildRuntimeValues.any, StringComparison.OrdinalIgnoreCase) || runtimeB.Equals(MSBuildRuntimeValues.any, StringComparison.OrdinalIgnoreCase)) 182if ((runtimeA.Equals(MSBuildRuntimeValues.currentRuntime, StringComparison.OrdinalIgnoreCase) && runtimeB.Equals(GetCurrentMSBuildRuntime(), StringComparison.OrdinalIgnoreCase)) || 183(runtimeA.Equals(GetCurrentMSBuildRuntime(), StringComparison.OrdinalIgnoreCase) && runtimeB.Equals(MSBuildRuntimeValues.currentRuntime, StringComparison.OrdinalIgnoreCase))) 211runtimeA = MSBuildRuntimeValues.any; 216runtimeB = MSBuildRuntimeValues.any; 224if (runtimeA.Equals(MSBuildRuntimeValues.currentRuntime, StringComparison.OrdinalIgnoreCase) || 225runtimeA.Equals(MSBuildRuntimeValues.any, StringComparison.OrdinalIgnoreCase)) 242runtimeA.Equals(MSBuildRuntimeValues.currentRuntime, StringComparison.OrdinalIgnoreCase) || 243runtimeA.Equals(MSBuildRuntimeValues.any, StringComparison.OrdinalIgnoreCase)) && 246runtimeB.Equals(MSBuildRuntimeValues.currentRuntime, StringComparison.OrdinalIgnoreCase) || 247runtimeB.Equals(MSBuildRuntimeValues.any, StringComparison.OrdinalIgnoreCase))) 256if (runtimeA.Equals(MSBuildRuntimeValues.any, StringComparison.OrdinalIgnoreCase)) 263if (runtimeB.Equals(MSBuildRuntimeValues.any, StringComparison.OrdinalIgnoreCase)) 320MSBuildRuntimeValues.any.Equals(runtime, StringComparison.OrdinalIgnoreCase) || 321MSBuildRuntimeValues.currentRuntime.Equals(runtime, StringComparison.OrdinalIgnoreCase)) 450return MSBuildRuntimeValues.clr4;
Microsoft.Build.Engine.UnitTests (99)
BackEnd\AssemblyTaskFactory_Tests.cs (13)
183TaskHostParameters factoryIdentityParameters = new (XMakeAttributes.MSBuildRuntimeValues.currentRuntime, XMakeAttributes.MSBuildArchitectureValues.currentArchitecture); 198TaskHostParameters factoryIdentityParameters = new (XMakeAttributes.MSBuildRuntimeValues.clr2, XMakeAttributes.MSBuildArchitectureValues.currentArchitecture); 202TaskHostParameters taskIdentityParameters = new(XMakeAttributes.MSBuildRuntimeValues.clr4, XMakeAttributes.MSBuildArchitectureValues.currentArchitecture); 283TaskHostParameters taskParameters = new (XMakeAttributes.MSBuildRuntimeValues.any, XMakeAttributes.MSBuildArchitectureValues.any); 359TaskHostParameters taskParameters = new (XMakeAttributes.MSBuildRuntimeValues.any, XMakeAttributes.MSBuildArchitectureValues.any); 399TaskHostParameters taskParameters = new (XMakeAttributes.MSBuildRuntimeValues.any, XMakeAttributes.GetCurrentMSBuildArchitecture()); 481TaskHostParameters taskParameters = new (XMakeAttributes.MSBuildRuntimeValues.clr2, XMakeAttributes.MSBuildArchitectureValues.any); 521TaskHostParameters taskParameters = new(XMakeAttributes.MSBuildRuntimeValues.clr2, XMakeAttributes.MSBuildArchitectureValues.any); 559TaskHostParameters factoryParameters = new (XMakeAttributes.MSBuildRuntimeValues.clr2); 639TaskHostParameters taskParameters = new (XMakeAttributes.MSBuildRuntimeValues.any, XMakeAttributes.MSBuildArchitectureValues.any); 681TaskHostParameters taskParameters = new (XMakeAttributes.MSBuildRuntimeValues.any, XMakeAttributes.MSBuildArchitectureValues.any); 717TaskHostParameters factoryParameters = new TaskHostParameters(XMakeAttributes.MSBuildRuntimeValues.any, XMakeAttributes.MSBuildArchitectureValues.any); 752TaskHostParameters taskParameters = new(XMakeAttributes.MSBuildRuntimeValues.clr2, XMakeAttributes.MSBuildArchitectureValues.currentArchitecture);
BackEnd\TaskRegistry_Tests.cs (43)
524runtime: XMakeAttributes.MSBuildRuntimeValues.clr4, 533runtime: XMakeAttributes.MSBuildRuntimeValues.clr4, 542runtime: XMakeAttributes.MSBuildRuntimeValues.clr2, 551runtime: XMakeAttributes.MSBuildRuntimeValues.clr4, 587expectedRuntime: XMakeAttributes.MSBuildRuntimeValues.any, 598expectedRuntime: XMakeAttributes.MSBuildRuntimeValues.any, 670expectedRuntime: XMakeAttributes.MSBuildRuntimeValues.clr4, 677runtime: XMakeAttributes.MSBuildRuntimeValues.clr4, 681expectedRuntime: XMakeAttributes.MSBuildRuntimeValues.clr4, 688runtime: XMakeAttributes.MSBuildRuntimeValues.clr4, 692expectedRuntime: XMakeAttributes.MSBuildRuntimeValues.clr4, 699runtime: XMakeAttributes.MSBuildRuntimeValues.clr4, 708runtime: XMakeAttributes.MSBuildRuntimeValues.any, 712expectedRuntime: XMakeAttributes.MSBuildRuntimeValues.clr4, 743expectedRuntime: XMakeAttributes.MSBuildRuntimeValues.clr4, 750runtime: XMakeAttributes.MSBuildRuntimeValues.clr2, 759runtime: XMakeAttributes.MSBuildRuntimeValues.clr4, 763expectedRuntime: XMakeAttributes.MSBuildRuntimeValues.clr4, 800expectedRuntime: XMakeAttributes.MSBuildRuntimeValues.clr4, 807runtime: XMakeAttributes.MSBuildRuntimeValues.clr4, 811expectedRuntime: XMakeAttributes.MSBuildRuntimeValues.clr4, 818runtime: XMakeAttributes.MSBuildRuntimeValues.clr4, 822expectedRuntime: XMakeAttributes.MSBuildRuntimeValues.clr4, 829runtime: XMakeAttributes.MSBuildRuntimeValues.clr4, 833expectedRuntime: XMakeAttributes.MSBuildRuntimeValues.any, 840runtime: XMakeAttributes.MSBuildRuntimeValues.any, 844expectedRuntime: XMakeAttributes.MSBuildRuntimeValues.clr4, 851runtime: XMakeAttributes.MSBuildRuntimeValues.clr2, 855expectedRuntime: XMakeAttributes.MSBuildRuntimeValues.any, 862runtime: XMakeAttributes.MSBuildRuntimeValues.clr2, 871runtime: XMakeAttributes.MSBuildRuntimeValues.clr2, 875expectedRuntime: XMakeAttributes.MSBuildRuntimeValues.any, 910runtime: XMakeAttributes.MSBuildRuntimeValues.clr4, 914expectedRuntime: XMakeAttributes.MSBuildRuntimeValues.any, 922runtime: XMakeAttributes.MSBuildRuntimeValues.clr4, 926expectedRuntime: XMakeAttributes.MSBuildRuntimeValues.any, 953runtime: XMakeAttributes.MSBuildRuntimeValues.clr4, 957expectedRuntime: XMakeAttributes.MSBuildRuntimeValues.clr4, 964runtime: XMakeAttributes.MSBuildRuntimeValues.clr4, 973runtime: XMakeAttributes.MSBuildRuntimeValues.clr4, 977expectedRuntime: XMakeAttributes.MSBuildRuntimeValues.clr4, 984runtime: XMakeAttributes.MSBuildRuntimeValues.clr4, 1947parameters = new(runtime ?? XMakeAttributes.MSBuildRuntimeValues.any, architecture ?? XMakeAttributes.MSBuildArchitectureValues.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,