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> <NoWarn>CS1998;CS0649</NoWarn>
</PropertyGroup> </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> <ItemGroup>
<Folder Include="lib\" /> <Folder Include="lib\" />
</ItemGroup> </ItemGroup>
@ -29,27 +53,4 @@
</Reference> </Reference>
</ItemGroup> </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> </Project>

View File

@ -13,10 +13,30 @@
<NoWarn>CS1998;CS0649</NoWarn> <NoWarn>CS1998;CS0649</NoWarn>
</PropertyGroup> </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"> <Target Name="weave qsb" AfterTargets="PostBuildEvent">
<Exec Command=".\MirrorWeaver &quot;$(TargetPath)&quot;" WorkingDirectory="..\MirrorWeaver\bin\$(Configuration)\" /> <Exec Command=".\MirrorWeaver &quot;$(TargetPath)&quot;" WorkingDirectory="..\MirrorWeaver\bin\$(Configuration)\" />
</Target> </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> <ItemGroup>
<None Include="..\LICENSE"> <None Include="..\LICENSE">
<Pack>True</Pack> <Pack>True</Pack>