Skip to content

Commit

Permalink
Add support for generic target framework net8.0
Browse files Browse the repository at this point in the history
Introduced $pTargetFrameworkGeneric for net8.0 alongside existing
$pTargetFramework for net8.0-windows. Updated build output paths,
Copy-Item commands, and 7za.exe commands to handle both frameworks
for majorsilence-reporting-desktop and majorsilence-reporting-rdlcmd.
Also updated Copy-Item commands for PHP, Python, and Ruby sections
to include necessary files for both frameworks.
  • Loading branch information
majorsilence committed Jan 11, 2025
1 parent 47efa04 commit b25fc9c
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions build-release.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ $CURRENTPATH=$pwd.Path
# /p:Configuration="Debug", "Debug-DrawingCompat", "Release", "Release-DrawingCompat"
$pConfiguration="Release"
$pTargetFramework="net8.0-windows"

$pTargetFrameworkGeneric="net8.0"

function delete_files([string]$path)
{
Expand Down Expand Up @@ -34,8 +34,8 @@ dotnet restore "./MajorsilenceReporting.sln"
dotnet build "$CURRENTPATH\MajorsilenceReporting.sln" --configuration $pConfiguration --verbosity minimal

$buildoutputpath_designer="$CURRENTPATH\Release-Builds\build-output\majorsilence-reporting-designer-$pTargetFramework-anycpu"
$buildoutputpath_desktop="$CURRENTPATH\Release-Builds\build-output\majorsilence-reporting-desktop-$pTargetFramework-anycpu"
$buildoutputpath_rdlcmd="$CURRENTPATH\Release-Builds\build-output\majorsilence-reporting-rdlcmd-$pTargetFramework-anycpu"
$buildoutputpath_desktop="$CURRENTPATH\Release-Builds\build-output\majorsilence-reporting-desktop-$pTargetFrameworkGeneric-anycpu"
$buildoutputpath_rdlcmd="$CURRENTPATH\Release-Builds\build-output\majorsilence-reporting-rdlcmd-$pTargetFrameworkGeneric-anycpu"
$buildoutputpath_viewer="$CURRENTPATH\Release-Builds\build-output\majorsilence-reporting-viewer-$pTargetFramework-anycpu"
$buildoutputpath_mapfile="$CURRENTPATH\Release-Builds\build-output\majorsilence-reporting-mapfile-$pTargetFramework-anycpu"

Expand All @@ -51,16 +51,16 @@ Remove-Item "$buildoutputpath_mapfile" -Recurse -ErrorAction Ignore
mkdir "$buildoutputpath_mapfile"

Copy-Item .\RdlDesign\bin\$pConfiguration\$pTargetFramework\ -Destination "$buildoutputpath_designer\" -Recurse
Copy-Item .\RdlDesktop\bin\$pConfiguration\$pTargetFramework\ -Destination "$buildoutputpath_desktop\" -Recurse
Copy-Item .\RdlCmd\bin\$pConfiguration\$pTargetFramework\ -Destination "$buildoutputpath_rdlcmd\" -Recurse
Copy-Item .\RdlDesktop\bin\$pConfiguration\$pTargetFrameworkGeneric\ -Destination "$buildoutputpath_desktop\" -Recurse
Copy-Item .\RdlCmd\bin\$pConfiguration\$pTargetFrameworkGeneric\ -Destination "$buildoutputpath_rdlcmd\" -Recurse
Copy-Item .\RdlViewer\bin\$pConfiguration\$pTargetFramework\ -Destination "$buildoutputpath_viewer\" -Recurse
Copy-Item .\RdlMapFile\bin\$pConfiguration\$pTargetFramework\ -Destination "$buildoutputpath_mapfile\" -Recurse

cd Release-Builds
cd build-output
..\7za.exe a -tzip $Version-majorsilence-reporting-designer-$pTargetFramework-anycpu.zip majorsilence-reporting-designer-$pTargetFramework-anycpu\
..\7za.exe a -tzip $Version-majorsilence-reporting-desktop-$pTargetFramework-anycpu.zip majorsilence-reporting-desktop-$pTargetFramework-anycpu\
..\7za.exe a -tzip $Version-majorsilence-reporting-rdlcmd-$pTargetFramework-anycpu.zip majorsilence-reporting-rdlcmd-$pTargetFramework-anycpu\
..\7za.exe a -tzip $Version-majorsilence-reporting-desktop-$pTargetFrameworkGeneric-anycpu.zip majorsilence-reporting-desktop-$pTargetFrameworkGeneric-anycpu\
..\7za.exe a -tzip $Version-majorsilence-reporting-rdlcmd-$pTargetFrameworkGeneric-anycpu.zip majorsilence-reporting-rdlcmd-$pTargetFrameworkGeneric-anycpu\
..\7za.exe a -tzip $Version-majorsilence-reporting-viewer-$pTargetFramework-anycpu.zip majorsilence-reporting-viewer-$pTargetFramework-anycpu\
..\7za.exe a -tzip $Version-majorsilence-reporting-mapfile-$pTargetFramework-anycpu.zip majorsilence-reporting-mapfile-$pTargetFramework-anycpu\
cd "$CURRENTPATH"
Expand All @@ -74,8 +74,8 @@ $buildoutputpath_php="$CURRENTPATH\Release-Builds\build-output\majorsilence-repo
delete_files "$buildoutputpath_php"
mkdir "$buildoutputpath_php"

Copy-Item .\RdlDesktop\bin\$pConfiguration\$pTargetFramework\config.xml "$buildoutputpath_php\config.xml"
Copy-Item .\RdlCmd\bin\$pConfiguration\$pTargetFramework\ -Destination "$buildoutputpath_php\" -Recurse
Copy-Item .\RdlDesktop\bin\$pConfiguration\$pTargetFrameworkGeneric\config.xml "$buildoutputpath_php\config.xml"
Copy-Item .\RdlCmd\bin\$pConfiguration\$pTargetFrameworkGeneric\ -Destination "$buildoutputpath_php\" -Recurse

Copy-Item ".\LanguageWrappers\php\config.php" "$buildoutputpath_php\config.php"
Copy-Item ".\LanguageWrappers\php\report.php" "$buildoutputpath_php\report.php"
Expand All @@ -94,8 +94,8 @@ $buildoutputpath_python="$CURRENTPATH\Release-Builds\build-output\majorsilence-r
delete_files "$buildoutputpath_python"
mkdir "$buildoutputpath_python"

Copy-Item .\RdlDesktop\bin\$pConfiguration\$pTargetFramework\config.xml "$buildoutputpath_python\config.xml"
Copy-Item .\RdlCmd\bin\$pConfiguration\$pTargetFramework\ -Destination "$buildoutputpath_python\" -Recurse
Copy-Item .\RdlDesktop\bin\$pConfiguration\$pTargetFrameworkGeneric\config.xml "$buildoutputpath_python\config.xml"
Copy-Item .\RdlCmd\bin\$pConfiguration\$pTargetFrameworkGeneric\ -Destination "$buildoutputpath_python\" -Recurse
Copy-Item ".\LanguageWrappers\python\config.py" "$buildoutputpath_python\config.py"
Copy-Item ".\LanguageWrappers\python\report.py" "$buildoutputpath_python\report.py"

Expand All @@ -111,8 +111,8 @@ $buildoutputpath_ruby="$CURRENTPATH\Release-Builds\build-output\majorsilence-rep
delete_files "$buildoutputpath_ruby"
mkdir "$buildoutputpath_ruby"

Copy-Item .\RdlDesktop\bin\$pConfiguration\$pTargetFramework\config.xml "$buildoutputpath_ruby\config.xml"
Copy-Item .\RdlCmd\bin\$pConfiguration\$pTargetFramework\ -Destination "$buildoutputpath_ruby\" -Recurse
Copy-Item .\RdlDesktop\bin\$pConfiguration\$pTargetFrameworkGeneric\config.xml "$buildoutputpath_ruby\config.xml"
Copy-Item .\RdlCmd\bin\$pConfiguration\$pTargetFrameworkGeneric\ -Destination "$buildoutputpath_ruby\" -Recurse

Copy-Item ".\LanguageWrappers\ruby\config.rb" "$buildoutputpath_ruby\config.rb"
Copy-Item ".\LanguageWrappers\ruby\report.rb" "$buildoutputpath_ruby\report.rb"
Expand Down

0 comments on commit b25fc9c

Please sign in to comment.