...
gmStudio detects the installed Visual Studio (VS) versions and allows you to select one of them for your projects. There is also a default setting for the VS Version to use when you creating new projects. However, sometimes support for the latest VS version lags behind what is implemented in the gmStudio user interface, in that situation you may set the VS version according to the following process.
The VS version used by your gmStudio project is specified in the DevEnv element in the gmProj file:
Code Block |
---|
<gmStudio>
<Name>Calculator_csh</Name>
<MigType>VBP</MigType>
<DevEnv>VS2022</DevEnv> <-- set a name for the desired VS Version here
<ProjFolder>C:\gmTestBed\Calculator\proj_csh</ProjFolder>
...
</gmStudio> |
There are two points of integration between gmStudio with VS based on the DevEnv element:
...
The details of the first integration are handled by a command script: SetEnv.cmd. The details of the second integration are handled by a gmSl script, authorText.gmsl. Both of these files may be modified to use an alternate version of Visual Studio.
Modifying the gmStudio project file
The VS version used by your gmStudio project is specified in the DevEnv element in the gmProj file:
Code Block |
---|
<gmStudio> <Name>Calculator_csh</Name> <MigType>VBP</MigType> <DevEnv>VS2022</DevEnv> <-- set a name for the desired VS Version here <ProjFolder>C:\gmTestBed\Calculator\proj_csh</ProjFolder> ... </gmStudio> |
Modifying SetEnv.cmd for VS2022
...