Skip to content

Commit 314b793

Browse files
SyncFileContentsSyncFileContents
authored andcommitted
Sync scripts\update-winget-manifests.ps1
1 parent faf80ad commit 314b793

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

scripts/update-winget-manifests.ps1

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,9 @@ function Test-IsLibraryOnlyProject {
9292
$csprojContent = Get-Content -Path $csprojFile.FullName -Raw
9393
$projectName = $csprojFile.BaseName
9494

95-
# Check if this is the main project (matches repository name)
96-
$isMainProject = ($projectName -eq $repoName)
95+
# Check if this is the main project (matches repository name or starts with it)
96+
# For multi-project solutions like "Semantics.Strings" in repo "Semantics"
97+
$isMainProject = ($projectName -eq $repoName -or $projectName.StartsWith("$repoName."))
9798

9899
# Skip test projects
99100
$isTestProject = ($csprojContent -match 'Sdk="[^"]*\.Test["/]' -or

0 commit comments

Comments
 (0)