-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbtd6.targets
92 lines (82 loc) · 5.42 KB
/
btd6.targets
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
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<!--BloonsTD6 property gets automatically set correctly when this file is generated by the Mod Helper on startup-->
<BloonsTD6>D:\SteamLibrary\steamapps\common\BloonsTD6</BloonsTD6>
<ManagedFolder>$(BloonsTD6)\MelonLoader\Managed</ManagedFolder>
<OutputFolder Condition="'$(OutputFolder)' == ''">Mods</OutputFolder>
</PropertyGroup>
<!--References to MelonLoader dependencies-->
<ItemGroup Condition="'$(TargetFramework)' != 'net6.0'">
<Reference Include="$(BloonsTD6)\MelonLoader\MelonLoader.dll"/>
<Reference Include="$(BloonsTD6)\MelonLoader\0Harmony.dll"/>
</ItemGroup>
<ItemGroup Condition="'$(TargetFramework)' == 'net6.0'">
<Reference Include="$(BloonsTD6)\MelonLoader\net6\MelonLoader.dll"/>
<Reference Include="$(BloonsTD6)\MelonLoader\net6\0Harmony.dll"/>
</ItemGroup>
<!--References to BTD6 dependencies-->
<ItemGroup Condition="'$(JustMelonloader)' != 'true'">
<Reference Include="$(ManagedFolder)\Assembly-CSharp.dll"/>
<Reference Include="$(ManagedFolder)\Il2Cppmscorlib.dll"/>
<Reference Include="$(ManagedFolder)\Il2CppSystem.Core.dll"/>
<Reference Include="$(ManagedFolder)\Il2CppSystem.dll"/>
<Reference Include="$(ManagedFolder)\NinjaKiwi.Common.dll"/>
<Reference Include="$(ManagedFolder)\NinjaKiwi.LiNK.dll"/>
<Reference Include="$(ManagedFolder)\UnhollowerBaseLib.dll"/>
<Reference Include="$(ManagedFolder)\UnhollowerRuntimeLib.dll"/>
<Reference Include="$(ManagedFolder)\Unity.InputSystem.dll"/>
<Reference Include="$(ManagedFolder)\Unity.ResourceManager.dll"/>
<Reference Include="$(ManagedFolder)\Unity.TextMeshPro.dll"/>
<Reference Include="$(ManagedFolder)\UnityEngine.AnimationModule.dll"/>
<Reference Include="$(ManagedFolder)\UnityEngine.AssetBundleModule.dll"/>
<Reference Include="$(ManagedFolder)\UnityEngine.AudioModule.dll"/>
<Reference Include="$(ManagedFolder)\UnityEngine.CoreModule.dll"/>
<Reference Include="$(ManagedFolder)\UnityEngine.dll"/>
<Reference Include="$(ManagedFolder)\UnityEngine.Il2CppAssetBundleManager.dll"/>
<Reference Include="$(ManagedFolder)\UnityEngine.InputLegacyModule.dll"/>
<Reference Include="$(ManagedFolder)\UnityEngine.Il2CppImageConversionManager.dll"/>
<Reference Include="$(ManagedFolder)\UnityEngine.ImageConversionModule.dll"/>
<Reference Include="$(ManagedFolder)\UnityEngine.JSONSerializeModule.dll"/>
<Reference Include="$(ManagedFolder)\UnityEngine.TextRenderingModule.dll"/>
<Reference Include="$(ManagedFolder)\UnityEngine.UI.dll"/>
<Reference Include="$(ManagedFolder)\UnityEngine.UIElementsModule.dll"/>
<Reference Include="$(ManagedFolder)\UnityEngine.UIModule.dll"/>
<Reference Include="$(ManagedFolder)\Newtonsoft.Json.dll"/>
<Reference Include="$(ManagedFolder)\Unity.Addressables.dll"/>
<Reference Include="$(ManagedFolder)\Il2CppNewtonsoft.Json.dll"/>
</ItemGroup>
<!--Mod Helper dependency-->
<ItemGroup Condition="$(DontReferenceModHelper) != 'true'">
<Reference Include="BloonsTD6 Mod Helper" Condition="Exists('$(BloonsTD6)\Mods\Btd6ModHelper.dll')">
<HintPath>$(BloonsTD6)\Mods\Btd6ModHelper.dll</HintPath>
</Reference>
<Reference Include="BloonsTD6 Mod Helper" Condition="Exists('$(BloonsTD6)\Mods\BloonsTD6 Mod Helper.dll')">
<HintPath>$(BloonsTD6)\Mods\BloonsTD6 Mod Helper.dll</HintPath>
</Reference>
</ItemGroup>
<!--Automatic embeds-->
<ItemGroup Condition="'$(AutoEmbed)' != 'false'">
<EmbeddedResource Include="**/*.png"/>
<EmbeddedResource Include="**/*.jpg"/>
<EmbeddedResource Include="**/*.bundle"/>
<EmbeddedResource Include="**/*.bytes"/>
<EmbeddedResource Condition="Exists('ModHelperData.json')" Include="ModHelperData.json"/>
<EmbeddedResource Condition="Exists('ModHelperData.txt')" Include="ModHelperData.txt"/>
</ItemGroup>
<!--Post build events to copy dll/xml to mods folder. Works even if game is currently running-->
<Target Name="MoveDllToMods" AfterTargets="Build" Condition="Exists('$(TargetDir)$(TargetName).dll')">
<Message Text="Copying $(ProjectName).dll to $(OutputFolder) Folder..." Importance="High"/>
<Delete Condition="Exists('$(BloonsTD6)\$(OutputFolder)\BloonsTD6 Mod Helper\Old Mods\$(ProjectName).dll')"
Files="$(BloonsTD6)\$(OutputFolder)\BloonsTD6 Mod Helper\Old Mods\$(ProjectName).dll"/>
<Move Condition="Exists('$(BloonsTD6)\$(OutputFolder)\$(ProjectName).dll')"
SourceFiles="$(BloonsTD6)\$(OutputFolder)\$(ProjectName).dll"
DestinationFiles="$(BloonsTD6)\$(OutputFolder)\BloonsTD6 Mod Helper\Old Mods\$(ProjectName).dll"/>
<Copy SourceFiles="$(TargetDir)$(TargetName).dll"
DestinationFiles="$(BloonsTD6)\$(OutputFolder)\$(ProjectName).dll"/>
</Target>
<Target Name="MoveXmlToMods" AfterTargets="Build" Condition="Exists('$(TargetDir)$(ProjectName).xml')">
<Message Text="Copying $(ProjectName).xml to $(OutputFolder) Folder..." Importance="High"/>
<Copy SourceFiles="$(TargetDir)$(ProjectName).xml"
DestinationFiles="$(BloonsTD6)\$(OutputFolder)\$(ProjectName).xml"/>
</Target>
</Project>