SEBWIN-510: Implemented build integration.

This commit is contained in:
Damian Büchel 2022-07-19 12:07:38 +02:00
parent 2fdacfc1b0
commit 3e18a6ce41
3 changed files with 24 additions and 9 deletions

View file

@ -248,11 +248,17 @@
<ItemGroup /> <ItemGroup />
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup> <PropertyGroup>
<PostBuildEvent>robocopy "$(SolutionDir)SafeExamBrowser.Browser\bin\$(PlatformName)\$(ConfigurationName)" "$(ProjectDir)bin\$(PlatformName)\$(ConfigurationName)" /e /np <PostBuildEvent>robocopy "$(SolutionDir)SafeExamBrowser.Browser\bin\$(PlatformName)\$(ConfigurationName)" "$(TargetDir)\" /e /np
if %25ERRORLEVEL%25 geq 8 exit 1
robocopy "$(ProjectDir)bin\$(PlatformName)\$(ConfigurationName)" "$(SolutionDir)SafeExamBrowser.Runtime\bin\$(PlatformName)\$(ConfigurationName)" /e /np IF %25ERRORLEVEL%25 LSS 8 (
if %25ERRORLEVEL%25 geq 8 exit 1 robocopy "$(TargetDir)\" "$(SolutionDir)SafeExamBrowser.Runtime\bin\$(PlatformName)\$(ConfigurationName)" /e /np
exit 0</PostBuildEvent>
IF %25ERRORLEVEL%25 LSS 8 (
EXIT 0
)
)
EXIT 1</PostBuildEvent>
</PropertyGroup> </PropertyGroup>
<PropertyGroup> <PropertyGroup>
<PreBuildEvent> <PreBuildEvent>

View file

@ -39,7 +39,7 @@ namespace SafeExamBrowser.Configuration.Integrity
} }
catch (DllNotFoundException) catch (DllNotFoundException)
{ {
logger.Warn("Integrity module is not present!"); logger.Warn("Integrity module is not available!");
} }
catch (Exception e) catch (Exception e)
{ {
@ -62,7 +62,7 @@ namespace SafeExamBrowser.Configuration.Integrity
} }
catch (DllNotFoundException) catch (DllNotFoundException)
{ {
logger.Warn("Integrity module is not present!"); logger.Warn("Integrity module is not available!");
} }
catch (Exception e) catch (Exception e)
{ {

View file

@ -253,8 +253,17 @@
<ItemGroup /> <ItemGroup />
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup> <PropertyGroup>
<PostBuildEvent> <PostBuildEvent>IF EXIST "C:\SEB\seb_$(PlatformName).dll" (
</PostBuildEvent> robocopy "C:\SEB" "$(TargetDir)\" "seb_$(PlatformName).dll" /np
IF %25ERRORLEVEL%25 GEQ 8 (
EXIT 1
)
) ELSE (
ECHO WARNING: Integrity module not included!
)
EXIT 0</PostBuildEvent>
</PropertyGroup> </PropertyGroup>
<PropertyGroup> <PropertyGroup>
<PreBuildEvent> <PreBuildEvent>