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