Skip to content

Commit

Permalink
Merge pull request #46 from AllenNeuralDynamics/fix-doc-build-output-…
Browse files Browse the repository at this point in the history
…search

Fix docs building script to be agnostic to dotnet target.
  • Loading branch information
bruno-f-cruz authored Jun 13, 2024
2 parents 2ef68b4 + c1c3645 commit d2bc7c9
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 d2bc7c9

Please sign in to comment.