145 references to MSBuildRuntimeValues
Microsoft.Build (17)
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,
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)
527XMakeAttributes.MSBuildRuntimeValues.clr2, 528XMakeAttributes.MSBuildRuntimeValues.clr4, 529XMakeAttributes.MSBuildRuntimeValues.currentRuntime, 530XMakeAttributes.MSBuildRuntimeValues.any); 637!currentParams.Runtime.Equals(XMakeAttributes.MSBuildRuntimeValues.net, StringComparison.OrdinalIgnoreCase)) 683string 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;
Microsoft.Build.Engine.UnitTests (100)
BackEnd\AppHostSupport_Tests.cs (1)
188runtime: XMakeAttributes.MSBuildRuntimeValues.net,
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)
523runtime: XMakeAttributes.MSBuildRuntimeValues.clr4, 532runtime: XMakeAttributes.MSBuildRuntimeValues.clr4, 541runtime: XMakeAttributes.MSBuildRuntimeValues.clr2, 550runtime: XMakeAttributes.MSBuildRuntimeValues.clr4, 586expectedRuntime: XMakeAttributes.MSBuildRuntimeValues.any, 597expectedRuntime: XMakeAttributes.MSBuildRuntimeValues.any, 669expectedRuntime: XMakeAttributes.MSBuildRuntimeValues.clr4, 676runtime: XMakeAttributes.MSBuildRuntimeValues.clr4, 680expectedRuntime: XMakeAttributes.MSBuildRuntimeValues.clr4, 687runtime: XMakeAttributes.MSBuildRuntimeValues.clr4, 691expectedRuntime: XMakeAttributes.MSBuildRuntimeValues.clr4, 698runtime: XMakeAttributes.MSBuildRuntimeValues.clr4, 707runtime: XMakeAttributes.MSBuildRuntimeValues.any, 711expectedRuntime: XMakeAttributes.MSBuildRuntimeValues.clr4, 742expectedRuntime: XMakeAttributes.MSBuildRuntimeValues.clr4, 749runtime: XMakeAttributes.MSBuildRuntimeValues.clr2, 758runtime: XMakeAttributes.MSBuildRuntimeValues.clr4, 762expectedRuntime: XMakeAttributes.MSBuildRuntimeValues.clr4, 799expectedRuntime: XMakeAttributes.MSBuildRuntimeValues.clr4, 806runtime: XMakeAttributes.MSBuildRuntimeValues.clr4, 810expectedRuntime: XMakeAttributes.MSBuildRuntimeValues.clr4, 817runtime: XMakeAttributes.MSBuildRuntimeValues.clr4, 821expectedRuntime: XMakeAttributes.MSBuildRuntimeValues.clr4, 828runtime: XMakeAttributes.MSBuildRuntimeValues.clr4, 832expectedRuntime: XMakeAttributes.MSBuildRuntimeValues.any, 839runtime: XMakeAttributes.MSBuildRuntimeValues.any, 843expectedRuntime: XMakeAttributes.MSBuildRuntimeValues.clr4, 850runtime: XMakeAttributes.MSBuildRuntimeValues.clr2, 854expectedRuntime: XMakeAttributes.MSBuildRuntimeValues.any, 861runtime: XMakeAttributes.MSBuildRuntimeValues.clr2, 870runtime: XMakeAttributes.MSBuildRuntimeValues.clr2, 874expectedRuntime: XMakeAttributes.MSBuildRuntimeValues.any, 909runtime: XMakeAttributes.MSBuildRuntimeValues.clr4, 913expectedRuntime: XMakeAttributes.MSBuildRuntimeValues.any, 921runtime: XMakeAttributes.MSBuildRuntimeValues.clr4, 925expectedRuntime: XMakeAttributes.MSBuildRuntimeValues.any, 952runtime: XMakeAttributes.MSBuildRuntimeValues.clr4, 956expectedRuntime: XMakeAttributes.MSBuildRuntimeValues.clr4, 963runtime: XMakeAttributes.MSBuildRuntimeValues.clr4, 972runtime: XMakeAttributes.MSBuildRuntimeValues.clr4, 976expectedRuntime: XMakeAttributes.MSBuildRuntimeValues.clr4, 983runtime: XMakeAttributes.MSBuildRuntimeValues.clr4, 1946parameters = 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,
Microsoft.Build.Framework (25)
BackEnd\CommunicationsUtilities.cs (3)
574if (taskHostParameters.Runtime.Equals(XMakeAttributes.MSBuildRuntimeValues.clr2, StringComparison.OrdinalIgnoreCase)) 578else if (taskHostParameters.Runtime.Equals(XMakeAttributes.MSBuildRuntimeValues.clr4, StringComparison.OrdinalIgnoreCase)) 582else if (taskHostParameters.Runtime.Equals(XMakeAttributes.MSBuildRuntimeValues.net, StringComparison.OrdinalIgnoreCase))
XMakeAttributes.cs (22)
109private static readonly HashSet<string> ValidMSBuildRuntimeValues = new HashSet<string>(StringComparer.OrdinalIgnoreCase) { MSBuildRuntimeValues.clr2, MSBuildRuntimeValues.clr4, MSBuildRuntimeValues.currentRuntime, MSBuildRuntimeValues.net, MSBuildRuntimeValues.any }; 177if (runtimeA.Equals(MSBuildRuntimeValues.any, StringComparison.OrdinalIgnoreCase) || runtimeB.Equals(MSBuildRuntimeValues.any, StringComparison.OrdinalIgnoreCase)) 183if ((runtimeA.Equals(MSBuildRuntimeValues.currentRuntime, StringComparison.OrdinalIgnoreCase) && runtimeB.Equals(GetCurrentMSBuildRuntime(), StringComparison.OrdinalIgnoreCase)) || 184(runtimeA.Equals(GetCurrentMSBuildRuntime(), StringComparison.OrdinalIgnoreCase) && runtimeB.Equals(MSBuildRuntimeValues.currentRuntime, StringComparison.OrdinalIgnoreCase))) 212runtimeA = MSBuildRuntimeValues.any; 217runtimeB = MSBuildRuntimeValues.any; 225if (runtimeA.Equals(MSBuildRuntimeValues.currentRuntime, StringComparison.OrdinalIgnoreCase) || 226runtimeA.Equals(MSBuildRuntimeValues.any, StringComparison.OrdinalIgnoreCase)) 243runtimeA.Equals(MSBuildRuntimeValues.currentRuntime, StringComparison.OrdinalIgnoreCase) || 244runtimeA.Equals(MSBuildRuntimeValues.any, StringComparison.OrdinalIgnoreCase)) && 247runtimeB.Equals(MSBuildRuntimeValues.currentRuntime, StringComparison.OrdinalIgnoreCase) || 248runtimeB.Equals(MSBuildRuntimeValues.any, StringComparison.OrdinalIgnoreCase))) 257if (runtimeA.Equals(MSBuildRuntimeValues.any, StringComparison.OrdinalIgnoreCase)) 264if (runtimeB.Equals(MSBuildRuntimeValues.any, StringComparison.OrdinalIgnoreCase)) 321MSBuildRuntimeValues.any.Equals(runtime, StringComparison.OrdinalIgnoreCase) || 322MSBuildRuntimeValues.currentRuntime.Equals(runtime, StringComparison.OrdinalIgnoreCase)) 451return MSBuildRuntimeValues.clr4;
MSBuild (3)
TypeLoader.cs (3)
628_runtime = targetFramework.StartsWith(DotNetCoreIdentifier) ? MSBuildRuntimeValues.net : MSBuildRuntimeValues.clr4; 641_runtime = MSBuildRuntimeValues.net;