This commit is contained in:
Drechsler, Meik
2025-08-14 16:20:42 +02:00
parent fb150ac204
commit 3a001d0e55
33 changed files with 2405 additions and 0 deletions

View File

@@ -0,0 +1,51 @@
@echo off
SETLOCAL
REM Überprüfe, ob die Konfiguration als Parameter übergeben wurde
IF "%1"=="" (
echo ERROR: Keine Konfiguration übergeben. Verwenden Sie z. B. "Debug" oder "Release".
EXIT 1
)
REM Setze die Quelldateien und das Zielverzeichnis
SET SourceDir=%~dp0bin\%1
SET TargetDir=\\srvwsm001.imagoverum.com\c$\Program Files (x86)\Matrix42\Matrix42 Workplace Management\svc\bin
REM Debugging-Ausgabe
echo Starting Post-Build Copy Script...
echo Source Directory: %SourceDir%
echo Target Directory: %TargetDir%
REM Prüfe, ob die Quelldateien existieren
IF NOT EXIST "%SourceDir%\C4IT.API.Contracts.dll" (
echo ERROR: C4IT.API.Contracts.dll nicht gefunden.
EXIT 1
)
IF NOT EXIST "%SourceDir%\C4IT.API.CustomerPanel.dll" (
echo ERROR: C4IT.API.CustomerPanel.dll nicht gefunden.
EXIT 1
)
REM Kopiere die Dateien
echo Kopiere C4IT.API.Contracts.dll...
xcopy "%SourceDir%\C4IT.API.Contracts.dll" "%SourceDir%\..\..\..\..\Matrix42\C4IT_CustomerPanel\Matrix42Libs" /Y
IF ERRORLEVEL 1 (
echo ERROR: Kopiervorgang von C4IT.API.Contracts.dll fehlgeschlagen.
EXIT 1
)
xcopy "%SourceDir%\C4IT.API.Contracts.dll" "%TargetDir%" /Y
IF ERRORLEVEL 1 (
echo ERROR: Kopiervorgang von C4IT.API.Contracts.dll fehlgeschlagen.
EXIT 1
)
echo Kopiere C4IT.API.CustomerPanel.dll...
xcopy "%SourceDir%\C4IT.API.CustomerPanel.dll" "%TargetDir%" /Y
IF ERRORLEVEL 1 (
echo ERROR: Kopiervorgang von C4IT.API.CustomerPanel.dll fehlgeschlagen.
EXIT 1
)
echo Dateien erfolgreich kopiert.
ENDLOCAL