Skip to content

Commit 76ec759

Browse files
committed
Fix Unity build in non Windows environment.
1 parent 927aecb commit 76ec759

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/MsgPack.UnitTest.Unity.Il2cpp.Full.Desktop/MsgPack.UnitTest.Unity.Il2cpp.Full.Desktop.csproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -789,9 +789,10 @@
789789
</ItemGroup>
790790
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
791791
<PropertyGroup>
792-
<PostBuildEvent>RoboCopy $(ProjectDir)$(OutDir) $(ProjectDir)\..\MsgPack.UnitTest.Unity.Il2cpp.Full\Assets\Plugins\Dlls\ *.dll /MIR
792+
<PostBuildEvent Condition="'$(OS)' == 'Windows_NT'">RoboCopy $(ProjectDir)$(OutDir) $(ProjectDir)\..\MsgPack.UnitTest.Unity.Il2cpp.Full\Assets\Plugins\Dlls\ *.dll /MIR
793793
if %25ERRORLEVEL%25 geq 8 exit 1
794794
exit 0</PostBuildEvent>
795+
<PostBuildEvent Condition="'$(OS)' != 'Windows_NT'">rsync -a -r --delete $(ProjectDir)$(OutDir)/*.dll $(ProjectDir)/../MsgPack.UnitTest.Unity.Il2cpp.Full/Assets/Plugins/Dlls/</PostBuildEvent>
795796
</PropertyGroup>
796797
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
797798
Other similar extension points exist, see Microsoft.Common.targets.

0 commit comments

Comments
 (0)