144 references to MSBuildRuntimeValues
Microsoft.Build (39)
BackEnd\Components\RequestBuilder\TaskBuilder.cs (1)
546
msbuildRuntime = msbuildRuntime == string.Empty ? XMakeAttributes.
MSBuildRuntimeValues
.any : msbuildRuntime.Trim();
BackEnd\TaskExecutionHost\TaskExecutionHost.cs (2)
934
usingTaskRuntime ?? XMakeAttributes.
MSBuildRuntimeValues
.any,
936
taskRuntime ?? XMakeAttributes.
MSBuildRuntimeValues
.any,
CommunicationsUtilities.cs (3)
872
if (runtimeVersion.Equals(XMakeAttributes.
MSBuildRuntimeValues
.clr2, StringComparison.OrdinalIgnoreCase))
876
else if (runtimeVersion.Equals(XMakeAttributes.
MSBuildRuntimeValues
.clr4, StringComparison.OrdinalIgnoreCase))
880
else if (runtimeVersion.Equals(XMakeAttributes.
MSBuildRuntimeValues
.net, StringComparison.OrdinalIgnoreCase))
Evaluation\IntrinsicFunctions.cs (4)
494
ErrorUtilities.ThrowArgument("InvalidTaskHostFactoryParameter", runtime, "Runtime", XMakeAttributes.
MSBuildRuntimeValues
.clr2, XMakeAttributes.
MSBuildRuntimeValues
.clr4, XMakeAttributes.
MSBuildRuntimeValues
.currentRuntime, XMakeAttributes.
MSBuildRuntimeValues
.any);
Instance\TaskFactories\AssemblyTaskFactory.cs (6)
401
if (mergedParameters[XMakeAttributes.runtime].Equals(XMakeAttributes.
MSBuildRuntimeValues
.net))
538
XMakeAttributes.
MSBuildRuntimeValues
.clr2,
539
XMakeAttributes.
MSBuildRuntimeValues
.clr4,
540
XMakeAttributes.
MSBuildRuntimeValues
.currentRuntime,
541
XMakeAttributes.
MSBuildRuntimeValues
.any);
689
string currentRuntime = XMakeAttributes.GetExplicitMSBuildRuntime(XMakeAttributes.
MSBuildRuntimeValues
.currentRuntime);
Instance\TaskRegistry.cs (1)
432
taskFactoryParameters.Add(XMakeAttributes.runtime, runtime == String.Empty ? XMakeAttributes.
MSBuildRuntimeValues
.any : runtime);
XMakeAttributes.cs (22)
110
private static readonly HashSet<string> ValidMSBuildRuntimeValues = new HashSet<string>(StringComparer.OrdinalIgnoreCase) {
MSBuildRuntimeValues
.clr2,
MSBuildRuntimeValues
.clr4,
MSBuildRuntimeValues
.currentRuntime,
MSBuildRuntimeValues
.net,
MSBuildRuntimeValues
.any };
184
if (runtimeA.Equals(
MSBuildRuntimeValues
.any, StringComparison.OrdinalIgnoreCase) || runtimeB.Equals(
MSBuildRuntimeValues
.any, StringComparison.OrdinalIgnoreCase))
190
if ((runtimeA.Equals(
MSBuildRuntimeValues
.currentRuntime, StringComparison.OrdinalIgnoreCase) && runtimeB.Equals(GetCurrentMSBuildRuntime(), StringComparison.OrdinalIgnoreCase)) ||
191
(runtimeA.Equals(GetCurrentMSBuildRuntime(), StringComparison.OrdinalIgnoreCase) && runtimeB.Equals(
MSBuildRuntimeValues
.currentRuntime, StringComparison.OrdinalIgnoreCase)))
219
runtimeA =
MSBuildRuntimeValues
.any;
224
runtimeB =
MSBuildRuntimeValues
.any;
232
if (runtimeA.Equals(
MSBuildRuntimeValues
.currentRuntime, StringComparison.OrdinalIgnoreCase) ||
233
runtimeA.Equals(
MSBuildRuntimeValues
.any, StringComparison.OrdinalIgnoreCase))
250
runtimeA.Equals(
MSBuildRuntimeValues
.currentRuntime, StringComparison.OrdinalIgnoreCase) ||
251
runtimeA.Equals(
MSBuildRuntimeValues
.any, StringComparison.OrdinalIgnoreCase)) &&
254
runtimeB.Equals(
MSBuildRuntimeValues
.currentRuntime, StringComparison.OrdinalIgnoreCase) ||
255
runtimeB.Equals(
MSBuildRuntimeValues
.any, StringComparison.OrdinalIgnoreCase)))
264
if (runtimeA.Equals(
MSBuildRuntimeValues
.any, StringComparison.OrdinalIgnoreCase))
271
if (runtimeB.Equals(
MSBuildRuntimeValues
.any, StringComparison.OrdinalIgnoreCase))
328
MSBuildRuntimeValues
.any.Equals(runtime, StringComparison.OrdinalIgnoreCase) ||
329
MSBuildRuntimeValues
.currentRuntime.Equals(runtime, StringComparison.OrdinalIgnoreCase))
461
return
MSBuildRuntimeValues
.clr4;
Microsoft.Build.Engine.UnitTests (105)
BackEnd\AssemblyTaskFactory_Tests.cs (13)
177
factoryIdentityParameters.Add(XMakeAttributes.runtime, XMakeAttributes.
MSBuildRuntimeValues
.currentRuntime);
197
factoryIdentityParameters.Add(XMakeAttributes.runtime, XMakeAttributes.
MSBuildRuntimeValues
.clr2);
203
taskIdentityParameters.Add(XMakeAttributes.runtime, XMakeAttributes.
MSBuildRuntimeValues
.clr4);
279
taskParameters.Add(XMakeAttributes.runtime, XMakeAttributes.
MSBuildRuntimeValues
.any);
345
taskParameters.Add(XMakeAttributes.runtime, XMakeAttributes.
MSBuildRuntimeValues
.any);
380
taskParameters.Add(XMakeAttributes.runtime, XMakeAttributes.
MSBuildRuntimeValues
.any);
452
taskParameters.Add(XMakeAttributes.runtime, XMakeAttributes.
MSBuildRuntimeValues
.clr2);
487
taskParameters.Add(XMakeAttributes.runtime, XMakeAttributes.
MSBuildRuntimeValues
.clr2);
520
factoryParameters.Add(XMakeAttributes.runtime, XMakeAttributes.
MSBuildRuntimeValues
.clr2);
588
taskParameters.Add(XMakeAttributes.runtime, XMakeAttributes.
MSBuildRuntimeValues
.any);
625
taskParameters.Add(XMakeAttributes.runtime, XMakeAttributes.
MSBuildRuntimeValues
.any);
656
factoryParameters.Add(XMakeAttributes.runtime, XMakeAttributes.
MSBuildRuntimeValues
.any);
686
taskParameters.Add(XMakeAttributes.runtime, XMakeAttributes.
MSBuildRuntimeValues
.clr2);
BackEnd\TaskRegistry_Tests.cs (49)
524
runtime: XMakeAttributes.
MSBuildRuntimeValues
.clr4,
533
runtime: XMakeAttributes.
MSBuildRuntimeValues
.clr4,
542
runtime: XMakeAttributes.
MSBuildRuntimeValues
.clr2,
551
runtime: XMakeAttributes.
MSBuildRuntimeValues
.clr4,
581
taskParameters.Add(XMakeAttributes.runtime, XMakeAttributes.
MSBuildRuntimeValues
.clr4);
632
expectedRuntime: XMakeAttributes.
MSBuildRuntimeValues
.any,
643
expectedRuntime: XMakeAttributes.
MSBuildRuntimeValues
.any,
715
expectedRuntime: XMakeAttributes.
MSBuildRuntimeValues
.clr4,
722
runtime: XMakeAttributes.
MSBuildRuntimeValues
.clr4,
726
expectedRuntime: XMakeAttributes.
MSBuildRuntimeValues
.clr4,
733
runtime: XMakeAttributes.
MSBuildRuntimeValues
.clr4,
737
expectedRuntime: XMakeAttributes.
MSBuildRuntimeValues
.clr4,
744
runtime: XMakeAttributes.
MSBuildRuntimeValues
.clr4,
753
runtime: XMakeAttributes.
MSBuildRuntimeValues
.any,
757
expectedRuntime: XMakeAttributes.
MSBuildRuntimeValues
.clr4,
788
expectedRuntime: XMakeAttributes.
MSBuildRuntimeValues
.clr4,
795
runtime: XMakeAttributes.
MSBuildRuntimeValues
.clr2,
804
runtime: XMakeAttributes.
MSBuildRuntimeValues
.clr4,
808
expectedRuntime: XMakeAttributes.
MSBuildRuntimeValues
.clr4,
845
expectedRuntime: XMakeAttributes.
MSBuildRuntimeValues
.clr4,
852
runtime: XMakeAttributes.
MSBuildRuntimeValues
.clr4,
856
expectedRuntime: XMakeAttributes.
MSBuildRuntimeValues
.clr4,
863
runtime: XMakeAttributes.
MSBuildRuntimeValues
.clr4,
867
expectedRuntime: XMakeAttributes.
MSBuildRuntimeValues
.clr4,
874
runtime: XMakeAttributes.
MSBuildRuntimeValues
.clr4,
878
expectedRuntime: XMakeAttributes.
MSBuildRuntimeValues
.any,
885
runtime: XMakeAttributes.
MSBuildRuntimeValues
.any,
889
expectedRuntime: XMakeAttributes.
MSBuildRuntimeValues
.clr4,
896
runtime: XMakeAttributes.
MSBuildRuntimeValues
.clr2,
900
expectedRuntime: XMakeAttributes.
MSBuildRuntimeValues
.any,
907
runtime: XMakeAttributes.
MSBuildRuntimeValues
.clr2,
916
runtime: XMakeAttributes.
MSBuildRuntimeValues
.clr2,
920
expectedRuntime: XMakeAttributes.
MSBuildRuntimeValues
.any,
955
runtime: XMakeAttributes.
MSBuildRuntimeValues
.clr4,
959
expectedRuntime: XMakeAttributes.
MSBuildRuntimeValues
.any,
967
runtime: XMakeAttributes.
MSBuildRuntimeValues
.clr4,
971
expectedRuntime: XMakeAttributes.
MSBuildRuntimeValues
.any,
998
runtime: XMakeAttributes.
MSBuildRuntimeValues
.clr4,
1002
expectedRuntime: XMakeAttributes.
MSBuildRuntimeValues
.clr4,
1009
runtime: XMakeAttributes.
MSBuildRuntimeValues
.clr4,
1018
runtime: XMakeAttributes.
MSBuildRuntimeValues
.clr4,
1022
expectedRuntime: XMakeAttributes.
MSBuildRuntimeValues
.clr4,
1029
runtime: XMakeAttributes.
MSBuildRuntimeValues
.clr4,
1058
taskParameters.Add(XMakeAttributes.runtime, XMakeAttributes.
MSBuildRuntimeValues
.clr4);
1068
expectedRuntime: XMakeAttributes.
MSBuildRuntimeValues
.clr4,
1078
expectedRuntime: XMakeAttributes.
MSBuildRuntimeValues
.clr4,
1082
taskParameters.Add(XMakeAttributes.runtime, XMakeAttributes.
MSBuildRuntimeValues
.clr4);
1095
expectedRuntime: XMakeAttributes.
MSBuildRuntimeValues
.clr4,
2058
{XMakeAttributes.runtime, runtime ?? XMakeAttributes.
MSBuildRuntimeValues
.any},
XmakeAttributes_Tests.cs (43)
54
Assert.True(XMakeAttributes.RuntimeValuesMatch(XMakeAttributes.
MSBuildRuntimeValues
.any, XMakeAttributes.
MSBuildRuntimeValues
.currentRuntime));
55
Assert.True(XMakeAttributes.RuntimeValuesMatch(XMakeAttributes.
MSBuildRuntimeValues
.any, XMakeAttributes.
MSBuildRuntimeValues
.net));
56
Assert.True(XMakeAttributes.RuntimeValuesMatch(XMakeAttributes.
MSBuildRuntimeValues
.any, XMakeAttributes.
MSBuildRuntimeValues
.clr4));
57
Assert.True(XMakeAttributes.RuntimeValuesMatch(XMakeAttributes.
MSBuildRuntimeValues
.clr2, XMakeAttributes.
MSBuildRuntimeValues
.any));
61
Assert.True(XMakeAttributes.RuntimeValuesMatch(XMakeAttributes.
MSBuildRuntimeValues
.currentRuntime, XMakeAttributes.
MSBuildRuntimeValues
.clr4));
65
Assert.False(XMakeAttributes.RuntimeValuesMatch(XMakeAttributes.
MSBuildRuntimeValues
.currentRuntime, XMakeAttributes.
MSBuildRuntimeValues
.clr2));
67
Assert.False(XMakeAttributes.RuntimeValuesMatch(XMakeAttributes.
MSBuildRuntimeValues
.clr4, XMakeAttributes.
MSBuildRuntimeValues
.clr2));
68
Assert.False(XMakeAttributes.RuntimeValuesMatch(XMakeAttributes.
MSBuildRuntimeValues
.clr4, XMakeAttributes.
MSBuildRuntimeValues
.net));
69
Assert.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)]
89
XMakeAttributes.TryMergeRuntimeValues(XMakeAttributes.
MSBuildRuntimeValues
.any,
90
XMakeAttributes.
MSBuildRuntimeValues
.currentRuntime,
101
XMakeAttributes.
MSBuildRuntimeValues
.currentRuntime,
102
XMakeAttributes.
MSBuildRuntimeValues
.clr4,
104
mergedRuntime.ShouldBe(XMakeAttributes.
MSBuildRuntimeValues
.clr4);
107
XMakeAttributes.
MSBuildRuntimeValues
.currentRuntime,
108
XMakeAttributes.
MSBuildRuntimeValues
.net,
117
XMakeAttributes.
MSBuildRuntimeValues
.currentRuntime,
118
XMakeAttributes.
MSBuildRuntimeValues
.net,
120
mergedRuntime.ShouldBe(XMakeAttributes.
MSBuildRuntimeValues
.net);
123
XMakeAttributes.
MSBuildRuntimeValues
.currentRuntime,
124
XMakeAttributes.
MSBuildRuntimeValues
.clr4,