Attempting to build Gen 8.6 Windows/C modules in the Build Tool and receive the error: CA Gen Build Tool Compose
Copyright (c) 2016 CA. All rights reserved.
Exception caught: java.lang.RuntimeException:*** OPT.VSVERSION contains an unknown value () or the specified Visual Studio compiler is not installed.
Compose Failed
The error may also be:CA Gen Build Tool Compose
Copyright (c) 2016 CA. All rights reserved.
Exception caught: java.lang.RuntimeException:*** OPT.VSVERSION contains an incorrect value.
Compose Failed
Gen Build Tool
The value of the Build Tool Profile Manager token OPT.VSVERSION defaults to VS140, which corresponds to an install of VS2015.
The above error will occur if there is invalid value for the token OR the value does not match the version of Visual Studio installed.
The valid values are:
VS140 corresponds to an install of Visual Studio 2015.
VS150 corresponds to an install of Visual Studio 2017.
VS160 corresponds to an install of Visual Studio 2019.
VS170 corresponds to an install of Visual Studio 2022.
Per Compilers section under Gen™ 8.6 > Technical Requirements > Third-Party Software Version
Gen r8.6 is certified/supported for:
Microsoft Visual Studio Professional 2017
Microsoft Visual Studio Professional 2019
Microsoft Visual Studio Professional 2022
NOTE: Microsoft Visual Studio Professional 2015 is no longer listed due to drop support by Microsoft.
The same error may occur if the required Gen PTF to support the Visual Studio version being used is not installed.
See this article for details of those required PTFs: Gen 8.6 Build Tool OPT.VSVERSION for different Visual Studio versions
Gen 8.6 Solutions & Patches