Skip to content

Commit 97b7467

Browse files
committed
Fix workflow: use correct solution file for build
Updated SOLUTION_PATH in build-and-release.yml to reference the correct solution file, PingTool.WinUI3.sln, instead of the non-existent Ping-Tool.sln. Added WORKFLOW_FIX.md to document the issue, root cause, and resolution steps. This ensures the GitHub Actions workflow builds and releases the intended WinUI3 project.
1 parent 4d8ff93 commit 97b7467

File tree

2 files changed

+70
-1
lines changed

2 files changed

+70
-1
lines changed

.github/workflows/build-and-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ on:
1212
env:
1313
DOTNET_VERSION: '8.0.x'
1414
PROJECT_PATH: 'PingTool.WinUI3/PingTool.WinUI3.csproj'
15-
SOLUTION_PATH: 'Ping-Tool.sln'
15+
SOLUTION_PATH: 'PingTool.WinUI3.sln'
1616

1717
jobs:
1818
build-msix-bundle:

WORKFLOW_FIX.md

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
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

Comments
 (0)