@@ -36,15 +36,42 @@ jobs:
3636 run : |
3737 $solutionFile = Get-Item -Path "Examples/Infragistics.Samples.WPF.sln"
3838 $baseDir = $solutionFile.DirectoryName
39+ Write-Host "--- Start Path Determination Log ---"
40+ Write-Host "1. Starting path analysis."
41+ Write-Host "2. Base directory for search: $baseDir"
42+
3943 $csprojFile = Get-ChildItem -Path $baseDir -Recurse -Filter "Infragistics.SamplesBrowser.WPF.Source.csproj" | Select-Object -First 1
44+ Write-Host "3. csprojfile: $csprojFile.FullName"
45+
4046 $projectFile = [xml](Get-Content $csprojFile.FullName)
47+
48+ Write-Host "5. Searching .csproj for 'Release|AnyCPU' OutputPath..."
4149 $outputPath = $projectFile.Project.PropertyGroup | Where-Object { $_.Condition -like "*'Release|AnyCPU'*" } | Select-Object -ExpandProperty OutputPath
42- if (-not $outputPath) {
43- $outputPath = $projectFile.Project.PropertyGroup | Where-Object { -not $_.Condition } | Select-Object -ExpandProperty OutputPath
50+ if ([string]::IsNullOrEmpty($outputPath)) {
51+ Write-Host " -> No matching OutputPath found for 'Release|Any CPU'. Trying fallback..."
52+ # Fallback to the first non-conditional PropertyGroup
53+ $outputPath = $projectFile.Project.PropertyGroup | Where-Object { -not $_.Condition } | Select-Object -ExpandProperty OutputPath
54+ }
55+
56+ if ([string]::IsNullOrEmpty($outputPath)) {
57+ Write-Warning " -> No OutputPath found in any PropertyGroup. Output path will be empty."
58+ exit 1
4459 }
60+ Write-Host "6. Determined relative output path: $outputPath"
61+
4562 $fullOutputPath = Join-Path -Path $baseDir -ChildPath $outputPath
63+ Write-Host "7. Final calculated full output path: $fullOutputPath"
64+
65+ Write-Host "8. Checking if path exists: $(Test-Path -Path $fullOutputPath)"
66+ if (-not (Test-Path -Path $fullOutputPath)) {
67+ Write-Warning " -> The final output path does not exist. This could be a problem."
68+ }
69+
4670 echo "output_path=$fullOutputPath" >> $GITHUB_OUTPUT
47-
71+
72+ Write-Host "9. output_path variable set for subsequent steps."
73+ Write-Host "--- End Path Determination Log ---"
74+
4875 - name : Zip the build output
4976 run : |
5077 Compress-Archive -Path "${{ steps.get_output_path.outputs.output_path }}\*" -DestinationPath "wpf-app-release.zip"
0 commit comments