20 references to currentRuntime
Microsoft.Build (10)
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 (2)
489
XMakeAttributes.MSBuildRuntimeValues.
currentRuntime
,
622
string currentRuntime = XMakeAttributes.GetExplicitMSBuildRuntime(XMakeAttributes.MSBuildRuntimeValues.
currentRuntime
);
XMakeAttributes.cs (7)
110
private static readonly HashSet<string> ValidMSBuildRuntimeValues = new HashSet<string>(StringComparer.OrdinalIgnoreCase) { MSBuildRuntimeValues.clr2, MSBuildRuntimeValues.clr4, MSBuildRuntimeValues.
currentRuntime
, MSBuildRuntimeValues.net, MSBuildRuntimeValues.any };
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)))
232
if (runtimeA.Equals(MSBuildRuntimeValues.
currentRuntime
, StringComparison.OrdinalIgnoreCase) ||
250
runtimeA.Equals(MSBuildRuntimeValues.
currentRuntime
, StringComparison.OrdinalIgnoreCase) ||
254
runtimeB.Equals(MSBuildRuntimeValues.
currentRuntime
, StringComparison.OrdinalIgnoreCase) ||
329
MSBuildRuntimeValues.
currentRuntime
.Equals(runtime, StringComparison.OrdinalIgnoreCase))
Microsoft.Build.Engine.UnitTests (10)
BackEnd\AssemblyTaskFactory_Tests.cs (1)
176
factoryIdentityParameters.Add(XMakeAttributes.runtime, XMakeAttributes.MSBuildRuntimeValues.
currentRuntime
);
XmakeAttributes_Tests.cs (9)
54
Assert.True(XMakeAttributes.RuntimeValuesMatch(XMakeAttributes.MSBuildRuntimeValues.any, XMakeAttributes.MSBuildRuntimeValues.
currentRuntime
));
59
Assert.True(XMakeAttributes.RuntimeValuesMatch(XMakeAttributes.MSBuildRuntimeValues.
currentRuntime
, XMakeAttributes.MSBuildRuntimeValues.net));
65
Assert.False(XMakeAttributes.RuntimeValuesMatch(XMakeAttributes.MSBuildRuntimeValues.
currentRuntime
, XMakeAttributes.MSBuildRuntimeValues.clr2));
76
[InlineData(XMakeAttributes.MSBuildRuntimeValues.
currentRuntime
, XMakeAttributes.MSBuildRuntimeValues.clr2, false, null)]
90
XMakeAttributes.MSBuildRuntimeValues.
currentRuntime
,
101
XMakeAttributes.MSBuildRuntimeValues.
currentRuntime
,
107
XMakeAttributes.MSBuildRuntimeValues.
currentRuntime
,
117
XMakeAttributes.MSBuildRuntimeValues.
currentRuntime
,
123
XMakeAttributes.MSBuildRuntimeValues.
currentRuntime
,