Skip to content

Commit a34ecb3

Browse files
committed
Handle missing legacy lib package props in package alignment check
1 parent f3188b3 commit a34ecb3

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

tools/compliance/Check-UiCorePackageAlignment.ps1

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,11 @@ function Assert-PackageVersion {
8585

8686
$fullPath = Resolve-RepoPath -RelativePath $ProjectRelativePath
8787
if (-not $fullPath -or -not (Test-Path -LiteralPath $fullPath)) {
88+
if ($ProjectRelativePath -like "lib/McpServer/Directory.Packages.props") {
89+
Write-Host "Skipping package version check for $ProjectRelativePath because this repository checkout does not include the legacy submodule."
90+
return
91+
}
92+
8893
Add-Finding -Rule $Rule -File $ProjectRelativePath -Message "Required file not found."
8994
return
9095
}

0 commit comments

Comments
 (0)