22 references to clr2
Microsoft.Build (4)
CommunicationsUtilities.cs (1)
627
if (runtimeVersion.Equals(XMakeAttributes.MSBuildRuntimeValues.
clr2
, StringComparison.OrdinalIgnoreCase))
Evaluation\IntrinsicFunctions.cs (1)
477
ErrorUtilities.ThrowArgument("InvalidTaskHostFactoryParameter", runtime, "Runtime", XMakeAttributes.MSBuildRuntimeValues.
clr2
, XMakeAttributes.MSBuildRuntimeValues.clr4, XMakeAttributes.MSBuildRuntimeValues.currentRuntime, XMakeAttributes.MSBuildRuntimeValues.any);
Instance\TaskFactories\AssemblyTaskFactory.cs (1)
487
XMakeAttributes.MSBuildRuntimeValues.
clr2
,
XMakeAttributes.cs (1)
110
private static readonly HashSet<string> ValidMSBuildRuntimeValues = new HashSet<string>(StringComparer.OrdinalIgnoreCase) { MSBuildRuntimeValues.
clr2
, MSBuildRuntimeValues.clr4, MSBuildRuntimeValues.currentRuntime, MSBuildRuntimeValues.net, MSBuildRuntimeValues.any };
Microsoft.Build.Engine.UnitTests (18)
BackEnd\AssemblyTaskFactory_Tests.cs (5)
196
factoryIdentityParameters.Add(XMakeAttributes.runtime, XMakeAttributes.MSBuildRuntimeValues.
clr2
);
439
taskParameters.Add(XMakeAttributes.runtime, XMakeAttributes.MSBuildRuntimeValues.
clr2
);
472
taskParameters.Add(XMakeAttributes.runtime, XMakeAttributes.MSBuildRuntimeValues.
clr2
);
503
factoryParameters.Add(XMakeAttributes.runtime, XMakeAttributes.MSBuildRuntimeValues.
clr2
);
659
taskParameters.Add(XMakeAttributes.runtime, XMakeAttributes.MSBuildRuntimeValues.
clr2
);
BackEnd\TaskRegistry_Tests.cs (5)
542
runtime: XMakeAttributes.MSBuildRuntimeValues.
clr2
,
795
runtime: XMakeAttributes.MSBuildRuntimeValues.
clr2
,
896
runtime: XMakeAttributes.MSBuildRuntimeValues.
clr2
,
907
runtime: XMakeAttributes.MSBuildRuntimeValues.
clr2
,
916
runtime: XMakeAttributes.MSBuildRuntimeValues.
clr2
,
XmakeAttributes_Tests.cs (8)
57
Assert.True(XMakeAttributes.RuntimeValuesMatch(XMakeAttributes.MSBuildRuntimeValues.
clr2
, XMakeAttributes.MSBuildRuntimeValues.any));
65
Assert.False(XMakeAttributes.RuntimeValuesMatch(XMakeAttributes.MSBuildRuntimeValues.currentRuntime, XMakeAttributes.MSBuildRuntimeValues.
clr2
));
67
Assert.False(XMakeAttributes.RuntimeValuesMatch(XMakeAttributes.MSBuildRuntimeValues.clr4, XMakeAttributes.MSBuildRuntimeValues.
clr2
));
69
Assert.False(XMakeAttributes.RuntimeValuesMatch(XMakeAttributes.MSBuildRuntimeValues.
clr2
, XMakeAttributes.MSBuildRuntimeValues.net));
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)]