- Convert all C# 7/8 features to C# 6 for mono mcs compatibility: - Tuple switch → if-else chain - Switch expressions → if-else blocks - Expression-bodied switch → regular switch statement - Verified compilation succeeds (only missing game DLL refs) - Added mod/ONIAgentBridge.csproj for dotnet SDK builds - Added scripts/build_mod.sh for mono-based builds - Auto-detects ONI installation path - References required game DLLs - Outputs to mod/bin/
33 lines
1.1 KiB
XML
33 lines
1.1 KiB
XML
<Project Sdk="Microsoft.NET.Sdk">
|
|
<PropertyGroup>
|
|
<TargetFramework>net471</TargetFramework>
|
|
<AssemblyName>ONIAgentBridge</AssemblyName>
|
|
<Version>1.0.0</Version>
|
|
<RootNamespace>ONIAgentBridge</RootNamespace>
|
|
<LangVersion>7</LangVersion>
|
|
</PropertyGroup>
|
|
<ItemGroup>
|
|
<PackageReference Include="Lib.Harmony" Version="2.2.2" />
|
|
<PackageReference Include="System.Text.Json" Version="6.0.0" />
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<!-- Point these to your ONI installation directory -->
|
|
<Reference Include="Assembly-CSharp">
|
|
<HintPath>$(ONI_Path)/Assembly-CSharp.dll</HintPath>
|
|
<Private>False</Private>
|
|
</Reference>
|
|
<Reference Include="Assembly-CSharp-firstpass">
|
|
<HintPath>$(ONI_Path)/Assembly-CSharp-firstpass.dll</HintPath>
|
|
<Private>False</Private>
|
|
</Reference>
|
|
<Reference Include="UnityEngine">
|
|
<HintPath>$(ONI_Path)/UnityEngine.dll</HintPath>
|
|
<Private>False</Private>
|
|
</Reference>
|
|
<Reference Include="UnityEngine.CoreModule">
|
|
<HintPath>$(ONI_Path)/UnityEngine.CoreModule.dll</HintPath>
|
|
<Private>False</Private>
|
|
</Reference>
|
|
</ItemGroup>
|
|
</Project>
|