-
Notifications
You must be signed in to change notification settings - Fork 1
/
GeneralUtilityMod.csproj
72 lines (64 loc) · 2.82 KB
/
GeneralUtilityMod.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
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<AssemblyName>GeneralUtilityMod</AssemblyName>
<Description>A mod for gamers</Description>
<Version>2.1.0</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="UnityEngine Input">
<HintPath>$(GameLibDir)/Unity.InputSystem.dll</HintPath>
</Reference>
<Reference Include="com.flanne.extensions">
<HintPath>$(GameLibDir)/com.flanne.extensions.dll</HintPath>
</Reference>
<Reference Include="Unity.TextMeshPro">
<HintPath>$(GameLibDir)/Unity.TextMeshPro.dll</HintPath>
</Reference>
<Reference Include="MTDUI">
<HintPath>$(BepInExDir)\plugins\MTDUI.dll</HintPath>
</Reference>
<Reference Include="UtillI">
<HintPath>$(BepInExDir)\plugins\UtillI.dll</HintPath>
</Reference>
</ItemGroup>
<!--Automatic deploy-->
<Target Name="Deploy" AfterTargets="Build">
<Copy SourceFiles="@(MainAssembly)" DestinationFolder="$(BepInExDir)\plugins" />
<Exec Command='cmd /K "$(GameDir)\MinutesTillDawn.exe"'/>
</Target>
<!--Automatic antideploy-->
<Target Name="AntiDeploy" AfterTargets="Clean">
<Delete Files="$(BepInExDir)\plugins\$(AssemblyName).dll" />
</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;CHANGELOG.md" DestinationFolder="$(MSBuildProjectDirectory)\release"/>
<ZipDirectory SourceDirectory="$(MSBuildProjectDirectory)\release" DestinationFile="$(MSBuildProjectDirectory)\$(AssemblyName)-v$(Version).zip" />
</Target>
</Project>