Skip to content
This repository was archived by the owner on May 9, 2023. It is now read-only.

Commit 1dfcdb2

Browse files
committed
Update build instructions, remove unnecessary references from CS project file
1 parent 0025c83 commit 1dfcdb2

File tree

2 files changed

+8
-13
lines changed

2 files changed

+8
-13
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,10 @@ You can access the settings via the "Options" page of the main menu, or directly
9292

9393
If you'd like to build this yourself, you will need to have installed BepInEx and/or MelonLoader for at least one Unity game. If you want to build all 4 versions, you will need at least one IL2CPP and one Mono game, with BepInEx and MelonLoader installed for both.
9494

95-
1. Install MelonLoader or BepInEx for your game.
96-
2. Open the `src\Explorer.csproj` file in a text editor.
97-
3. Set the relevant `GameFolder` values for the versions you want to build, eg. set `MLCppGameFolder` if you want to build for a MelonLoader IL2CPP game.
98-
4. Open the `src\Explorer.sln` project.
95+
1. Install BepInEx or MelonLoader for your game.
96+
2. Open the `src\UnityExplorer.csproj` file in a text editor.
97+
3. For IL2CPP builds, make sure you set `BIECppGameFolder` (for BepInEx) and/or `MLCppGameFolder` (for MelonLoader) so the project can locate the necessary references.
98+
4. Open the `src\UnityExplorer.sln` project.
9999
5. Select `Solution 'UnityExplorer' (1 of 1 project)` in the Solution Explorer panel, and set the <b>Active config</b> property to the version you want to build, then build it.
100100
5. The DLLs are built to the `Release\` folder in the root of the repository.
101101
6. If ILRepack fails or is missing, use the NuGet package manager to re-install `ILRepack.Lib.MSBuild.Task`, then re-build.

src/UnityExplorer.csproj

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,18 +24,13 @@
2424
<PlatformTarget>x64</PlatformTarget>
2525
<Prefer32Bit>false</Prefer32Bit>
2626
<RootNamespace>UnityExplorer</RootNamespace>
27+
2728
<!-- Set this to the BepInEx Il2Cpp Game folder, without the ending '\' character. -->
2829
<BIECppGameFolder>D:\source\Unity Projects\Test\_BUILD</BIECppGameFolder>
29-
<!-- Set this to the BepInEx Mono Game folder, without the ending '\' character. -->
30-
<BIEMonoGameFolder>D:\source\Unity Projects\Test\_BUILD_MONO</BIEMonoGameFolder>
31-
<!-- Set this to the BepInEx Mono Managed folder, without the ending '\' character. -->
32-
<BIEMonoManagedFolder>D:\source\Unity Projects\Test\_BUILD_MONO\Test_Data\Managed</BIEMonoManagedFolder>
30+
3331
<!-- Set this to the MelonLoader Il2Cpp Game folder, without the ending '\' character. -->
3432
<MLCppGameFolder>D:\source\Unity Projects\Test\_BUILD</MLCppGameFolder>
35-
<!-- Set this to the MelonLoader Mono Game folder, without the ending '\' character. -->
36-
<MLMonoGameFolder>D:\source\Unity Projects\Test\_BUILD_MONO</MLMonoGameFolder>
37-
<!-- Set this to the MelonLoader Mono Managed folder, without the ending '\' character. -->
38-
<MLMonoManagedFolder>D:\source\Unity Projects\Test\_BUILD_MONO\Test_Data\Managed</MLMonoManagedFolder>
33+
3934
<NuGetPackageImportStamp>
4035
</NuGetPackageImportStamp>
4136
</PropertyGroup>
@@ -103,7 +98,7 @@
10398
<!-- MelonLoader Mono refs -->
10499
<ItemGroup Condition="'$(IsMelonLoader)|$(IsCpp)'=='true|false'">
105100
<Reference Include="MelonLoader.ModHandler">
106-
<HintPath>$(MLMonoGameFolder)\MelonLoader\MelonLoader.ModHandler.dll</HintPath>
101+
<HintPath>..\lib\MelonLoader.ModHandler.dll</HintPath>
107102
<Private>False</Private>
108103
</Reference>
109104
</ItemGroup>

0 commit comments

Comments
 (0)