-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDebugUtilityMod.csproj
59 lines (50 loc) · 2.27 KB
/
DebugUtilityMod.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
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<AssemblyName>DebugUtilityMod</AssemblyName>
<Description>A mod for modders</Description>
<Version>2.0.2</Version>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<LangVersion>latest</LangVersion>
</PropertyGroup>
<PropertyGroup Label="Variables">
<!-- SET BELOW TO GAME BASE DIRECTORY-->
<GameDir>C:\Program Files (x86)\Steam\steamapps\common\20MinuteTillDawn</GameDir>
<BepInExDir>$(GameDir)\BepInEx</BepInExDir>
<GameLibDir>$(GameDir)\MinutesTillDawn_Data\Managed</GameLibDir>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="BepInEx.Analyzers" Version="1.*" PrivateAssets="all" />
<PackageReference Include="BepInEx.Core" Version="5.*" />
<PackageReference Include="BepInEx.PluginInfoProps" Version="1.*" />
<PackageReference Include="UnityEngine.Modules" Version="2019.4.40" IncludeAssets="compile" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFramework.TrimEnd(`0123456789`))' == 'net'">
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.2" PrivateAssets="all" />
</ItemGroup>
<ItemGroup>
<Reference Include="Assembly-CSharp">
<HintPath>$(GameLibDir)/Assembly-CSharp.dll</HintPath>
</Reference>
<Reference Include="UnityEngine UI">
<HintPath>$(GameLibDir)/UnityEngine.UI.dll</HintPath>
</Reference>
<Reference Include="Unity.TextMeshPro">
<HintPath>$(GameLibDir)\Unity.TextMeshPro.dll</HintPath>
</Reference>
<Reference Include="MTDUI">
<HintPath>$(BepInExDir)\plugins\MTDUI.dll</HintPath>
</Reference>
</ItemGroup>
<!--Automatic deploy-->
<Target Name="Deploy" AfterTargets="Build">
<Copy SourceFiles="@(MainAssembly)" DestinationFolder="$(BepInExDir)\plugins" />
</Target>
<!--Release packaging-->
<Target Name="Package" AfterTargets="Publish">
<MakeDir Directories="$(MSBuildProjectDirectory)\release" />
<Copy SourceFiles="@(MainAssembly)" DestinationFolder="$(MSBuildProjectDirectory)\release" />
<Copy SourceFiles="README.md;icon.png;manifest.json" DestinationFolder="$(MSBuildProjectDirectory)\release"/>
<ZipDirectory SourceDirectory="$(MSBuildProjectDirectory)\release" DestinationFile="$(MSBuildProjectDirectory)\$(AssemblyName)-v$(Version).zip" />
</Target>
</Project>