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