[ci]Enhance ARM64 configuration verification (#23509)

* Use case-sensitive equality check for platform name

* Add missing platform message.

* Update spelling
This commit is contained in:
Jeremy Sinclair
2023-01-26 11:40:15 -05:00
committed by GitHub
parent 8a0cf5ed97
commit 923c220338
2 changed files with 6 additions and 4 deletions

View File

@@ -192,6 +192,7 @@ CDeclaration
CDEF
cdpx
CENTERALIGN
ceq
cguid
changecursor
Changemove
@@ -234,6 +235,7 @@ CMock
CMONITORS
cmpgt
cmyk
cne
cnt
Cocklebiddy
coclass

View File

@@ -22,7 +22,7 @@ catch {
$solutionFile = [Microsoft.Build.Construction.SolutionFile]::Parse($solution);
$arm64SlnConfigs = $solutionFile.SolutionConfigurations | Where-Object {
$_.PlatformName -eq "ARM64"
$_.PlatformName -ceq "ARM64"
};
# Should have two configurations. Debug and Release.
@@ -39,9 +39,9 @@ $projects = $solutionFile.ProjectsInOrder | Where-Object {
# Enumerate through the projects and add any project with a mismatched platform and project configuration
foreach ($project in $projects) {
foreach ($slnConfig in $arm64SlnConfigs.FullName) {
if ($project.ProjectConfigurations.$slnConfig.FullName -ne $slnConfig) {
$errorTable[$project.ProjectName] += @(""
| Select-Object @{n = "Configuration"; e = { $project.ProjectConfigurations.$slnConfig.FullName } },
if ($project.ProjectConfigurations.$slnConfig.FullName -cne $slnConfig) {
$errorTable[$project.ProjectName] += @(""`
| Select-Object @{n = "Configuration"; e = { $project.ProjectConfigurations.$slnConfig.FullName ?? "Missing platform" } },
@{n = "ExpectedConfiguration"; e = { $slnConfig } })
}
}