weave qsb nh too

This commit is contained in:
JohnCorby 2024-05-05 12:08:28 -07:00
parent 2abd7fac6d
commit 9cf92937f2
2 changed files with 44 additions and 23 deletions

View File

@ -8,6 +8,30 @@
<NoWarn>CS1998;CS0649</NoWarn>
</PropertyGroup>
<Target Name="clean after building" AfterTargets="PostBuildEvent">
<ItemGroup>
<_Files Remove="@(_Files)" />
<_Files Include="$(OutputPath)\*.exe.config" />
</ItemGroup>
<Delete Files="@(_Files)" />
</Target>
<Target Name="weave qsb nh" AfterTargets="PostBuildEvent">
<Exec Command=".\MirrorWeaver &quot;$(TargetPath)&quot;" WorkingDirectory="..\MirrorWeaver\bin\$(Configuration)\" />
</Target>
<PropertyGroup>
<UnityDllsDir Condition="Exists('$(UnityAssetsDir)')">$(UnityAssetsDir)\Dlls</UnityDllsDir>
</PropertyGroup>
<Target Name="copy dlls to unity" AfterTargets="PostBuildEvent" Condition="Exists('$(UnityDllsDir)')">
<ItemGroup>
<_Files Remove="@(_Files)" />
<_Files Include="$(OutputPath)/*.dll" />
<_Files Include="$(OutputPath)/*.exe" />
</ItemGroup>
<Copy SourceFiles="@(_Files)" DestinationFolder="$(UnityDllsDir)" />
</Target>
<ItemGroup>
<Folder Include="lib\" />
</ItemGroup>
@ -29,27 +53,4 @@
</Reference>
</ItemGroup>
<!-- qsb-nh is the top of the dependency graph so things have to be done here-->
<Target Name="clean after building" AfterTargets="PostBuildEvent">
<ItemGroup>
<_Files Remove="@(_Files)" />
<_Files Include="$(OutputPath)\*.exe.config" />
</ItemGroup>
<Delete Files="@(_Files)" />
</Target>
<PropertyGroup>
<UnityDllsDir Condition="Exists('$(UnityAssetsDir)')">$(UnityAssetsDir)\Dlls</UnityDllsDir>
</PropertyGroup>
<Target Name="copy dlls to unity" AfterTargets="PostBuildEvent" Condition="Exists('$(UnityDllsDir)')">
<ItemGroup>
<_Files Remove="@(_Files)" />
<_Files Include="$(OutputPath)/*.dll" />
<_Files Include="$(OutputPath)/*.exe" />
</ItemGroup>
<Copy SourceFiles="@(_Files)" DestinationFolder="$(UnityDllsDir)" />
</Target>
</Project>

View File

@ -13,10 +13,30 @@
<NoWarn>CS1998;CS0649</NoWarn>
</PropertyGroup>
<Target Name="clean after building" AfterTargets="PostBuildEvent">
<ItemGroup>
<_Files Remove="@(_Files)" />
<_Files Include="$(OutputPath)\*.exe.config" />
</ItemGroup>
<Delete Files="@(_Files)" />
</Target>
<Target Name="weave qsb" AfterTargets="PostBuildEvent">
<Exec Command=".\MirrorWeaver &quot;$(TargetPath)&quot;" WorkingDirectory="..\MirrorWeaver\bin\$(Configuration)\" />
</Target>
<PropertyGroup>
<UnityDllsDir Condition="Exists('$(UnityAssetsDir)')">$(UnityAssetsDir)\Dlls</UnityDllsDir>
</PropertyGroup>
<Target Name="copy dlls to unity" AfterTargets="PostBuildEvent" Condition="Exists('$(UnityDllsDir)')">
<ItemGroup>
<_Files Remove="@(_Files)" />
<_Files Include="$(OutputPath)/*.dll" />
<_Files Include="$(OutputPath)/*.exe" />
</ItemGroup>
<Copy SourceFiles="@(_Files)" DestinationFolder="$(UnityDllsDir)" />
</Target>
<ItemGroup>
<None Include="..\LICENSE">
<Pack>True</Pack>