SEBWIN-219: Trying robocopy instead of xcopy for post-build events.

This commit is contained in:
dbuechel 2018-02-15 08:28:09 +01:00
parent 4901abd36b
commit 3d46b586e2
2 changed files with 6 additions and 2 deletions

View file

@ -150,7 +150,9 @@
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PostBuildEvent>xcopy "$(SolutionDir)SafeExamBrowser.Browser\bin\$(PlatformName)\$(ConfigurationName)" "$(ProjectDir)bin\$(PlatformName)\$(ConfigurationName)" /d /e /i /y</PostBuildEvent>
<PostBuildEvent>robocopy "$(SolutionDir)SafeExamBrowser.Browser\bin\$(PlatformName)\$(ConfigurationName)" "$(ProjectDir)bin\$(PlatformName)\$(ConfigurationName)" /e /np /v
if %25ERRORLEVEL%25 geq 8 exit 1
exit 0</PostBuildEvent>
</PropertyGroup>
<PropertyGroup>
<PreBuildEvent>

View file

@ -164,7 +164,9 @@
<ItemGroup />
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PostBuildEvent>xcopy "$(SolutionDir)SafeExamBrowser.Client\bin\$(PlatformName)\$(ConfigurationName)" "$(ProjectDir)bin\$(PlatformName)\$(ConfigurationName)" /d /e /i /y</PostBuildEvent>
<PostBuildEvent>robocopy "$(SolutionDir)SafeExamBrowser.Client\bin\$(PlatformName)\$(ConfigurationName)" "$(ProjectDir)bin\$(PlatformName)\$(ConfigurationName)" /e /np /v
if %25ERRORLEVEL%25 geq 8 exit 1
exit 0</PostBuildEvent>
</PropertyGroup>
<PropertyGroup>
<PreBuildEvent>