Support command-line building using Visual Studio 2019

• Apr 14, 2020 - 17:27
Reported version
3.x-dev
Type
Development
Frequency
Few
Severity
S4 - Minor
Reproducibility
Always
Status
closed
Regression
No
Workaround
Yes
Project

The msvc_build.bat batch file that builds MuseScore under Windows is currently hard-coded to use Microsoft Visual Studio 2017. Developers wanting to use Visual Studio 2019 have to hand-edit the file to get it to work.

The batch file should support both versions of Visual Studio without any need for hand editing, and it should also automatically detect the highest supported version installed and use it.


Comments

Status PR created fixed

Fixed in branch master, commit 4d35cb85f4

_Fix #303864: Support command-line building using Visual Studio 2019

Enhanced the msvc_build.bat batch file to support Visual Studio 2019 (in addition to VS2017) and to automatically detect the highest supported installed version of Visual Studio and use it._

Fix version
3.5.0