This repository was archived by the owner on Aug 23, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 31
Expand file tree
/
Copy pathDynamicMaps.csproj
More file actions
151 lines (139 loc) · 6.12 KB
/
DynamicMaps.csproj
File metadata and controls
151 lines (139 loc) · 6.12 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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net471</TargetFramework>
<AssemblyName>DynamicMaps</AssemblyName>
<Description>Dynamic in-game maps for SPT</Description>
<LangVersion>7.3</LangVersion>
<Nullable>disable</Nullable>
<Deterministic>true</Deterministic>
</PropertyGroup>
<PropertyGroup>
<TarkovDir Condition=" '$(TarkovDir)' == '' ">D:\Games\SPTarkov-3.9.0\</TarkovDir>
<TarkovDebugDir Condition=" '$(TarkovDebugDir)' == '' ">D:\Games\SPTarkov-3.9.0-Debug\</TarkovDebugDir>
<TarkovPluginsSPTDir>$(TarkovDir)BepInEx\plugins\spt\</TarkovPluginsSPTDir>
<TarkovManagedDir>$(TarkovDir)EscapeFromTarkov_Data\Managed\</TarkovManagedDir>
<TarkovBepInExCoreDir>$(TarkovDir)BepInEx\core\</TarkovBepInExCoreDir>
</PropertyGroup>
<ItemGroup>
<Reference Include="Assembly-CSharp">
<HintPath>$(TarkovManagedDir)Assembly-CSharp.dll</HintPath>
</Reference>
<Reference Include="Comfort">
<HintPath>$(TarkovManagedDir)Comfort.dll</HintPath>
</Reference>
<Reference Include="Comfort.Unity">
<HintPath>$(TarkovManagedDir)Comfort.Unity.dll</HintPath>
</Reference>
<Reference Include="DissonanceVoip">
<HintPath>$(TarkovManagedDir)DissonanceVoip.dll</HintPath>
</Reference>
<Reference Include="DOTween">
<HintPath>$(TarkovManagedDir)DOTween.dll</HintPath>
</Reference>
<Reference Include="DOTween.Modules">
<HintPath>$(TarkovManagedDir)DOTween.Modules.dll</HintPath>
</Reference>
<Reference Include="Newtonsoft.Json">
<HintPath>$(TarkovManagedDir)Newtonsoft.Json.dll</HintPath>
</Reference>
<Reference Include="Sirenix.Serialization">
<HintPath>$(TarkovManagedDir)Sirenix.Serialization.dll</HintPath>
</Reference>
<Reference Include="Unity.TextMeshPro">
<HintPath>$(TarkovManagedDir)Unity.TextMeshPro.dll</HintPath>
</Reference>
<Reference Include="UnityEngine">
<HintPath>$(TarkovManagedDir)UnityEngine.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.CoreModule">
<HintPath>$(TarkovManagedDir)UnityEngine.CoreModule.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.PhysicModule">
<HintPath>$(TarkovManagedDir)UnityEngine.PhysicsModule.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.ImageConversionModule">
<HintPath>$(TarkovManagedDir)UnityEngine.ImageConversionModule.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.InputLegacyModule">
<HintPath>$(TarkovManagedDir)UnityEngine.InputLegacyModule.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.IMGUIModule">
<HintPath>$(TarkovManagedDir)UnityEngine.IMGUIModule.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.TextRenderingModule">
<HintPath>$(TarkovManagedDir)UnityEngine.TextRenderingModule.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.UI">
<HintPath>$(TarkovManagedDir)UnityEngine.UI.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.UIModule">
<HintPath>$(TarkovManagedDir)UnityEngine.UIModule.dll</HintPath>
</Reference>
<Reference Include="0Harmony">
<HintPath>$(TarkovBepInExCoreDir)0Harmony.dll</HintPath>
</Reference>
<Reference Include="BepinEx">
<HintPath>$(TarkovBepInExCoreDir)BepInEx.dll</HintPath>
</Reference>
<Reference Include="BepinEx.Preloader">
<HintPath>$(TarkovBepInExCoreDir)BepInEx.Preloader.dll</HintPath>
</Reference>
<Reference Include="spt-reflection">
<HintPath>$(TarkovPluginsSPTDir)spt-reflection.dll</HintPath>
</Reference>
<Reference Include="spt-custom">
<HintPath>$(TarkovPluginsSPTDir)spt-custom.dll</HintPath>
</Reference>
</ItemGroup>
<!-- Gets the commit hash from git -->
<Target Name="SetSourceRevisionId" BeforeTargets="InitializeSourceControlInformation">
<Exec
Command="git describe --long --always --dirty --exclude=* --abbrev=8"
ConsoleToMSBuild="True"
IgnoreExitCode="False"
>
<Output PropertyName="SourceRevisionId" TaskParameter="ConsoleOutput"/>
</Exec>
</Target>
<!-- Gets the version property from the VERSION.txt file -->
<Target Name="PreBuild" BeforeTargets="PreBuildEvent">
<ItemGroup>
<VersionFile Include="VERSION.txt" />
<VersionCs Include="$(ProjectDir)Version.cs" />
<Compile Include="@(VersionCs)" Exclude="@(VersionCs)" /> <!-- Resolves double include -->
<FileWrites Include="@(VersionCs)" />
</ItemGroup>
<ReadLinesFromFile File="@(VersionFile)">
<Output TaskParameter="Lines" PropertyName="Version" />
</ReadLinesFromFile>
<!-- Write the version to Version.cs, kind of a hack to get version info into BepInEx -->
<WriteLinesToFile File="@(VersionCs)" Overwrite="true" Lines="// HACK: autogenerated file containing version info from VERSION.txt"/>
<WriteLinesToFile File="@(VersionCs)" Lines="namespace DynamicMaps{public static class BuildInfo {public const string Version = "$(Version)"%3B}}"/>
</Target>
<Target Name="PostBuild" AfterTargets="PostBuildEvent">
<ItemGroup>
<OutputDLL Include="$(ProjectDir)$(OutDir)$(TargetName).dll" />
<License Include="$(ProjectDir)LICENSE.txt" />
<Resources Include="$(ProjectDir)Resources\**\*.*" />
</ItemGroup>
<!-- Copies the output and resources to tarkov game folder -->
<Copy
SourceFiles="@(OutputDLL);@(Resources);@(License)"
DestinationFolder="$(TarkovDir)BepInEx\plugins\DynamicMaps\%(RecursiveDir)"
/>
<Copy
SourceFiles="@(OutputDLL);@(Resources);@(License)"
DestinationFolder="$(TarkovDebugDir)BepinEx\plugins\DynamicMaps\%(RecursiveDir)"
/>
<!-- Creates a release zip file -->
<RemoveDir Directories="$(ProjectDir)release" />
<Copy
SourceFiles="@(OutputDLL);@(Resources);@(License)"
DestinationFolder="$(ProjectDir)release\DynamicMaps\BepInEx\plugins\DynamicMaps\%(RecursiveDir)"
/>
<ZipDirectory
SourceDirectory="$(ProjectDir)release\DynamicMaps\"
DestinationFile="$(ProjectDir)release\DynamicMaps-$(Version)-$(SourceRevisionId).zip"
/>
</Target>
</Project>