-
Notifications
You must be signed in to change notification settings - Fork 528
/
Copy pathbtd6.targets
89 lines (78 loc) · 5.77 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
<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>C:\Program Files (x86)\Steam\steamapps\common\BloonsTD6</BloonsTD6>
<Il2CppAssemblies>$(BloonsTD6)\MelonLoader\Il2CppAssemblies</Il2CppAssemblies>
<ManagedFolder>$(BloonsTD6)\MelonLoader\Managed</ManagedFolder>
<OutputFolder Condition="'$(OutputFolder)' == ''">Mods</OutputFolder>
</PropertyGroup>
<!--References to MelonLoader dependencies-->
<ItemGroup>
<Reference Include="$(BloonsTD6)\MelonLoader\net6\MelonLoader.dll" Private="False"/>
<Reference Include="$(BloonsTD6)\MelonLoader\net6\0Harmony.dll" Private="False"/>
</ItemGroup>
<!--References to BTD6 dependencies-->
<ItemGroup Condition="'$(JustMelonloader)' != 'true'">
<Reference Include="$(Il2CppAssemblies)\Assembly-CSharp.dll" Private="False"/>
<Reference Include="$(Il2CppAssemblies)\Il2Cppmscorlib.dll" Private="False"/>
<Reference Include="$(Il2CppAssemblies)\Il2CppSystem.Core.dll" Private="False"/>
<Reference Include="$(Il2CppAssemblies)\Il2CppSystem.dll" Private="False"/>
<Reference Include="$(Il2CppAssemblies)\Il2CppNinjaKiwi.Common.dll" Private="False"/>
<Reference Include="$(Il2CppAssemblies)\Il2CppNinjaKiwi.LiNK.dll" Private="False"/>
<Reference Include="$(Il2CppAssemblies)\Unity.InputSystem.dll" Private="False"/>
<Reference Include="$(Il2CppAssemblies)\Unity.ResourceManager.dll" Private="False"/>
<Reference Include="$(Il2CppAssemblies)\Unity.TextMeshPro.dll" Private="False"/>
<Reference Include="$(Il2CppAssemblies)\UnityEngine.AnimationModule.dll" Private="False"/>
<Reference Include="$(Il2CppAssemblies)\UnityEngine.AssetBundleModule.dll" Private="False"/>
<Reference Include="$(Il2CppAssemblies)\UnityEngine.AudioModule.dll" Private="False"/>
<Reference Include="$(Il2CppAssemblies)\UnityEngine.CoreModule.dll" Private="False"/>
<Reference Include="$(Il2CppAssemblies)\UnityEngine.dll" Private="False"/>
<Reference Include="$(Il2CppAssemblies)\UnityEngine.InputLegacyModule.dll" Private="False"/>
<Reference Include="$(Il2CppAssemblies)\UnityEngine.ImageConversionModule.dll" Private="False"/>
<Reference Include="$(Il2CppAssemblies)\UnityEngine.JSONSerializeModule.dll" Private="False"/>
<Reference Include="$(Il2CppAssemblies)\UnityEngine.TextRenderingModule.dll" Private="False"/>
<Reference Include="$(Il2CppAssemblies)\UnityEngine.UI.dll" Private="False"/>
<Reference Include="$(Il2CppAssemblies)\UnityEngine.UIElementsModule.dll" Private="False"/>
<Reference Include="$(Il2CppAssemblies)\UnityEngine.UIModule.dll" Private="False"/>
<!--<Reference Include="$(Il2CppAssemblies)\Newtonsoft.Json.dll"/>-->
<Reference Include="$(Il2CppAssemblies)\Unity.Addressables.dll"/>
<Reference Include="$(ManagedFolder)\UnityEngine.Il2CppAssetBundleManager.dll"/>
<Reference Include="$(ManagedFolder)\UnityEngine.Il2CppImageConversionManager.dll"/>
<Reference Include="$(ManagedFolder)\ValueTupleBridge.dll"/>
<Reference Include="$(BloonsTD6)\MelonLoader\net6\Il2CppInterop.Runtime.dll"/>
</ItemGroup>
<!--Mod Helper dependency-->
<ItemGroup Condition="$(DontReferenceModHelper) != 'true'">
<Reference Include="BloonsTD6 Mod Helper" Private="False" Condition="Exists('$(BloonsTD6)\Mods\Btd6ModHelper.dll')">
<HintPath>$(BloonsTD6)\Mods\Btd6ModHelper.dll</HintPath>
</Reference>
<Reference Include="BloonsTD6 Mod Helper" Private="False" 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"/>
<Copy SourceFiles="$(TargetDir)$(TargetName).dll" DestinationFiles="$(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>