-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFMF.HexLabelMod.csproj
More file actions
112 lines (108 loc) · 5.55 KB
/
FMF.HexLabelMod.csproj
File metadata and controls
112 lines (108 loc) · 5.55 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<LangVersion>latest</LangVersion>
<Nullable>disable</Nullable>
<ImplicitUsings>disable</ImplicitUsings>
<PlatformTarget>x64</PlatformTarget>
<AssemblyName>FMF.HexLabelMod</AssemblyName>
<RootNamespace>FMF.HexLabelMod</RootNamespace>
<RepositoryRoot>$(MSBuildThisFileDirectory)..\</RepositoryRoot>
<DefaultSteamGamePath>Program Files (x86)\Steam\steamapps\common\Data Center</DefaultSteamGamePath>
<FindDataCenterPathScript>$(RepositoryRoot)gregCore\scripts\Find-DataCenterPath.ps1</FindDataCenterPathScript>
<NoWarn>CS1701;CS1702</NoWarn>
<MSBuildWarningsAsMessages>MSB3243;MSB3277</MSBuildWarningsAsMessages>
<DefaultItemExcludes>$(DefaultItemExcludes);FMF.HexLabelMod.Tests\**\*</DefaultItemExcludes>
</PropertyGroup>
<Target Name="DetectGameDir" BeforeTargets="ResolveAssemblyReferences">
<PropertyGroup>
<RepoMelonLoaderDir>$(RepositoryRoot)gregCore\lib\references\MelonLoader</RepoMelonLoaderDir>
</PropertyGroup>
<PropertyGroup Condition="'$(MelonLoaderDir)' == '' and Exists('$(RepoMelonLoaderDir)\net6\MelonLoader.dll')">
<MelonLoaderDir>$(RepoMelonLoaderDir)</MelonLoaderDir>
</PropertyGroup>
<PropertyGroup>
<GameDir Condition="'$(GameDir)' == '' and '$(DATA_CENTER_GAME_DIR)' != ''">$(DATA_CENTER_GAME_DIR)</GameDir>
</PropertyGroup>
<Exec
Condition="'$(MelonLoaderDir)' == '' and '$(GameDir)' == '' and Exists('$(FindDataCenterPathScript)')"
Command="pwsh -NoProfile -ExecutionPolicy Bypass -File "$(FindDataCenterPathScript)""
ConsoleToMsBuild="true"
IgnoreExitCode="true">
<Output TaskParameter="ConsoleOutput" ItemName="_DetectedGameDirOutput" />
</Exec>
<PropertyGroup>
<GameDirAutoDetected Condition="'$(GameDir)' == '' and '@(_DetectedGameDirOutput)' != ''">@(_DetectedGameDirOutput->'%(Identity)')</GameDirAutoDetected>
<GameDir Condition="'$(GameDir)' == '' and '$(GameDirAutoDetected)' != ''">$(GameDirAutoDetected)</GameDir>
<GameDir Condition="'$(GameDir)' == ''">C:\$(DefaultSteamGamePath)</GameDir>
<MelonLoaderDir Condition="'$(MelonLoaderDir)' == ''">$(GameDir)\MelonLoader</MelonLoaderDir>
</PropertyGroup>
</Target>
<Target Name="ValidateLocalGameReferences" DependsOnTargets="DetectGameDir" BeforeTargets="ResolveAssemblyReferences" Condition="'$(CI)' != 'true'">
<Error
Condition="!Exists('$(MelonLoaderDir)\net6\MelonLoader.dll')"
Text="Missing MelonLoader net6 assemblies at '$(MelonLoaderDir)\net6'. Set /p:GameDir=... or DATA_CENTER_GAME_DIR." />
<Error
Condition="!Exists('$(MelonLoaderDir)\Il2CppAssemblies\Assembly-CSharp.dll')"
Text="Missing IL2CPP assemblies at '$(MelonLoaderDir)\Il2CppAssemblies'. Start the game once after installing MelonLoader so interop assemblies are generated." />
</Target>
<Target Name="AddGameReferences" DependsOnTargets="DetectGameDir" BeforeTargets="ResolveAssemblyReferences">
<ItemGroup Condition="Exists('$(MelonLoaderDir)\net6\MelonLoader.dll')">
<Reference Include="MelonLoader">
<HintPath>$(MelonLoaderDir)\net6\MelonLoader.dll</HintPath>
<Private>false</Private>
</Reference>
<Reference Include="0Harmony">
<HintPath>$(MelonLoaderDir)\net6\0Harmony.dll</HintPath>
<Private>false</Private>
</Reference>
<Reference Include="Assembly-CSharp">
<HintPath>$(MelonLoaderDir)\Il2CppAssemblies\Assembly-CSharp.dll</HintPath>
<Private>false</Private>
</Reference>
<Reference Include="Il2CppInterop.Runtime">
<HintPath>$(MelonLoaderDir)\net6\Il2CppInterop.Runtime.dll</HintPath>
<Private>false</Private>
</Reference>
<Reference Include="Il2Cppmscorlib">
<HintPath>$(MelonLoaderDir)\Il2CppAssemblies\Il2Cppmscorlib.dll</HintPath>
<Private>false</Private>
</Reference>
<Reference Include="Unity.InputSystem">
<HintPath>$(MelonLoaderDir)\Il2CppAssemblies\Unity.InputSystem.dll</HintPath>
<Private>false</Private>
</Reference>
<Reference Include="UnityEngine.CoreModule">
<HintPath>$(MelonLoaderDir)\Il2CppAssemblies\UnityEngine.CoreModule.dll</HintPath>
<Private>false</Private>
</Reference>
<Reference Include="UnityEngine.PhysicsModule">
<HintPath>$(MelonLoaderDir)\Il2CppAssemblies\UnityEngine.PhysicsModule.dll</HintPath>
<Private>false</Private>
</Reference>
<Reference Include="UnityEngine.IMGUIModule">
<HintPath>$(MelonLoaderDir)\Il2CppAssemblies\UnityEngine.IMGUIModule.dll</HintPath>
<Private>false</Private>
</Reference>
<Reference Include="UnityEngine.UI">
<HintPath>$(MelonLoaderDir)\Il2CppAssemblies\UnityEngine.UI.dll</HintPath>
<Private>false</Private>
</Reference>
<Reference Include="UnityEngine.UIModule">
<HintPath>$(MelonLoaderDir)\Il2CppAssemblies\UnityEngine.UIModule.dll</HintPath>
<Private>false</Private>
</Reference>
<Reference Include="UnityEngine.TextRenderingModule">
<HintPath>$(MelonLoaderDir)\Il2CppAssemblies\UnityEngine.TextRenderingModule.dll</HintPath>
<Private>false</Private>
</Reference>
<Reference Include="Unity.TextMeshPro">
<HintPath>$(MelonLoaderDir)\Il2CppAssemblies\Unity.TextMeshPro.dll</HintPath>
<Private>false</Private>
</Reference>
</ItemGroup>
</Target>
<ItemGroup>
<ProjectReference Include="$(RepositoryRoot)gregCore\framework\FrikaMF.csproj" />
</ItemGroup>
</Project>