143 references to MSBuildRuntimeValues
Microsoft.Build (38)
BackEnd\Components\RequestBuilder\TaskBuilder.cs (1)
536
msbuildRuntime = msbuildRuntime == String.Empty ? XMakeAttributes.
MSBuildRuntimeValues
.any : msbuildRuntime.Trim();
BackEnd\TaskExecutionHost\TaskExecutionHost.cs (2)
904
usingTaskRuntime ?? XMakeAttributes.
MSBuildRuntimeValues
.any,
906
taskRuntime ?? XMakeAttributes.
MSBuildRuntimeValues
.any,
CommunicationsUtilities.cs (3)
627
if (runtimeVersion.Equals(XMakeAttributes.
MSBuildRuntimeValues
.clr2, StringComparison.OrdinalIgnoreCase))
631
else if (runtimeVersion.Equals(XMakeAttributes.
MSBuildRuntimeValues
.clr4, StringComparison.OrdinalIgnoreCase))
635
else if (runtimeVersion.Equals(XMakeAttributes.
MSBuildRuntimeValues
.net, StringComparison.OrdinalIgnoreCase))
Evaluation\IntrinsicFunctions.cs (4)
477
ErrorUtilities.ThrowArgument("InvalidTaskHostFactoryParameter", runtime, "Runtime", XMakeAttributes.
MSBuildRuntimeValues
.clr2, XMakeAttributes.
MSBuildRuntimeValues
.clr4, XMakeAttributes.
MSBuildRuntimeValues
.currentRuntime, XMakeAttributes.
MSBuildRuntimeValues
.any);
Instance\TaskFactories\AssemblyTaskFactory.cs (5)
487
XMakeAttributes.
MSBuildRuntimeValues
.clr2,
488
XMakeAttributes.
MSBuildRuntimeValues
.clr4,
489
XMakeAttributes.
MSBuildRuntimeValues
.currentRuntime,
490
XMakeAttributes.
MSBuildRuntimeValues
.any);
622
string currentRuntime = XMakeAttributes.GetExplicitMSBuildRuntime(XMakeAttributes.
MSBuildRuntimeValues
.currentRuntime);
Instance\TaskRegistry.cs (1)
440
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))
463
return
MSBuildRuntimeValues
.net;
Microsoft.Build.Engine.UnitTests (105)
BackEnd\AssemblyTaskFactory_Tests.cs (13)
176
factoryIdentityParameters.Add(XMakeAttributes.runtime, XMakeAttributes.
MSBuildRuntimeValues
.currentRuntime);
196
factoryIdentityParameters.Add(XMakeAttributes.runtime, XMakeAttributes.
MSBuildRuntimeValues
.clr2);
202
taskIdentityParameters.Add(XMakeAttributes.runtime, XMakeAttributes.
MSBuildRuntimeValues
.clr4);
276
taskParameters.Add(XMakeAttributes.runtime, XMakeAttributes.
MSBuildRuntimeValues
.any);
338
taskParameters.Add(XMakeAttributes.runtime, XMakeAttributes.
MSBuildRuntimeValues
.any);
371
taskParameters.Add(XMakeAttributes.runtime, XMakeAttributes.
MSBuildRuntimeValues
.any);
439
taskParameters.Add(XMakeAttributes.runtime, XMakeAttributes.
MSBuildRuntimeValues
.clr2);
472
taskParameters.Add(XMakeAttributes.runtime, XMakeAttributes.
MSBuildRuntimeValues
.clr2);
503
factoryParameters.Add(XMakeAttributes.runtime, XMakeAttributes.
MSBuildRuntimeValues
.clr2);
567
taskParameters.Add(XMakeAttributes.runtime, XMakeAttributes.
MSBuildRuntimeValues
.any);
602
taskParameters.Add(XMakeAttributes.runtime, XMakeAttributes.
MSBuildRuntimeValues
.any);
631
factoryParameters.Add(XMakeAttributes.runtime, XMakeAttributes.
MSBuildRuntimeValues
.any);
659
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));
59
Assert.True(XMakeAttributes.RuntimeValuesMatch(XMakeAttributes.
MSBuildRuntimeValues
.currentRuntime, XMakeAttributes.
MSBuildRuntimeValues
.net));
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,