Skip to content

Commit

Permalink
Fix docs building script to be agnostic to dotnet target.
Browse files Browse the repository at this point in the history
  • Loading branch information
bruno-f-cruz committed Jun 13, 2024
1 parent 2ef68b4 commit c1c3645
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions docs/build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,18 @@ foreach ($file in $files)
# Find assemblies to build workflows
$baseDir = (Get-Item -Path "..\src" -Verbose).FullName
$folderPaths = Get-ChildItem -Path $baseDir -Directory
$sufix = "bin\Release\net472"
$suffix = "bin\Release\net*"
$packages = @()

# find package assemblies
foreach ($folderPath in $folderPaths) {
$snlPath = Join-Path -Path $folderPath.FullName -ChildPath ($folderPath.Name + ".sln")
if (Test-Path -Path $snlPath) {
$libPath = Join-Path -Path $folderPath.FullName -ChildPath $sufix
$packages += $libPath
$slnPath = Join-Path -Path $folderPath.FullName -ChildPath ($folderPath.Name + ".sln")
if (Test-Path -Path $slnPath) {
$libPath = Join-Path -Path $folderPath.FullName -ChildPath $suffix
$matchingFolders = Get-ChildItem -Path $libPath -Directory | Where-Object { $_.Name -match "^net\d+" }
if ($matchingFolders) {
$packages += $matchingFolders.FullName
}
}
}

Expand Down

0 comments on commit c1c3645

Please sign in to comment.