-
Notifications
You must be signed in to change notification settings - Fork 8
/
GrimoraMod.csproj
75 lines (60 loc) · 3.11 KB
/
GrimoraMod.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
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>disable</Nullable>
<IsPackable>false</IsPackable>
<TargetFramework>net472</TargetFramework>
<AssemblyName>GrimoraMod</AssemblyName>
<RootNamespace>GrimoraMod</RootNamespace>
<LangVersion>10</LangVersion>
<GenerateResourceUsePreserializedResources>true</GenerateResourceUsePreserializedResources>
<Configurations>Debug;Release;HotReload;Thunderstore</Configurations>
<Platforms>AnyCPU</Platforms>
<!-- <ManagedFolder>C:\Program Files (x86)\GOG Galaxy\Games\Inscryption\Inscryption_Data\Managed</ManagedFolder>-->
</PropertyGroup>
<ItemGroup>
<Compile Remove="Assets\**" />
<EmbeddedResource Remove="Assets\**" />
<None Remove="Assets\**" />
</ItemGroup>
<!-- BepInEx dependencies -->
<ItemGroup>
<PackageReference Include="BepInEx.Analyzers" Version="1.0.8" PrivateAssets="all" IncludeAssets="all" />
<PackageReference Include="BepInEx.Core" Version="5.4.19" />
<PackageReference Include="Inscryption.GameLibs" Version="1.9.0-r.0" />
<PackageReference Include="UnityEngine.Modules" Version="2019.4.24" IncludeAssets="compile" />
</ItemGroup>
<ItemGroup>
<!-- <Reference Include="$(ManagedFolder)/UnityEngine.*.dll" />-->
<Reference Include="Infiniscryption.Achievements">
<HintPath>lib\Infiniscryption.Achievements.dll</HintPath>
</Reference>
<Reference Include="InscryptionAPI">
<HintPath>lib\InscryptionAPI.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="InscryptionCommunityPatch">
<HintPath>lib\InscryptionCommunityPatch.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<None Remove="DataFiles\grimora_kopiebunde" />
</ItemGroup>
<ItemGroup>
<Folder Include="Core\NewFolder\" />
<Folder Include="Core\Opponents\Boss\special\" />
</ItemGroup>
<Target Name="CopyDLLsToScriptsFolder" AfterTargets="Build" Condition="$(Configuration) == 'HotReload' ">
<Copy Condition="Exists('C:\inscryption-mods\')" SourceFiles="$(TargetDir)$(ProjectName).dll" DestinationFolder="C:\inscryption-mods\Inscryption\profiles\Default\BepInEx\scripts\" />
</Target>
<Target Name="CopyDLLs" AfterTargets="Build" Condition="$(Configuration) == 'Debug' or $(Configuration) == 'Release' ">
<Message Text="Executing CopyDLLs task" Importance="High" />
<Copy Condition="Exists('C:\inscryption-mods\')" SourceFiles="$(TargetDir)$(ProjectName).dll" DestinationFolder="C:\inscryption-mods\Inscryption\profiles\Default\BepInEx\plugins\Arackulele-GrimoraMod" />
<Copy Condition="Exists('C:\Program Files (x86)\Steam\steamapps\common\Inscryption\')" SourceFiles="$(TargetDir)$(ProjectName).dll" DestinationFolder="C:\Program Files (x86)\Steam\steamapps\common\Inscryption\BepInEx\plugins\Arackulele-GrimoraMod" />
<Message Text="Copied build files" Importance="High" />
</Target>
<Target Name="ZipFiles" AfterTargets="Build" Condition="$(Configuration) == 'Thunderstore' ">
<Exec Command="7z u -tzip GrimoraMod.zip .\DataFiles .\README.md .\manifest.json .\icon.png $(TargetDir)$(ProjectName).dll" />
</Target>
</Project>