From 58d5cdf9479af173962fbb5c77ef959318b04d10 Mon Sep 17 00:00:00 2001 From: Thierry Lelegard Date: Wed, 6 May 2026 19:20:08 +0200 Subject: [PATCH 1/2] Fixed Windows installer build script with new VS solution file format In recent versions of CMake, typically coming with VS 18, aka Visual Studio 2026, the format of VS solution files has moved to .sln to the new XML format .slnx. Fix issue #3312 --- scripts/win-installer/build-win-installer.ps1 | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/scripts/win-installer/build-win-installer.ps1 b/scripts/win-installer/build-win-installer.ps1 index f486eac0b..25615a129 100644 --- a/scripts/win-installer/build-win-installer.ps1 +++ b/scripts/win-installer/build-win-installer.ps1 @@ -197,7 +197,17 @@ if (-not $NoBuild) { # Compile SRT. Write-Output "Building for platform $Platform ..." foreach ($Conf in $LIBDIR.Keys) { - & $MSBuild "$BuildDir\SRT.sln" /nologo /maxcpucount /property:Configuration=$Conf /property:Platform=$Platform /target:srt_static + # The solution file format depends on the CMake version. + # Try new XML solution file format first. + $SolFile = "$BuildDir\SRT.slnx" + if (-not (Test-Path $SolFile)) { + # Try legacy solution file format. + $SolFile = "$BuildDir\SRT.sln" + } + if (-not (Test-Path $SolFile)) { + Exit-Script "Solution file $BuildDir\SRT.sln[x] not found, check CMake output" + } + & $MSBuild $SolFile /nologo /maxcpucount /property:Configuration=$Conf /property:Platform=$Platform /target:srt_static } } } From 5a997c772f224253f417c27e05d7b2559f1ffdbe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thierry=20Lel=C3=A9gard?= Date: Thu, 7 May 2026 13:20:58 +0200 Subject: [PATCH 2/2] Update scripts/win-installer/build-win-installer.ps1 Co-authored-by: Sektor van Skijlen --- scripts/win-installer/build-win-installer.ps1 | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/scripts/win-installer/build-win-installer.ps1 b/scripts/win-installer/build-win-installer.ps1 index 25615a129..0c92d5cbc 100644 --- a/scripts/win-installer/build-win-installer.ps1 +++ b/scripts/win-installer/build-win-installer.ps1 @@ -12,7 +12,15 @@ <# .SYNOPSIS - Build the SRT static libraries installer for Windows. +.DESCRIPTION + + Build the SRT static libraries installer for Windows. + + See README.md for usage details and prerequisites. + +.SYNOPSIS + + .\build-win-installer.ps1 [-Version DESIRED_VERSION] [-NoBuild] [-NoPause] .PARAMETER Version