This repository has been archived by the owner on May 9, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 51
Home
rainbowblood edited this page May 9, 2023
·
15 revisions
To use UniverseLib, add the NuGet Package(s) to your project.
UniverseLib has two NuGet packages:
- rainbowblood.UniverseLib.Mono for Mono builds
- rainbowblood.UniverseLib.IL2CPP for IL2CPP builds
If your mod only targets either IL2CPP or Mono (but not both), simply add a reference to the relevant NuGet package, the rest of this article is not applicable to you.
If you are building a mod which targets both Mono and IL2CPP, you will need separate build configurations for each target.
For dotnet SDK-style projects, simply put each PackageReference
in conditional ItemGroup
s. This example is assuming your build configurations are called IL2CPP
and Mono
, change that as needed.
<!-- IL2CPP NuGet -->
<ItemGroup Condition="'$(Configuration)'=='IL2CPP'">
<PackageReference Include="rainbowblood.UniverseLib.IL2CPP" Version="2.*" />
</ItemGroup>
<!-- Mono NuGet -->
<ItemGroup Condition="'$(Configuration)'=='Mono'">
<PackageReference Include="rainbowblood.UniverseLib.Mono" Version="2.*" />
</ItemGroup>