From 3d46b586e23d8c1b189dbd9319c12b7168d482e8 Mon Sep 17 00:00:00 2001 From: dbuechel Date: Thu, 15 Feb 2018 08:28:09 +0100 Subject: [PATCH] SEBWIN-219: Trying robocopy instead of xcopy for post-build events. --- SafeExamBrowser.Client/SafeExamBrowser.Client.csproj | 4 +++- SafeExamBrowser.Runtime/SafeExamBrowser.Runtime.csproj | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/SafeExamBrowser.Client/SafeExamBrowser.Client.csproj b/SafeExamBrowser.Client/SafeExamBrowser.Client.csproj index f629cba2..f3b20104 100644 --- a/SafeExamBrowser.Client/SafeExamBrowser.Client.csproj +++ b/SafeExamBrowser.Client/SafeExamBrowser.Client.csproj @@ -150,7 +150,9 @@ - xcopy "$(SolutionDir)SafeExamBrowser.Browser\bin\$(PlatformName)\$(ConfigurationName)" "$(ProjectDir)bin\$(PlatformName)\$(ConfigurationName)" /d /e /i /y + robocopy "$(SolutionDir)SafeExamBrowser.Browser\bin\$(PlatformName)\$(ConfigurationName)" "$(ProjectDir)bin\$(PlatformName)\$(ConfigurationName)" /e /np /v +if %25ERRORLEVEL%25 geq 8 exit 1 +exit 0 diff --git a/SafeExamBrowser.Runtime/SafeExamBrowser.Runtime.csproj b/SafeExamBrowser.Runtime/SafeExamBrowser.Runtime.csproj index be521c52..3279dc46 100644 --- a/SafeExamBrowser.Runtime/SafeExamBrowser.Runtime.csproj +++ b/SafeExamBrowser.Runtime/SafeExamBrowser.Runtime.csproj @@ -164,7 +164,9 @@ - xcopy "$(SolutionDir)SafeExamBrowser.Client\bin\$(PlatformName)\$(ConfigurationName)" "$(ProjectDir)bin\$(PlatformName)\$(ConfigurationName)" /d /e /i /y + robocopy "$(SolutionDir)SafeExamBrowser.Client\bin\$(PlatformName)\$(ConfigurationName)" "$(ProjectDir)bin\$(PlatformName)\$(ConfigurationName)" /e /np /v +if %25ERRORLEVEL%25 geq 8 exit 1 +exit 0