-
Notifications
You must be signed in to change notification settings - Fork 1
/
TerrainPatcher.csproj
81 lines (81 loc) · 3.99 KB
/
TerrainPatcher.csproj
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
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<OutputType>Library</OutputType>
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
<LangVersion>8.0</LangVersion>
<Nullable>enable</Nullable>
<WarningLevel>4</WarningLevel>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<OutputPath>bin/$(Configuration)</OutputPath>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)' == 'Debug'">
<Optimize>false</Optimize>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)' == 'Release'">
<Optimize>true</Optimize>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<DocumentationFile>bin/Release/TerrainPatcher.xml</DocumentationFile>
</PropertyGroup>
<ItemGroup>
<Reference Include="System"/>
<Reference Include="BepInEx">
<HintPath>references/BepInEx.refasm.dll</HintPath>
</Reference>
<Reference Include="0Harmony">
<HintPath>references/0Harmony.refasm.dll</HintPath>
</Reference>
<Reference Include="Assembly-CSharp">
<HintPath>references/Assembly-CSharp-publicized.refasm.dll</HintPath>
</Reference>
<Reference Include="Assembly-CSharp-firstpass">
<HintPath>references/Assembly-CSharp-firstpass-publicized.refasm.dll</HintPath>
</Reference>
<Reference Include="UnityEngine">
<HintPath>references/UnityEngine.refasm.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.CoreModule">
<HintPath>references/UnityEngine.CoreModule.refasm.dll</HintPath>
</Reference>
<Reference Include="Nautilus">
<HintPath>references/Nautilus.refasm.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<Compile Include="src/Mod.cs"/>
<Compile Include="src/Terrain.cs"/>
<Compile Include="src/FileLoading.cs"/>
<Compile Include="src/Patches.cs"/>
<Compile Include="src/Options.cs"/>
</ItemGroup>
<Import Project="$(MSBuildBinPath)/Microsoft.CSharp.targets"/>
<Target Name="CopyToTargetDir" AfterTargets="Build">
<Copy SourceFiles="$(TargetPath);LICENSE;$(DocumentationFile)" DestinationFolder="target/$(Configuration)"/>
<Copy SourceFiles="dist-readme.md" DestinationFiles="target/$(Configuration)/README.md"/>
<WriteLinesToFile File="target/$(Configuration)/load-order.txt" Overwrite="True"/>
<MakeDir Directories="target/$(Configuration)/patches"/>
</Target>
<Target Name="CopyToModsDir" AfterTargets="CopyToTargetDir" Condition="'$(Configuration)' == 'Debug' And Exists('game-dirs.txt')">
<ReadLinesFromFile File="game-dirs.txt">
<Output TaskParameter="Lines" ItemName="GameDirs"/>
</ReadLinesFromFile>
<CreateItem Include="target/$(Configuration)/*">
<Output TaskParameter="Include" ItemName="TargetFiles"/>
</CreateItem>
<CreateProperty Value="BepInEx/plugins/$(ProjectName)">
<Output TaskParameter="Value" PropertyName="PluginDir"/>
</CreateProperty>
<Copy SourceFiles="@(TargetFiles)" DestinationFolder="%(GameDirs.Identity)/$(PluginDir)"/>
<MakeDir Directories="%(GameDirs.Identity)/$(PluginDir)/patches"/>
</Target>
<Target Name="ZipDist" AfterTargets="CopyToTargetDir" Condition="'$(Configuration)' == 'Release'">
<CreateItem Include="target/$(Configuration)/**/*">
<Output TaskParameter="Include" ItemName="TargetFiles"/>
</CreateItem>
<Copy SourceFiles="@(TargetFiles)" DestinationFolder="target/dist/$(ProjectName)"/>
<MakeDir Directories="target/dist/$(ProjectName)/patches"/>
<ZipDirectory SourceDirectory="target/dist" DestinationFile="target/dist.zip" Overwrite="True"/>
</Target>
</Project>