goatcorp / Plogon

Build system for Dalamud Plugins
7 stars 13 forks source link

Support .NET 8 & latest C# lang features #53

Closed NotNite closed 7 months ago

NotNite commented 9 months ago
NotNite commented 7 months ago

With the .NET 8 release, plugins no longer build:

[12:02:26 INF] /work/repo/OfDungeonsDeep/OfDungeonsDeep.csproj : error NU1102: Unable to find package Microsoft.NETCore.App.Ref with version (= 7.0.17)
[12:02:26 INF] /work/repo/OfDungeonsDeep/OfDungeonsDeep.csproj : error NU1102:   - Found 1 version(s) in /packages [ Nearest version: 8.0.0 ]
[12:02:26 INF] /work/repo/OfDungeonsDeep/OfDungeonsDeep.csproj : error NU1102: Unable to find package Microsoft.AspNetCore.App.Ref with version (= 7.0.17)
[12:02:26 INF] /work/repo/OfDungeonsDeep/OfDungeonsDeep.csproj : error NU1102:   - Found 1 version(s) in /packages [ Nearest version: 8.0.0 ]
[12:02:26 INF]   Failed to restore /work/repo/OfDungeonsDeep/OfDungeonsDeep.csproj (in 1.59 sec).
[12:02:26 INF]
[12:02:26 INF] Build FAILED.

This can be fixed by fetching 7.0.17 in RUNTIME_PACKAGES, but I don't know why it's trying to fetch that one specifically.

NotNite commented 7 months ago

Turns out it's channel track overrides. When staging gets .NET 8, this should be fine to merge(?).