35 lines
1.4 KiB
XML
35 lines
1.4 KiB
XML
<Project Sdk="Microsoft.NET.Sdk">
|
|
<PropertyGroup>
|
|
<TargetFramework>net8.0</TargetFramework>
|
|
<ImplicitUsings>enable</ImplicitUsings>
|
|
<Nullable>enable</Nullable>
|
|
<AssemblySearchPaths>$(AssemblySearchPaths);$(GDWeavePath)/core</AssemblySearchPaths>
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup>
|
|
<Reference Include="GDWeave" Private="false"/>
|
|
<Reference Include="Serilog" Private="false"/>
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<None Include="manifest.json" CopyToOutputDirectory="PreserveNewest"/>
|
|
</ItemGroup>
|
|
|
|
<Target Name="PostBuild" AfterTargets="PostBuildEvent" Condition="'$(GDWeavePath)' != ''">
|
|
<PropertyGroup>
|
|
<IsWindows Condition="'$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::Windows)))'">true</IsWindows>
|
|
<IsLinux Condition="'$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::Linux)))'">true</IsLinux>
|
|
</PropertyGroup>
|
|
|
|
<Exec
|
|
Command="xcopy /Y /I "$(TargetDir)" "$(GDWeavePath)/mods/$(AssemblyName)""
|
|
Condition="'$(IsWindows)' == 'true'"
|
|
/>
|
|
|
|
<Exec
|
|
Command="cp -r $(TargetDir) '$(GDWeavePath)/mods/$(AssemblyName)/'"
|
|
Condition="'$(IsLinux)' == 'true'"
|
|
/>
|
|
</Target>
|
|
</Project>
|