Error building examples SDK

Hi, 

I've installed the Microstation CE SDK and the buildallexample.bat is not running properly. Here's an example of the output I get when running the bat:

C:\PROGRA~1\Bentley\MICROS~1\examples>buildallexamples

[Fri 25/02/2022 12:31:28.97] [Fri 25/02/2022 12:31:28.97] PROCESSING STARTED
[Fri 25/02/2022 12:31:28.98] [START] Building all SDK examples of type: .mke
[Fri 25/02/2022 12:31:29.04] [COMMAND] bmake.exe +a C:\PROGRA~1\Bentley\MICROS~1\examples\ANNOTA~1\DESCRI~1\DESCRI~1.MKE
Bentley Systems Make Utility. Version 10.00.00.26, Mar 15 2018
Fri Feb 25 12:31:29 2022

~mkdir Build\VSEnvironment\
PublicSDK\VsDevCmdImport.py --vsversion=2019 --targetarch=amd64 --targetframeworkversion=v4.6.2 --hostarch=x86 Build\VSEnvironment\VsDevCmd_16_v4.6.2_amd64.mki
The system cannot find the path specified.
Fri Feb 25 12:31:29 2022, elapsed time: 0:00
BMAKE: call trace
line: 1104, C:\PROGRA~1\Bentley\MICROS~1\mki\AssertToolSet.mki
line: 114, C:\PROGRA~1\Bentley\MICROS~1\mki\ConfigurePolicy.mki
line: 26, C:\PROGRA~1\Bentley\MICROS~1\mki\mdl.mki
line: 17, C:\PROGRA~1\Bentley\MICROS~1\examples\ANNOTA~1\DESCRI~1\DESCRI~1.MKE
[Fri 25/02/2022 12:31:29.20] [COMMAND] bmake.exe +a C:\PROGRA~1\Bentley\MICROS~1\examples\ANNOTA~1\DWGAPP~1\DWGAPP~1.MKE
Bentley Systems Make Utility. Version 10.00.00.26, Mar 15 2018
Fri Feb 25 12:31:29 2022

Is it something to to with environment setting and not being able to find the right paths? 

Parents Reply
  • If the command returns nothing, then can you remove the last part and send output of it, like this:

    "C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe" -version 16.0 -property installationPath

    FYI. The current MSCE U16.2 SDK Requirements are for Visual Studio 2019 Professional edition. If the above (2) commands fail and you have a version installed as a last resort try creating a new OS System Level Variable called: VSDIR and set it to a value of the root folder of your VS2019 install e.g. C:\Devtools\VisualStudio2019\

    Note: Due to requirements I install my VS installs to a non-default location like the path used above and yours will certainly differ so use the root install folder of your location making sure there is a trailing backslash in the variable's value.



Children
No Data