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