-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathILRepack.targets
28 lines (28 loc) · 1.54 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
26
27
28
<?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)" />
<InputAssemblies Include="$(OutputPath)\ServerSync.dll" />
</ItemGroup>
<ILRepack Parallel="true" DebugInfo="true" Internalize="true" InputAssemblies="@(InputAssemblies)" OutputFile="$(TargetPath)" TargetKind="SameAsPrimaryAssembly" LibraryPath="$(OutputPath)" />
</Target>
<Target Name="CopyDLLPackage" AfterTargets="ILRepacker">
<Copy SourceFiles="$(TargetPath)" DestinationFolder="$(ProjectDir)package\thunderstore\$(SolutionName)\" />
<Message Text="Copied to thunderstore package folder." Importance="High" />
</Target>
<Target Name="ZipOutputPath" AfterTargets="CopyDLLPackage">
<ZipDirectory
SourceDirectory="$(ProjectDir)package\thunderstore\$(SolutionName)\"
DestinationFile="$(ProjectDir)package\thunderstore\$(SolutionName).zip"
Overwrite="true"/>
</Target>
<Target Name="CopyDLLPlugins" AfterTargets="ILRepacker">
<Copy SourceFiles="$(TargetPath)" DestinationFolder="F:\Steam\steamapps\common\Valheim\BepInEx\plugins\" />
<Message Text="Copied to plugins folder." Importance="High" />
</Target>
<Target Name="CopyR2Plugins" AfterTargets="ILRepacker">
<Copy SourceFiles="$(TargetPath)" DestinationFolder="C:\Users\Suden\AppData\Roaming\r2modmanPlus-local\Valheim\profiles\beta\BepInEx\plugins\shudnal-$(SolutionName)\" />
<Message Text="Copied to r2 folder." Importance="High" />
</Target>
</Project>