11@ echo OFF
22
33REM This batch file assumes the following:
4- REM - .NET Framework 4.8 SDK is installed and in PATH
5- REM - .NET 7.0 (or newer) SDK is installed and in PATH
4+ REM - .NET 8.0 (or newer) SDK is installed and in PATH
65REM - 7-zip commandline (7z.exe) is installed and in PATH
76REM - The relevant commandline programs are already downloaded
87REM and put into their respective folders
@@ -19,52 +18,46 @@ dotnet restore
1918
2019REM Debug
2120echo Building debug
22- dotnet publish Test\Test.csproj -f net48 -r win7-x64 -c Debug --self-contained true
2321dotnet publish Test\Test.csproj -f net6.0 -r win-x64 -c Debug --self-contained true -p:PublishSingleFile=true
2422dotnet publish Test\Test.csproj -f net6.0 -r linux-x64 -c Debug --self-contained true -p:PublishSingleFile=true
2523dotnet publish Test\Test.csproj -f net6.0 -r osx-x64 -c Debug --self-contained true -p:PublishSingleFile=true
26- dotnet publish Test\Test.csproj -f net7 .0 -r win-x64 -c Debug --self-contained true -p:PublishSingleFile=true
27- dotnet publish Test\Test.csproj -f net7 .0 -r linux-x64 -c Debug --self-contained true -p:PublishSingleFile=true
28- dotnet publish Test\Test.csproj -f net7 .0 -r osx-x64 -c Debug --self-contained true -p:PublishSingleFile=true
24+ dotnet publish Test\Test.csproj -f net8 .0 -r win-x64 -c Debug --self-contained true -p:PublishSingleFile=true
25+ dotnet publish Test\Test.csproj -f net8 .0 -r linux-x64 -c Debug --self-contained true -p:PublishSingleFile=true
26+ dotnet publish Test\Test.csproj -f net8 .0 -r osx-x64 -c Debug --self-contained true -p:PublishSingleFile=true
2927
3028REM Release
3129echo Building release
32- dotnet publish Test\Test.csproj -f net48 -r win7-x64 -c Release --self-contained true -p:DebugType=None -p:DebugSymbols=false
3330dotnet publish Test\Test.csproj -f net6.0 -r win-x64 -c Release --self-contained true -p:PublishSingleFile=true -p:DebugType=None -p:DebugSymbols=false
3431dotnet publish Test\Test.csproj -f net6.0 -r linux-x64 -c Release --self-contained true -p:PublishSingleFile=true -p:DebugType=None -p:DebugSymbols=false
3532dotnet publish Test\Test.csproj -f net6.0 -r osx-x64 -c Release --self-contained true -p:PublishSingleFile=true -p:DebugType=None -p:DebugSymbols=false
36- dotnet publish Test\Test.csproj -f net7 .0 -r win-x64 -c Release --self-contained true -p:PublishSingleFile=true -p:DebugType=None -p:DebugSymbols=false
37- dotnet publish Test\Test.csproj -f net7 .0 -r linux-x64 -c Release --self-contained true -p:PublishSingleFile=true -p:DebugType=None -p:DebugSymbols=false
38- dotnet publish Test\Test.csproj -f net7 .0 -r osx-x64 -c Release --self-contained true -p:PublishSingleFile=true -p:DebugType=None -p:DebugSymbols=false
33+ dotnet publish Test\Test.csproj -f net8 .0 -r win-x64 -c Release --self-contained true -p:PublishSingleFile=true -p:DebugType=None -p:DebugSymbols=false
34+ dotnet publish Test\Test.csproj -f net8 .0 -r linux-x64 -c Release --self-contained true -p:PublishSingleFile=true -p:DebugType=None -p:DebugSymbols=false
35+ dotnet publish Test\Test.csproj -f net8 .0 -r osx-x64 -c Release --self-contained true -p:PublishSingleFile=true -p:DebugType=None -p:DebugSymbols=false
3936
4037REM Create Test Debug archives
41- cd %BUILD_FOLDER% \Test\bin\Debug\net48\win7-x64\publish\
42- 7z a -tzip %BUILD_FOLDER% \BinaryObjectScanner_net48_debug.zip *
4338cd %BUILD_FOLDER% \Test\bin\Debug\net6.0\win-x64\publish\
44397z a -tzip %BUILD_FOLDER% \BinaryObjectScanner_net6.0_win-x64_debug.zip *
4540cd %BUILD_FOLDER% \Test\bin\Debug\net6.0\linux-x64\publish\
46417z a -tzip %BUILD_FOLDER% \BinaryObjectScanner_net6.0_linux-x64_debug.zip *
4742cd %BUILD_FOLDER% \Test\bin\Debug\net6.0\osx-x64\publish\
48437z a -tzip %BUILD_FOLDER% \BinaryObjectScanner_net6.0_osx-x64_debug.zip *
49- cd %BUILD_FOLDER% \Test\bin\Debug\net7 .0\win-x64\publish\
50- 7z a -tzip %BUILD_FOLDER% \BinaryObjectScanner_net7 .0_win-x64_debug.zip *
51- cd %BUILD_FOLDER% \Test\bin\Debug\net7 .0\linux-x64\publish\
52- 7z a -tzip %BUILD_FOLDER% \BinaryObjectScanner_net7 .0_linux-x64_debug.zip *
53- cd %BUILD_FOLDER% \Test\bin\Debug\net7 .0\osx-x64\publish\
54- 7z a -tzip %BUILD_FOLDER% \BinaryObjectScanner_net7 .0_osx-x64_debug.zip *
44+ cd %BUILD_FOLDER% \Test\bin\Debug\net8 .0\win-x64\publish\
45+ 7z a -tzip %BUILD_FOLDER% \BinaryObjectScanner_net8 .0_win-x64_debug.zip *
46+ cd %BUILD_FOLDER% \Test\bin\Debug\net8 .0\linux-x64\publish\
47+ 7z a -tzip %BUILD_FOLDER% \BinaryObjectScanner_net8 .0_linux-x64_debug.zip *
48+ cd %BUILD_FOLDER% \Test\bin\Debug\net8 .0\osx-x64\publish\
49+ 7z a -tzip %BUILD_FOLDER% \BinaryObjectScanner_net8 .0_osx-x64_debug.zip *
5550
5651REM Create Test Release archives
57- cd %BUILD_FOLDER% \Test\bin\Release\net48\win7-x64\publish\
58- 7z a -tzip %BUILD_FOLDER% \BinaryObjectScanner_net48_release.zip *
5952cd %BUILD_FOLDER% \Test\bin\Release\net6.0\win-x64\publish\
60537z a -tzip %BUILD_FOLDER% \BinaryObjectScanner_net6.0_win-x64_release.zip *
6154cd %BUILD_FOLDER% \Test\bin\Release\net6.0\linux-x64\publish\
62557z a -tzip %BUILD_FOLDER% \BinaryObjectScanner_net6.0_linux-x64_release.zip *
6356cd %BUILD_FOLDER% \Test\bin\Release\net6.0\osx-x64\publish\
64577z a -tzip %BUILD_FOLDER% \BinaryObjectScanner_net6.0_osx-x64_release.zip *
65- cd %BUILD_FOLDER% \Test\bin\Release\net7 .0\win-x64\publish\
66- 7z a -tzip %BUILD_FOLDER% \BinaryObjectScanner_net7 .0_win-x64_release.zip *
67- cd %BUILD_FOLDER% \Test\bin\Release\net7 .0\linux-x64\publish\
68- 7z a -tzip %BUILD_FOLDER% \BinaryObjectScanner_net7 .0_linux-x64_release.zip *
69- cd %BUILD_FOLDER% \Test\bin\Release\net7 .0\osx-x64\publish\
70- 7z a -tzip %BUILD_FOLDER% \BinaryObjectScanner_net7 .0_osx-x64_release.zip *
58+ cd %BUILD_FOLDER% \Test\bin\Release\net8 .0\win-x64\publish\
59+ 7z a -tzip %BUILD_FOLDER% \BinaryObjectScanner_net8 .0_win-x64_release.zip *
60+ cd %BUILD_FOLDER% \Test\bin\Release\net8 .0\linux-x64\publish\
61+ 7z a -tzip %BUILD_FOLDER% \BinaryObjectScanner_net8 .0_linux-x64_release.zip *
62+ cd %BUILD_FOLDER% \Test\bin\Release\net8 .0\osx-x64\publish\
63+ 7z a -tzip %BUILD_FOLDER% \BinaryObjectScanner_net8 .0_osx-x64_release.zip *
0 commit comments