-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathModule.Build.user.props.template
28 lines (24 loc) · 1.09 KB
/
Module.Build.user.props.template
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
<Project>
<PropertyGroup>
<!--
Modules directory is under your system's local data folder
Linux: ~/.config/Pawsy/Modules
Windows %appdata%/Pawsy/Modules (?)
- This should be under AppdataRoaming
see: https://learn.microsoft.com/en-us/dotnet/api/system.environment.specialfolder?view=net-8.0
Copy this file to Module.Build.user.props and modify the ModulesDir
-->
<ModulesDir>full/path/to/modules/directory</ModulesDir>
<FinalAssemblyName>$(AssemblyName).dll</FinalAssemblyName>
</PropertyGroup>
<Target Name="PostBuildCopy" AfterTargets="Build">
<!-- Ensure the Modules directory exists -->
<MakeDir Directories="$(ModulesDir)" />
<Message Text="Deploy -> $(FinalAssemblyName)" Importance="High" />
<!-- Copy the final assembly to the Modules directory -->
<Copy
SourceFiles="$(OutputPath)$(FinalAssemblyName)"
DestinationFolder="$(ModulesDir)"
Condition="Exists('$(OutputPath)$(FinalAssemblyName)')" />
</Target>
</Project>