Wrap xcopy arguments in quotes to handle spaces in paths

This commit is contained in:
MascaraSnake 2023-05-22 18:09:26 +02:00
parent 2f3d9e07cb
commit 2933d5ad5f

View file

@ -207,8 +207,8 @@
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PostBuildEvent>xcopy $(ProjectDir)Jint.dll $(TargetDir)Dependencies\ /y
xcopy $(ProjectDir)Esprima.dll $(TargetDir)Dependencies\ /y</PostBuildEvent>
<PostBuildEvent>xcopy "$(ProjectDir)Jint.dll" "$(TargetDir)Dependencies\" /y
xcopy "$(ProjectDir)Esprima.dll" "$(TargetDir)Dependencies\" /y</PostBuildEvent>
</PropertyGroup>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.