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:
gamer147
2026-06-07 08:03:01 -04:00
parent 25751462f4
commit 2a8c44a6d7
2 changed files with 9 additions and 2 deletions

View File

@@ -5,7 +5,9 @@
<!-- Match the engine: decompiled types are not nullable-clean and use explicit usings. -->
<Nullable>disable</Nullable>
<ImplicitUsings>disable</ImplicitUsings>
<LangVersion>latest</LangVersion>
<!-- Pinned to 12.0 (net8.0 default) to match SVSim.BattleEngine; see the rationale there
(the vendored decompiled engine breaks under C# 14's 'field' contextual keyword). -->
<LangVersion>12.0</LangVersion>
<IsPackable>false</IsPackable>
<IsTestProject>true</IsTestProject>
</PropertyGroup>