Initial commit: BizTalk application catalog

This commit is contained in:
2026-07-27 14:46:02 +02:00
commit 2b5b97c869
25 changed files with 3026 additions and 0 deletions
+43
View File
@@ -0,0 +1,43 @@
@echo off
setlocal EnableExtensions
set "ROOT=%~dp0.."
set "SOLUTION=%ROOT%\BizTalkApplicationCatalog.sln"
if not defined MSBUILD (
set "VSWHERE=%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe"
if exist "%VSWHERE%" (
for /f "usebackq tokens=*" %%i in (`"%VSWHERE%" -latest -requires Microsoft.Component.MSBuild -find MSBuild\**\Bin\MSBuild.exe`) do (
set "MSBUILD=%%i"
goto :found_msbuild
)
)
)
:found_msbuild
if not defined MSBUILD (
for /f "tokens=*" %%i in ('where msbuild 2^>nul') do (
set "MSBUILD=%%i"
goto :found_msbuild_path
)
)
:found_msbuild_path
if not defined MSBUILD (
echo FEHLER: MSBuild fehlt. Visual Studio 2019 Build Tools und .NET Framework 4.7.2 Developer Pack installieren.
exit /b 2
)
echo Verwende MSBuild: %MSBUILD%
"%MSBUILD%" -version
echo Baue klassisches .NET-Framework-4.7.2-Projekt ohne .NET-SDK und ohne NuGet-Restore ...
"%MSBUILD%" "%SOLUTION%" /m /t:Rebuild /p:Configuration=Release /p:Platform="Any CPU"
if errorlevel 1 exit /b %ERRORLEVEL%
echo Fuehre automatisierte Tests aus ...
"%ROOT%\tests\BizTalkApplicationCatalog.Tests\bin\Release\BizTalkApplicationCatalog.Tests.exe"
if errorlevel 1 exit /b %ERRORLEVEL%
echo Fuehre Self-Test der Anwendung aus ...
"%ROOT%\src\BizTalkApplicationCatalog\bin\Release\BizTalkApplicationCatalog.exe" --self-test
exit /b %ERRORLEVEL%
+24
View File
@@ -0,0 +1,24 @@
@echo off
setlocal EnableExtensions
set "ROOT=%~dp0.."
set "BIN=%ROOT%\src\BizTalkApplicationCatalog\bin\Release"
set "ARTIFACTS=%ROOT%\artifacts"
set "DEPLOY=%ARTIFACTS%\BizTalkApplicationCatalog-deploy"
call "%ROOT%\scripts\build-release.cmd"
if errorlevel 1 exit /b %ERRORLEVEL%
if exist "%DEPLOY%" rmdir /s /q "%DEPLOY%"
mkdir "%DEPLOY%"
copy "%BIN%\BizTalkApplicationCatalog.exe" "%DEPLOY%\" >nul
copy "%BIN%\BizTalkApplicationCatalog.exe.config" "%DEPLOY%\" >nul
if exist "%BIN%\BizTalkApplicationCatalog.pdb" copy "%BIN%\BizTalkApplicationCatalog.pdb" "%DEPLOY%\" >nul
copy "%ROOT%\deployment\run-inventory.cmd" "%DEPLOY%\" >nul
copy "%ROOT%\Readme.md" "%DEPLOY%\" >nul
copy "%ROOT%\Dokumentation.md" "%DEPLOY%\" >nul
echo Deployment-Ordner erstellt:
echo %DEPLOY%
exit /b 0
+31
View File
@@ -0,0 +1,31 @@
@echo off
setlocal EnableExtensions
set "ROOT=%~dp0.."
set "ARTIFACTS=%ROOT%\artifacts"
set "ZIP=%ARTIFACTS%\BizTalkApplicationCatalog-source.zip"
set "TEXT=%ZIP%.txt"
if not exist "%ARTIFACTS%" mkdir "%ARTIFACTS%"
if exist "%ZIP%" del /q "%ZIP%"
if exist "%TEXT%" del /q "%TEXT%"
where tar >nul 2>nul
if errorlevel 1 (
echo FEHLER: tar.exe wird fuer das Quellarchiv benoetigt.
exit /b 2
)
pushd "%ROOT%"
tar.exe -a -c -f "%ZIP%" --exclude=.git --exclude=bin --exclude=obj --exclude=artifacts .
set "TAR_EXIT=%ERRORLEVEL%"
popd
if not "%TAR_EXIT%"=="0" exit /b %TAR_EXIT%
certutil -f -encode "%ZIP%" "%TEXT%" >nul
if errorlevel 1 exit /b %ERRORLEVEL%
echo Quellarchiv: %ZIP%
echo Base64-Text: %TEXT%
echo Dekodieren: certutil -decode BizTalkApplicationCatalog-source.zip.txt BizTalkApplicationCatalog-source.zip
exit /b 0