|
| 1 | +# GitHub Actions Workflow Fix |
| 2 | + |
| 3 | +## Issue |
| 4 | + |
| 5 | +The GitHub Actions workflow was failing with the error: |
| 6 | + |
| 7 | +``` |
| 8 | +MSBUILD : error MSB1009: Project file does not exist. |
| 9 | +Switch: Ping-Tool.sln |
| 10 | +``` |
| 11 | + |
| 12 | +## Root Cause |
| 13 | + |
| 14 | +The workflow file (`.github/workflows/build-and-release.yml`) was referencing an incorrect solution file name: |
| 15 | + |
| 16 | +**Incorrect**: `Ping-Tool.sln` |
| 17 | +**Correct**: `PingTool.WinUI3.sln` |
| 18 | + |
| 19 | +## Solution |
| 20 | + |
| 21 | +Updated the `SOLUTION_PATH` environment variable in `.github/workflows/build-and-release.yml`: |
| 22 | + |
| 23 | +```yaml |
| 24 | +env: |
| 25 | + DOTNET_VERSION: '8.0.x' |
| 26 | + PROJECT_PATH: 'PingTool.WinUI3/PingTool.WinUI3.csproj' |
| 27 | + SOLUTION_PATH: 'PingTool.WinUI3.sln' # Fixed from 'Ping-Tool.sln' |
| 28 | +``` |
| 29 | +
|
| 30 | +## Available Solution Files |
| 31 | +
|
| 32 | +The repository contains two solution files: |
| 33 | +- `PingTool.sln` - Legacy/old solution |
| 34 | +- `PingTool.WinUI3.sln` - **Current WinUI3 solution (correct one)** |
| 35 | + |
| 36 | +The WinUI3 solution is the active one for the migration and should be used for all builds. |
| 37 | + |
| 38 | +## Verification |
| 39 | + |
| 40 | +1. ? Local build successful |
| 41 | +2. ? Solution file path verified: `PingTool.WinUI3.sln` exists in repository root |
| 42 | +3. ? Project file path correct: `PingTool.WinUI3/PingTool.WinUI3.csproj` |
| 43 | +4. ? Solution contains the WinUI3 project |
| 44 | + |
| 45 | +## Testing |
| 46 | + |
| 47 | +After pushing this change, the GitHub Actions workflow should: |
| 48 | +- ? Successfully restore NuGet packages |
| 49 | +- ? Build MSIX bundle for all platforms (x86, x64, ARM64) |
| 50 | +- ? Build traditional installer |
| 51 | +- ? Create releases on version tags |
| 52 | + |
| 53 | +## Files Modified |
| 54 | + |
| 55 | +- `.github/workflows/build-and-release.yml` - Fixed `SOLUTION_PATH` variable to `PingTool.WinUI3.sln` |
| 56 | + |
| 57 | +## Next Steps |
| 58 | + |
| 59 | +1. Commit and push the fix |
| 60 | +2. Monitor the GitHub Actions workflow run |
| 61 | +3. Verify all jobs complete successfully |
| 62 | +4. Proceed with normal release process |
| 63 | + |
| 64 | +--- |
| 65 | + |
| 66 | +**Fixed by**: GitHub Copilot |
| 67 | +**Date**: January 2026 |
| 68 | +**Related Issue**: GitHub Actions build failure on branch push |
| 69 | +**Corrected Solution**: PingTool.WinUI3.sln (not PingTool.sln) |
0 commit comments