-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDirectory.Build.targets
executable file
·33 lines (33 loc) · 1.06 KB
/
Directory.Build.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
<Project>
<Target
Name="ClearGameFolderCopyLocal"
AfterTargets="ResolveAssemblyReferences">
<ItemGroup>
<ReferenceCopyLocalPaths Remove="$(GameFolder)\*" />
</ItemGroup>
</Target>
<Target Name="CopyModToInstallFolder" AfterTargets="ILRepack">
<PropertyGroup>
<InstallFolder>$(ModFolder)\$(ProjectName)</InstallFolder>
<ModInfo>
supportedContent: $(SupportedContent)
minimumSupportedBuild: $(MinimumSupportedBuild)
version: $(Version)
APIVersion: $(APIVersion)
</ModInfo>
<ModYAML>
title: "$(Title)"
description: "$(Description)"
staticID: miZyind.$(AssemblyName)
</ModYAML>
</PropertyGroup>
<Copy
SourceFiles="$(TargetDir)\$(AssemblyName).dll"
DestinationFolder="$(InstallFolder)" />
<Copy
SourceFiles="$(ProjectDir)\Assets\preview.png"
DestinationFolder="$(InstallFolder)" />
<WriteLinesToFile File="$(InstallFolder)\mod_info.yaml" Overwrite="true" Lines="$(ModInfo)"/>
<WriteLinesToFile File="$(InstallFolder)\mod.yaml" Overwrite="true" Lines="$(ModYAML)"/>
</Target>
</Project>