SEBWIN-510: Implemented build integration.
This commit is contained in:
parent
2fdacfc1b0
commit
3e18a6ce41
3 changed files with 24 additions and 9 deletions
|
@ -248,11 +248,17 @@
|
|||
<ItemGroup />
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
<PropertyGroup>
|
||||
<PostBuildEvent>robocopy "$(SolutionDir)SafeExamBrowser.Browser\bin\$(PlatformName)\$(ConfigurationName)" "$(ProjectDir)bin\$(PlatformName)\$(ConfigurationName)" /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 geq 8 exit 1
|
||||
exit 0</PostBuildEvent>
|
||||
<PostBuildEvent>robocopy "$(SolutionDir)SafeExamBrowser.Browser\bin\$(PlatformName)\$(ConfigurationName)" "$(TargetDir)\" /e /np
|
||||
|
||||
IF %25ERRORLEVEL%25 LSS 8 (
|
||||
robocopy "$(TargetDir)\" "$(SolutionDir)SafeExamBrowser.Runtime\bin\$(PlatformName)\$(ConfigurationName)" /e /np
|
||||
|
||||
IF %25ERRORLEVEL%25 LSS 8 (
|
||||
EXIT 0
|
||||
)
|
||||
)
|
||||
|
||||
EXIT 1</PostBuildEvent>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<PreBuildEvent>
|
||||
|
|
|
@ -39,7 +39,7 @@ namespace SafeExamBrowser.Configuration.Integrity
|
|||
}
|
||||
catch (DllNotFoundException)
|
||||
{
|
||||
logger.Warn("Integrity module is not present!");
|
||||
logger.Warn("Integrity module is not available!");
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
|
@ -62,7 +62,7 @@ namespace SafeExamBrowser.Configuration.Integrity
|
|||
}
|
||||
catch (DllNotFoundException)
|
||||
{
|
||||
logger.Warn("Integrity module is not present!");
|
||||
logger.Warn("Integrity module is not available!");
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
|
|
|
@ -253,8 +253,17 @@
|
|||
<ItemGroup />
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
<PropertyGroup>
|
||||
<PostBuildEvent>
|
||||
</PostBuildEvent>
|
||||
<PostBuildEvent>IF EXIST "C:\SEB\seb_$(PlatformName).dll" (
|
||||
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>
|
||||
<PreBuildEvent>
|
||||
|
|
Loading…
Reference in a new issue