forked from Wacky-Mole/WackysDatabase
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathILRepack.targets
25 lines (25 loc) · 1.98 KB
/
ILRepack.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
<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Target Name="ILRepacker" AfterTargets="Build">
<ItemGroup>
<InputAssemblies Include="$(TargetPath)" />
<!-- Only use the line below if you choose to use the DLL and not the class. If you choose the DLL, be sure to reference and
tell it to copy to output directory-->
<!-- <InputAssemblies Include="$(OutputPath)\ItemManager.dll" />
<InputAssemblies Include="$(OutputPath)\PieceManager.dll" />
<InputAssemblies Include="$(OutputPath)\ServerSync.dll" /> -->
<InputAssemblies Include="$(OutputPath)\YamlDotNet.dll" />
<InputAssemblies Include="$(OutputPath)\AnimationSpeedManager.dll" />
</ItemGroup>
<ILRepack Parallel="true" DebugInfo="true" Internalize="true" InputAssemblies="@(InputAssemblies)" OutputFile="$(TargetPath)" TargetKind="SameAsPrimaryAssembly" LibraryPath="$(OutputPath)" />
</Target>
<Target Name="DEBUGAFTER" AfterTargets="ILRepack" Condition=" '$(Configuration)' == 'Debug'">
<!-- <Exec Command="copy /Y "$(TargetDir)$(AssemblyName).pdb" "C:\Program Files (x86)\Steam\steamapps\common\Valheim\BepInEx\plugins\$(AssemblyName).pdb"" /> -->
<Exec Command="copy /Y "$(TargetDir)$(AssemblyName).dll" "C:\Program Files (x86)\Steam\steamapps\common\Valheim\BepInEx\plugins\$(AssemblyName).dll"" />
<Exec Command="pdb2mdb.exe "$(TargetDir)$(AssemblyName).dll"" />
<Exec Command="copy /Y "$(TargetDir)$(AssemblyName).dll.mdb" "C:\Program Files (x86)\Steam\steamapps\common\Valheim\BepInEx\plugins\$(AssemblyName).dll.mdb"" />
</Target>
<Target Name="Release" AfterTargets="ILRepack" Condition=" '$(Configuration)' == 'Release'">
<Exec Command="copy /Y "$(TargetDir)$(AssemblyName).dll" "C:\Program Files (x86)\Steam\steamapps\common\Valheim\BepInEx\plugins\$(AssemblyName).dll"" />
</Target>
</Project>