From 0c71bc8cc0b50814b3a7c4d5862d29bc538ba9c6 Mon Sep 17 00:00:00 2001 From: Renn <8340896+AkazaRenn@users.noreply.github.com> Date: Wed, 28 Aug 2024 23:52:26 +0000 Subject: [PATCH] debugging info for Get Target Frameworks --- .github/workflows/build.yml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 429cf53..af04bc1 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -20,17 +20,22 @@ jobs: - name: Get Target Frameworks run: | + Write-Host "Starting to extract target frameworks..." $csprojFiles = Get-ChildItem -Path '**/*.csproj' + Write-Host "Found .csproj files: $($csprojFiles.Count)" $frameworks = @() foreach ($file in $csprojFiles) { - [xml]$csproj = Get-Content -Path $file.FullName - $framework = $csproj.Project.PropertyGroup.TargetFramework - $frameworks += $framework + Write-Host "Processing file: $($file.FullName)" + [xml]$csproj = Get-Content -Path $file.FullName + $framework = $csproj.Project.PropertyGroup.TargetFramework + Write-Host "Extracted framework: $framework" + $frameworks += $framework } $uniqueFrameworks = $frameworks | Sort-Object -Unique + Write-Host "Unique frameworks: $($uniqueFrameworks -join ',')" $uniqueFrameworks -join ',' | Out-File -FilePath frameworks.txt - echo "Required .NET versions:" - cat frameworks.txt + Write-Host "Content of frameworks.txt:" + Get-Content frameworks.txt echo "frameworks=$(Get-Content frameworks.txt)" >> $GITHUB_ENV - name: Setup .NET