41 references to any
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 (1)
494
ErrorUtilities.ThrowArgument("InvalidTaskHostFactoryParameter", runtime, "Runtime", XMakeAttributes.MSBuildRuntimeValues.clr2, XMakeAttributes.MSBuildRuntimeValues.clr4, XMakeAttributes.MSBuildRuntimeValues.currentRuntime, XMakeAttributes.MSBuildRuntimeValues.
any
);
Instance\TaskFactories\AssemblyTaskFactory.cs (1)
541
XMakeAttributes.MSBuildRuntimeValues.
any
);
Instance\TaskRegistry.cs (1)
429
runtime == string.Empty ? XMakeAttributes.MSBuildRuntimeValues.
any
: runtime,
XMakeAttributes.cs (11)
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))
211
runtimeA = MSBuildRuntimeValues.
any
;
216
runtimeB = MSBuildRuntimeValues.
any
;
225
runtimeA.Equals(MSBuildRuntimeValues.
any
, StringComparison.OrdinalIgnoreCase))
243
runtimeA.Equals(MSBuildRuntimeValues.
any
, 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) ||
Microsoft.Build.Engine.UnitTests (24)
BackEnd\AssemblyTaskFactory_Tests.cs (6)
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());
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);
BackEnd\TaskRegistry_Tests.cs (10)
587
expectedRuntime: XMakeAttributes.MSBuildRuntimeValues.
any
,
598
expectedRuntime: XMakeAttributes.MSBuildRuntimeValues.
any
,
708
runtime: XMakeAttributes.MSBuildRuntimeValues.
any
,
833
expectedRuntime: XMakeAttributes.MSBuildRuntimeValues.
any
,
840
runtime: XMakeAttributes.MSBuildRuntimeValues.
any
,
855
expectedRuntime: XMakeAttributes.MSBuildRuntimeValues.
any
,
875
expectedRuntime: XMakeAttributes.MSBuildRuntimeValues.
any
,
914
expectedRuntime: XMakeAttributes.MSBuildRuntimeValues.
any
,
926
expectedRuntime: XMakeAttributes.MSBuildRuntimeValues.
any
,
1947
parameters = new(runtime ?? XMakeAttributes.MSBuildRuntimeValues.
any
, architecture ?? XMakeAttributes.MSBuildArchitectureValues.any);
XmakeAttributes_Tests.cs (8)
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
));
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)]
89
XMakeAttributes.TryMergeRuntimeValues(XMakeAttributes.MSBuildRuntimeValues.
any
,