Commit bb7bf21
Pin NativeAOT ILCompiler to 10.0.10 to match the installed .NET 10 runtime (#137)
The .NET SDK 10.0.302 still defaults the NativeAOT compiler to 10.0.9, but the
self-contained runtime pack now resolves to 10.0.10 (a newer .NET 10 servicing
runtime). AOT publish then fails with "Overriding System.Private.CoreLib.dll with
a newer version is not supported" for every AOT project (Elevate, Cli, WinUI).
Align the compiler up to the runtime by pinning Microsoft.DotNet.ILCompiler to
10.0.10 in the three AOT projects. This only affects `dotnet publish` (release
builds); CI does `dotnet build`/`dotnet test`, which never invokes ILC, so the
reference is inert there. Bump alongside the runtime; remove once the SDK default
catches up.
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>1 parent 09aa074 commit bb7bf21
3 files changed
Lines changed: 17 additions & 0 deletions
File tree
- HostsFileEditor.Cli
- HostsFileEditor.Elevate
- HostsFileEditor.WinUI
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
21 | 26 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
21 | 29 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
64 | 68 | | |
65 | 69 | | |
66 | 70 | | |
| |||
0 commit comments