Commit 5b239cc
Claude/fix macos publish mono 3 ps kw (#11)
* Replace mono/nuget.exe with dotnet nuget commands
Modern macOS runners (macos-15, macos-14) no longer have mono pre-installed,
causing publish actions to fail. This change replaces all mono-based NuGet
commands with native dotnet CLI equivalents:
- Replaced 'mono .config/nuget.exe sources add' with 'dotnet nuget add source'
- Replaced 'mono .config/nuget.exe setApiKey' with 'dotnet nuget update source'
- Moved dotnet installation step before NuGet credential setup to ensure
dotnet is available when needed
The dotnet CLI NuGet commands are cross-platform and don't require mono,
resolving the macOS x64 publish failure while maintaining functionality
across all platforms (macOS, Linux, Windows).
* Install mono via brew for vcpkg NuGet binary caching
vcpkg internally requires mono to execute nuget.exe for NuGet binary
caching operations on macOS/Linux, even when NuGet sources are configured
via dotnet CLI. Since vcpkg hasn't yet implemented support for using
dotnet nuget directly, we need to install mono.
Changes:
- Added 'brew install mono' step to all macOS workflow jobs
- Reverted NuGet credential setup to use 'mono .config/nuget.exe'
- Reverted buildnative.sh to use mono for setting NuGet API keys
- Moved dotnet installation to after the build step (only needed for
dotnet tool restore, paket restore, and running tests)
This resolves the "Could not fetch mono" error from vcpkg while
maintaining functionality across all platforms.
---------
Co-authored-by: Claude <noreply@anthropic.com>1 parent 76ce083 commit 5b239cc
1 file changed
Lines changed: 12 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
| 16 | + | |
| 17 | + | |
20 | 18 | | |
21 | 19 | | |
22 | 20 | | |
| |||
35 | 33 | | |
36 | 34 | | |
37 | 35 | | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
38 | 40 | | |
39 | 41 | | |
40 | 42 | | |
| |||
52 | 54 | | |
53 | 55 | | |
54 | 56 | | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
| 57 | + | |
| 58 | + | |
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| |||
166 | 166 | | |
167 | 167 | | |
168 | 168 | | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
| 169 | + | |
| 170 | + | |
173 | 171 | | |
174 | 172 | | |
175 | 173 | | |
| |||
205 | 203 | | |
206 | 204 | | |
207 | 205 | | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
| 206 | + | |
| 207 | + | |
212 | 208 | | |
213 | 209 | | |
214 | 210 | | |
| |||
0 commit comments