build(battleengine): pin LangVersion 12.0 (was 'latest') so C# 14's 'field' keyword doesn't break the decompiled engine under newer SDKs
This commit is contained in:
@@ -5,7 +5,12 @@
|
||||
<!-- Decompiled code is not nullable-clean and uses explicit usings. -->
|
||||
<Nullable>disable</Nullable>
|
||||
<ImplicitUsings>disable</ImplicitUsings>
|
||||
<LangVersion>latest</LangVersion>
|
||||
<!-- Pinned to 12.0 (net8.0 default), NOT 'latest': the vendored decompiled engine uses identifiers
|
||||
that later C# versions promoted to contextual keywords (e.g. 'field' is a string member used inside
|
||||
a property accessor in EventDelegate.cs). Under 'latest' + a newer SDK (Rider's .NET 10 -> C# 14)
|
||||
'field' rebinds to the synthesized backing field, breaking the build (CS1503). Pinning keeps the
|
||||
decompiled source compiling as written regardless of the installed SDK. -->
|
||||
<LangVersion>12.0</LangVersion>
|
||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||
<!-- Decompiled code triggers many benign warnings; do not fail on them. -->
|
||||
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
|
||||
|
||||
Reference in New Issue
Block a user