126 references to MSBuildArchitectureValues
Microsoft.Build (40)
BackEnd\Components\RequestBuilder\TaskBuilder.cs (1)
535
msbuildArchitecture = msbuildArchitecture == String.Empty ? XMakeAttributes.
MSBuildArchitectureValues
.any : msbuildArchitecture.Trim();
BackEnd\TaskExecutionHost\TaskExecutionHost.cs (2)
905
usingTaskArchitecture ?? XMakeAttributes.
MSBuildArchitectureValues
.any,
907
taskArchitecture ?? XMakeAttributes.
MSBuildArchitectureValues
.any);
CommunicationsUtilities.cs (2)
650
if (architectureFlagToSet.Equals(XMakeAttributes.
MSBuildArchitectureValues
.x64, StringComparison.OrdinalIgnoreCase))
654
else if (architectureFlagToSet.Equals(XMakeAttributes.
MSBuildArchitectureValues
.arm64, StringComparison.OrdinalIgnoreCase))
Evaluation\IntrinsicFunctions.cs (4)
482
ErrorUtilities.ThrowArgument("InvalidTaskHostFactoryParameter", architecture, "Architecture", XMakeAttributes.
MSBuildArchitectureValues
.x86, XMakeAttributes.
MSBuildArchitectureValues
.x64, XMakeAttributes.
MSBuildArchitectureValues
.currentArchitecture, XMakeAttributes.
MSBuildArchitectureValues
.any);
Instance\TaskFactories\AssemblyTaskFactory.cs (4)
505
XMakeAttributes.
MSBuildArchitectureValues
.x86,
506
XMakeAttributes.
MSBuildArchitectureValues
.x64,
507
XMakeAttributes.
MSBuildArchitectureValues
.currentArchitecture,
508
XMakeAttributes.
MSBuildArchitectureValues
.any);
Instance\TaskRegistry.cs (1)
441
taskFactoryParameters.Add(XMakeAttributes.architecture, architecture == String.Empty ? XMakeAttributes.
MSBuildArchitectureValues
.any : architecture);
XMakeAttributes.cs (26)
112
private static readonly HashSet<string> ValidMSBuildArchitectureValues = new HashSet<string>(StringComparer.OrdinalIgnoreCase) {
MSBuildArchitectureValues
.x86,
MSBuildArchitectureValues
.x64,
MSBuildArchitectureValues
.arm64,
MSBuildArchitectureValues
.currentArchitecture,
MSBuildArchitectureValues
.any };
301
if (architectureA.Equals(
MSBuildArchitectureValues
.any, StringComparison.OrdinalIgnoreCase) || architectureB.Equals(
MSBuildArchitectureValues
.any, StringComparison.OrdinalIgnoreCase))
309
if ((architectureA.Equals(
MSBuildArchitectureValues
.currentArchitecture, StringComparison.OrdinalIgnoreCase) && architectureB.Equals(currentArchitecture, StringComparison.OrdinalIgnoreCase)) ||
310
(architectureA.Equals(currentArchitecture, StringComparison.OrdinalIgnoreCase) && architectureB.Equals(
MSBuildArchitectureValues
.currentArchitecture, StringComparison.OrdinalIgnoreCase)))
359
architectureA =
MSBuildArchitectureValues
.any;
364
architectureB =
MSBuildArchitectureValues
.any;
372
if (architectureA.Equals(
MSBuildArchitectureValues
.currentArchitecture, StringComparison.OrdinalIgnoreCase) ||
373
architectureA.Equals(
MSBuildArchitectureValues
.any, StringComparison.OrdinalIgnoreCase))
389
architectureA.Equals(
MSBuildArchitectureValues
.currentArchitecture, StringComparison.OrdinalIgnoreCase) ||
390
architectureA.Equals(
MSBuildArchitectureValues
.any, StringComparison.OrdinalIgnoreCase)) &&
393
architectureB.Equals(
MSBuildArchitectureValues
.currentArchitecture, StringComparison.OrdinalIgnoreCase) ||
394
architectureB.Equals(
MSBuildArchitectureValues
.any, StringComparison.OrdinalIgnoreCase)))
403
if (architectureA.Equals(
MSBuildArchitectureValues
.any, StringComparison.OrdinalIgnoreCase))
410
if (architectureB.Equals(
MSBuildArchitectureValues
.any, StringComparison.OrdinalIgnoreCase))
434
currentArchitecture =
MSBuildArchitectureValues
.x86;
437
currentArchitecture =
MSBuildArchitectureValues
.x64;
440
currentArchitecture =
MSBuildArchitectureValues
.arm64;
446
currentArchitecture = (IntPtr.Size == sizeof(Int64)) ?
MSBuildArchitectureValues
.x64 :
MSBuildArchitectureValues
.x86;
476
MSBuildArchitectureValues
.any.Equals(architecture, StringComparison.OrdinalIgnoreCase) ||
477
MSBuildArchitectureValues
.currentArchitecture.Equals(architecture, StringComparison.OrdinalIgnoreCase))
Microsoft.Build.Engine.UnitTests (86)
BackEnd\AssemblyTaskFactory_Tests.cs (13)
177
factoryIdentityParameters.Add(XMakeAttributes.architecture, XMakeAttributes.
MSBuildArchitectureValues
.currentArchitecture);
197
factoryIdentityParameters.Add(XMakeAttributes.architecture, XMakeAttributes.
MSBuildArchitectureValues
.currentArchitecture);
203
taskIdentityParameters.Add(XMakeAttributes.architecture, XMakeAttributes.
MSBuildArchitectureValues
.currentArchitecture);
277
taskParameters.Add(XMakeAttributes.architecture, XMakeAttributes.
MSBuildArchitectureValues
.any);
339
taskParameters.Add(XMakeAttributes.architecture, XMakeAttributes.
MSBuildArchitectureValues
.any);
409
taskParameters.Add(XMakeAttributes.architecture, XMakeAttributes.
MSBuildArchitectureValues
.currentArchitecture);
440
taskParameters.Add(XMakeAttributes.architecture, XMakeAttributes.
MSBuildArchitectureValues
.any);
473
taskParameters.Add(XMakeAttributes.architecture, XMakeAttributes.
MSBuildArchitectureValues
.any);
508
taskParameters.Add(XMakeAttributes.architecture, XMakeAttributes.
MSBuildArchitectureValues
.any);
568
taskParameters.Add(XMakeAttributes.architecture, XMakeAttributes.
MSBuildArchitectureValues
.any);
603
taskParameters.Add(XMakeAttributes.architecture, XMakeAttributes.
MSBuildArchitectureValues
.any);
632
factoryParameters.Add(XMakeAttributes.architecture, XMakeAttributes.
MSBuildArchitectureValues
.any);
660
taskParameters.Add(XMakeAttributes.architecture, XMakeAttributes.
MSBuildArchitectureValues
.currentArchitecture);
BackEnd\TaskRegistry_Tests.cs (47)
525
architecture: XMakeAttributes.
MSBuildArchitectureValues
.any,
534
architecture: XMakeAttributes.
MSBuildArchitectureValues
.x86,
543
architecture: XMakeAttributes.
MSBuildArchitectureValues
.x64,
552
architecture: XMakeAttributes.
MSBuildArchitectureValues
.x86,
582
taskParameters.Add(XMakeAttributes.architecture, XMakeAttributes.
MSBuildArchitectureValues
.x86);
716
expectedArchitecture: XMakeAttributes.
MSBuildArchitectureValues
.x86);
723
architecture: XMakeAttributes.
MSBuildArchitectureValues
.x86,
727
expectedArchitecture: XMakeAttributes.
MSBuildArchitectureValues
.x86);
734
architecture: XMakeAttributes.
MSBuildArchitectureValues
.any,
738
expectedArchitecture: XMakeAttributes.
MSBuildArchitectureValues
.x86);
745
architecture: XMakeAttributes.
MSBuildArchitectureValues
.x64,
754
architecture: XMakeAttributes.
MSBuildArchitectureValues
.x86,
758
expectedArchitecture: XMakeAttributes.
MSBuildArchitectureValues
.x86);
789
expectedArchitecture: XMakeAttributes.
MSBuildArchitectureValues
.x86);
796
architecture: XMakeAttributes.
MSBuildArchitectureValues
.x86,
805
architecture: XMakeAttributes.
MSBuildArchitectureValues
.x86,
809
expectedArchitecture: XMakeAttributes.
MSBuildArchitectureValues
.x86);
846
expectedArchitecture: XMakeAttributes.
MSBuildArchitectureValues
.x86);
853
architecture: XMakeAttributes.
MSBuildArchitectureValues
.x86,
857
expectedArchitecture: XMakeAttributes.
MSBuildArchitectureValues
.x86);
864
architecture: XMakeAttributes.
MSBuildArchitectureValues
.any,
868
expectedArchitecture: XMakeAttributes.
MSBuildArchitectureValues
.x86);
875
architecture: XMakeAttributes.
MSBuildArchitectureValues
.x64,
879
expectedArchitecture: XMakeAttributes.
MSBuildArchitectureValues
.x64);
886
architecture: XMakeAttributes.
MSBuildArchitectureValues
.x86,
890
expectedArchitecture: XMakeAttributes.
MSBuildArchitectureValues
.x86);
897
architecture: XMakeAttributes.
MSBuildArchitectureValues
.x64,
901
expectedArchitecture: XMakeAttributes.
MSBuildArchitectureValues
.x64);
908
architecture: XMakeAttributes.
MSBuildArchitectureValues
.x86,
917
architecture: XMakeAttributes.
MSBuildArchitectureValues
.x64,
921
expectedArchitecture: XMakeAttributes.
MSBuildArchitectureValues
.x64);
956
architecture: XMakeAttributes.
MSBuildArchitectureValues
.x64,
960
expectedArchitecture: XMakeAttributes.
MSBuildArchitectureValues
.x64);
968
architecture: XMakeAttributes.
MSBuildArchitectureValues
.any,
972
expectedArchitecture: XMakeAttributes.
MSBuildArchitectureValues
.x64);
999
architecture: XMakeAttributes.
MSBuildArchitectureValues
.any,
1003
expectedArchitecture: XMakeAttributes.
MSBuildArchitectureValues
.x86);
1010
architecture: XMakeAttributes.
MSBuildArchitectureValues
.x64,
1019
architecture: XMakeAttributes.
MSBuildArchitectureValues
.any,
1023
expectedArchitecture: XMakeAttributes.
MSBuildArchitectureValues
.x86);
1030
architecture: XMakeAttributes.
MSBuildArchitectureValues
.x64,
1059
taskParameters.Add(XMakeAttributes.architecture, XMakeAttributes.
MSBuildArchitectureValues
.x86);
1069
expectedArchitecture: XMakeAttributes.
MSBuildArchitectureValues
.x86);
1079
expectedArchitecture: XMakeAttributes.
MSBuildArchitectureValues
.x86);
1083
taskParameters.Add(XMakeAttributes.architecture, XMakeAttributes.
MSBuildArchitectureValues
.x86);
1096
expectedArchitecture: XMakeAttributes.
MSBuildArchitectureValues
.x86);
2059
{XMakeAttributes.architecture, architecture ?? XMakeAttributes.
MSBuildArchitectureValues
.any}
XmakeAttributes_Tests.cs (26)
133
string notCurrentArchitecture = EnvironmentUtilities.Is64BitProcess ? XMakeAttributes.
MSBuildArchitectureValues
.x86 : XMakeAttributes.
MSBuildArchitectureValues
.x64;
135
Assert.True(XMakeAttributes.ArchitectureValuesMatch(XMakeAttributes.
MSBuildArchitectureValues
.any, XMakeAttributes.
MSBuildArchitectureValues
.currentArchitecture));
136
Assert.True(XMakeAttributes.ArchitectureValuesMatch(XMakeAttributes.
MSBuildArchitectureValues
.any, XMakeAttributes.
MSBuildArchitectureValues
.x64));
137
Assert.True(XMakeAttributes.ArchitectureValuesMatch(XMakeAttributes.
MSBuildArchitectureValues
.x86, XMakeAttributes.
MSBuildArchitectureValues
.any));
138
Assert.True(XMakeAttributes.ArchitectureValuesMatch(XMakeAttributes.
MSBuildArchitectureValues
.currentArchitecture, currentArchitecture));
140
Assert.False(XMakeAttributes.ArchitectureValuesMatch(XMakeAttributes.
MSBuildArchitectureValues
.currentArchitecture, notCurrentArchitecture));
141
Assert.False(XMakeAttributes.ArchitectureValuesMatch(XMakeAttributes.
MSBuildArchitectureValues
.x64, XMakeAttributes.
MSBuildArchitectureValues
.x86));
148
string notCurrentArchitecture = EnvironmentUtilities.Is64BitProcess ? XMakeAttributes.
MSBuildArchitectureValues
.x86 : XMakeAttributes.
MSBuildArchitectureValues
.x64;
151
Assert.True(XMakeAttributes.TryMergeArchitectureValues(XMakeAttributes.
MSBuildArchitectureValues
.any, XMakeAttributes.
MSBuildArchitectureValues
.currentArchitecture, out mergedArchitecture));
154
Assert.True(XMakeAttributes.TryMergeArchitectureValues(XMakeAttributes.
MSBuildArchitectureValues
.any, XMakeAttributes.
MSBuildArchitectureValues
.x64, out mergedArchitecture));
155
Assert.Equal(XMakeAttributes.
MSBuildArchitectureValues
.x64, mergedArchitecture);
157
Assert.True(XMakeAttributes.TryMergeArchitectureValues(XMakeAttributes.
MSBuildArchitectureValues
.x86, XMakeAttributes.
MSBuildArchitectureValues
.any, out mergedArchitecture));
158
Assert.Equal(XMakeAttributes.
MSBuildArchitectureValues
.x86, mergedArchitecture);
160
Assert.True(XMakeAttributes.TryMergeArchitectureValues(XMakeAttributes.
MSBuildArchitectureValues
.currentArchitecture, currentArchitecture, out mergedArchitecture));
163
Assert.False(XMakeAttributes.TryMergeArchitectureValues(XMakeAttributes.
MSBuildArchitectureValues
.currentArchitecture, notCurrentArchitecture, out mergedArchitecture));
164
Assert.False(XMakeAttributes.TryMergeArchitectureValues(XMakeAttributes.
MSBuildArchitectureValues
.x64, XMakeAttributes.
MSBuildArchitectureValues
.x86, out mergedArchitecture));