-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDependencies.props
More file actions
42 lines (36 loc) · 1.64 KB
/
Dependencies.props
File metadata and controls
42 lines (36 loc) · 1.64 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
<Project InitialTargets="ValidateGamePath">
<Import Project="$(MSBuildThisFileDirectory)\GameFolder.props" Condition="Exists('$(MSBuildThisFileDirectory)\GameFolder.props')" />
<Target Name="ValidateGamePath">
<Error Text="The GameFolder property must be set to the GTFO game folder." Condition="'$(GameFolder)' == '' or !Exists('$(GameFolder)')" />
</Target>
<PropertyGroup>
<BIELibsFolder>$(GameFolder)\BepInEx\core</BIELibsFolder>
<CorLibsFolder>$(GameFolder)\dotnet\corlib</CorLibsFolder>
<InteropLibsFolder>$(GameFolder)\BepInEx\interop</InteropLibsFolder>
<TargetFramework>net6.0</TargetFramework>
<PluginsFolder>$(GameFolder)\BepInEx\plugins</PluginsFolder>
<Platforms>x64</Platforms>
</PropertyGroup>
<!-- BepInEx libs -->
<ItemGroup>
<Reference Include="$(BIELibsFolder)\BepInEx.*.dll" Private="false" />
<Reference Include="$(BIELibsFolder)\0Harmony.dll" Private="false" />
<Reference Include="$(BIELibsFolder)\MonoMod.RuntimeDetour.dll" Private="false" />
<Reference Include="$(BIELibsFolder)\Il2CppInterop.*.dll" Private="false" />
</ItemGroup>
<!-- CorLibs -->
<ItemGroup>
<Reference Include="$(CorLibsFolder)\*.dll" Private="false" />
<Reference Include="$(CorLibsFolder)\..\System.Private.CoreLib.dll" Private="false" />
</ItemGroup>
<!-- Interop -->
<ItemGroup>
<Reference Include="$(InteropLibsFolder)/*.dll" Private="false" />
<Reference Remove="$(InteropLibsFolder)/netstandard.dll" />
<Reference Remove="$(InteropLibsFolder)/Newtonsoft.Json.dll" />
</ItemGroup>
<!-- Other Dependencies -->
<ItemGroup>
<Reference Include="$(PluginsFolder)/GTFO-API.dll" Private="false" />
</ItemGroup>
</Project>