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? 

  • Hi ,

    If you set the Run as Administrator property in your Desktop MicroStation CONNECT Developer Shell shortcut, are you able to compile the examples?

    If still unable to compile the examples, try to compile (1) example using (your example folder above); e.g. build DescribeElementExample.mke. After it attempts to build the example you should be prompted with: View Log File in Folder? [Y,N]?.  Answer yes, then zip and attach the file created (e.g.Build-DescribeElementExample-Verbose-Output.txt) with your reply to this thread for us to review what (still) may be wrong.

    Thank you and HTH,
    Bob 



  • I tried build DescribeElementExample.mke and I still get 'The system cannot find the path specified.'

    log attached

    Build-DescribeElementExample-Verbose-Output.txt

  • Your VSDIR variable is returned as incomplete.

    Can you provide the output of this command?

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



  • 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.



  • output is:

    C:\Program Files\Microsoft Visual Studio\2022\Community

  • VS2019 Professional is the current SDK requirement and I recommend that you install that version Side by Side so the SDK development environment works as intended.

    Although not supported and you may be subjecting yourself to a number of anomalies if you MicroStationDeveloperShell.bat:13:set BUILD_USING_VS2019=1 to be a value of BUILD_USING_VS2022=1 you may or may not be able to use the current SDK with VS2022. Again, this is not supported and only suggested (to try/test) if you cannot install VS2019 Professional Side by Side with VS2022.

    HTH,
    Bob



  • I've installed the Microstation CE SDK and the buildallexample.bat is not running properly

    Are you running the SDK command shell, installed with the SDK, or from a Windows command shell that you opened?

    For each new release of the SDK, I build all examples using the SDK command shell with Windows Administrator permission.  My environment for the CONNECT Update 16.2 SDK was Viz Studio 19 Community Edition on Windows 10.

    SDK Command Shell

     
    Regards, Jon Summers
    LA Solutions

  • Yep I'm running the SDK command shell as admin, 

    did you install VS in the default location? do you change the SDK environment to point at where VS is installed?

    I'm guessing my problem is that the SDK is looking for the wrong version / in the wrong place for the VS?

  • Did you install VS in the default location?

    Yes

    Do you change the SDK environment to point at where VS is installed?

    No. 

    Installing Viz Studio makes changes to the Windows Registry.  I don't think any Windows environment variables are set or modified.

    When you start the MicorStation SDK command shell, that sets a few Windows environment variables.  Here's what I see...

    ALLUSERSPROFILE=C:\ProgramData
    APPDATA=C:\Users\CONNECT\AppData\Roaming
    BDNURLS=_URLBDN _URLBDNCONTACTUS _URLBDNDOWNLOADS _URLBDNSDKS _URLBDNSUPPORT _URLBDNVIDEOS
    BENTLEYURLS=_URLBENTLEYDEVELOPER _URLBENTLEYLIFECYCLE _URLBENTLEYVIDEOS
    BMAKE_OPT=-IC:\PROGRA~1\Bentley\MICROS~1\SDK\mki\
    BOOST_1_64_0=O:\VC\boost\boost_1_64_0\
    BOOST_1_64_1=O:\VC\boost\boost_1_64_1\
    BOOST_1_65_1=O:\VC\boost\boost_1_65_1\
    BOOST_1_65_1_VS=\\Asterix\ProjectsDir\VC\boost\boost_1_65_1\
    BOOST_1_68_0=O:\VC\boost\boost_1_68_0\
    BOOST_1_69_0=O:\VC\boost\boost_1_69_0
    BOOST_1_71_0=O:\VC\boost\boost_1_71_0\
    BOOST_1_77_0=O:\VC\boost\boost_1_77_0\
    BOOST_1_78_0=O:\VC\boost\boost_1_78_0\
    BUILD_USING_VS2019=1
    CommandPromptType=Native
    CommonProgramFiles=C:\Program Files\Common Files
    CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files
    CommonProgramW6432=C:\Program Files\Common Files
    COMPUTERNAME=CELERATRIX64
    ComSpec=C:\WINDOWS\system32\cmd.exe
    DEFAULT_TARGET_PROCESSOR_ARCHITECTURE=x64
    DevEnvDir=C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\Common7\IDE\
    DLM_NO_SIGN=1
    DriverData=C:\Windows\System32\Drivers\DriverData
    ECHO=off
    ExtensionSdkDir=C:\Program Files (x86)\Microsoft SDKs\Windows Kits\10\ExtensionSDKs
    FPS_BROWSER_APP_PROFILE_STRING=Internet Explorer
    FPS_BROWSER_USER_PROFILE_STRING=Default
    Framework40Version=v4.0
    FrameworkDir=C:\Windows\Microsoft.NET\Framework64\
    FrameworkDIR64=C:\Windows\Microsoft.NET\Framework64
    FrameworkVersion=v4.0.30319
    FrameworkVersion64=v4.0.30319
    FSHARPINSTALLDIR=C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\Common7\IDE\CommonExtensions\Microsoft\FSharp\Tools
    HOMEDRIVE=C:
    HOMEPATH=\Users\CONNECT
    INCLUDE=C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.29.30133\include;C:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um;C:\Program Files (x86)\Windows Kits\10\include\10.0.20348.0\ucrt;C:\Program Files (x86)\Windows Kits\10\include\10.0.20348.0\shared;C:\Program Files (x86)\Windows Kits\10\include\10.0.20348.0\um;C:\Program Files (x86)\Windows Kits\10\include\10.0.20348.0\winrt;C:\Program Files (x86)\Windows Kits\10\include\10.0.20348.0\cppwinrt
    ITWINURLS=_URLITWINCHANGELOG _URLITWINDOCS _URLITWINDOCS _URLITWINGETSTARTED _URLITWINGIT _URLITWINJS _URLITWINMEDIUM _URLITWINTRAINING
    LA_ASSEMBLIES=\\Asterix\DevDir8\LA_Solutions\V10\DotNet\assemblies\
    LA_INCLUDE=Q:\LA_Solutions\V10\include\
    LA_INCLUDE_VS=\\Asterix\DevDir8\LA_Solutions\V10\include\
    LA_LIBS=Q:\LA_Solutions\V10\library\
    LA_LIBS_VS=\\Asterix\DevDir8\LA_Solutions\V10\Library\
    LA_LICENSOR=G:\Program Files\LA_Solutions\COM Servers\Licensor\
    LA_LOCAL_COM_SERVERS_X64=G:\Program Files\LA_Solutions\COM Servers\
    LIB=C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.29.30133\lib\x64;C:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\lib\um\x64;C:\Program Files (x86)\Windows Kits\10\lib\10.0.20348.0\ucrt\x64;C:\Program Files (x86)\Windows Kits\10\lib\10.0.20348.0\um\x64
    LIBPATH=C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.29.30133\lib\x64;C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.29.30133\lib\x86\store\references;C:\Program Files (x86)\Windows Kits\10\UnionMetadata\10.0.20348.0;C:\Program Files (x86)\Windows Kits\10\References\10.0.20348.0;C:\Windows\Microsoft.NET\Framework64\v4.0.30319
    LOCALAPPDATA=C:\Users\CONNECT\AppData\Local
    LOGONSERVER=\\CELERATRIX64
    MS=C:\PROGRA~1\Bentley\MICROS~1\MICROS~1\
    MSMDE=C:\PROGRA~1\Bentley\MICROS~1\SDK\
    MSMDE_OUTPUT=C:\Users\CONNECT\AppData\Local\Temp\Bentley\MICROS~1\
    MSURLS=_URLMSDOWNLOAD
    NETFXSDKDir=C:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\
    NUMBER_OF_PROCESSORS=8
    OneDrive=C:\Users\CONNECT\OneDrive
    OneDriveConsumer=C:\Users\CONNECT\OneDrive
    OS=Windows_NT
    OSARCH=64-bit
    OSDESC=Microsoft Windows 10.0.19042.1526
    Path=C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\Common7\IDE\\Extensions\Microsoft\IntelliCode\CLI;C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.29.30133\bin\HostX64\x64;C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\Common7\IDE\VC\VCPackages;C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\Common7\IDE\CommonExtensions\Microsoft\TestWindow;C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer;C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Current\bin\Roslyn;C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\Team Tools\Performance Tools\x64;C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\Team Tools\Performance Tools;C:\Program Files (x86)\Microsoft Visual Studio\Shared\Common\VSPerfCollectionTools\vs2019\\x64;C:\Program Files (x86)\Microsoft Visual Studio\Shared\Common\VSPerfCollectionTools\vs2019\;C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.8 Tools\x64\;C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\Common7\IDE\CommonExtensions\Microsoft\FSharp\Tools;C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\Common7\Tools\devinit;C:\Program Files (x86)\Windows Kits\10\bin\10.0.20348.0\x64;C:\Program Files (x86)\Windows Kits\10\bin\x64;C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\\MSBuild\Current\Bin;C:\Windows\Microsoft.NET\Framework64\v4.0.30319;C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\Common7\IDE\;C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\Common7\Tools\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files\dotnet\;C:\WINDOWS\System32\OpenSSH\;"C:\Users\CONNECT\AppData\Local\Microsoft\WindowsApps;C:\PROGRA~1\Bentley\MICROS~1\MICROS~1\;C:\Progra~1\Bentley\Micros~1\SDK\bin\";;C:\Users\CONNECT\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\CONNECT\AppData\Local\Microsoft\WindowsApps;C:\Users\CONNECT\.dotnet\tools;C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\Common7\IDE\VC\Linux\bin\ConnectionManagerExe;C:\Program Files\Bentley\MicroStation CONNECT Edition\SDK\bin\;C:\Program Files\Bentley\MicroStation CONNECT Edition\SDK\MigrationTools\;C:\Program Files\Bentley\MicroStation CONNECT Edition\MicroStation\
    PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
    PROCESSOR_ARCHITECTURE=AMD64
    PROCESSOR_IDENTIFIER=AMD64 Family 23 Model 17 Stepping 0, AuthenticAMD
    PROCESSOR_LEVEL=23
    PROCESSOR_REVISION=1100
    ProgramData=C:\ProgramData
    ProgramFiles=C:\Program Files
    ProgramFiles(x86)=C:\Program Files (x86)
    ProgramW6432=C:\Program Files
    PROMPT=$P$G
    PSModulePath=C:\Program Files\WindowsPowerShell\Modules;C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules
    PUBLIC=C:\Users\Public
    SDK=C:\Program Files\Bentley\MicroStation CONNECT Edition\SDK\
    SDKALTDIRS=SDKALTDOCS SDKALTEXAMPLES SDKALTINC SDKALTLIB SDKALTMKI SDKALTPROD SDKALTPRODWORKSPACES SDKALTREMAP
    SDKARGS=SDK SDKPROD SDKTEMP
    SDKASSEMBLIES=C:\Program Files\Bentley\MicroStation CONNECT Edition\MicroStation\Assemblies\
    SDKBIN=C:\Program Files\Bentley\MicroStation CONNECT Edition\SDK\bin\
    SDKBUILDTOOL=bmake.exe
    SDKDIRS=SDK SDKPROD SDKTEMP SDKASSEMBLIES SDKBIN SDKDOCS SDKEXAMPLES SDKINC SDKLIB SDKMKI SDKREMAP SDKOUTDIR SDKPRODWORKSPACES
    SDKDOCS=C:\Program Files\Bentley\MicroStation CONNECT Edition\SDK\Documentation\
    SDKEXAMPLES=C:\PROGRA~1\Bentley\MICROS~1\SDK\examples\
    SDKINC=C:\Program Files\Bentley\MicroStation CONNECT Edition\SDK\include\
    SDKLIB=C:\Program Files\Bentley\MicroStation CONNECT Edition\SDK\library\
    SDKMKI=C:\Program Files\Bentley\MicroStation CONNECT Edition\SDK\mki\
    SDKNAME=MicroStation CONNECT Edition SDK
    SDKNETVER=v4.6.2
    SDKOUTDIR=C:\Program Files\Bentley\MicroStation CONNECT Edition\MicroStation\Mdlapps\
    SDKPOSTPROCFILE=mscesdk1000_postproc.bat
    SDKPREPROCFILE=mscesdk1000_preproc.bat
    SDKPROD=C:\Program Files\Bentley\MicroStation CONNECT Edition\MicroStation\
    SDKPRODWORKSPACES=C:\ProgramData\Bentley\MicroStation CONNECT Edition\Configuration\Workspaces\
    SDKREMAP=C:\Program Files\Bentley\MicroStation CONNECT Edition\SDK\MigrationTools\
    SDKSHELLVARS=BMAKE_OPT MS MSMDE MSMDE_OUTPUT PATH DEFAULT_TARGET_PROCESSOR_ARCHITECTURE DLM_NO_SIGN
    SDKSHORTNAME=mscesdk
    SDKSHORTVER=1000
    SDKTEMP=C:\Users\CONNECT\AppData\Local\temp\Bentley\MicroStationSDK\
    SDKTITLE=MicroStation CONNECT Edition SDK (v10.16.02.22, Standard User, 64-bit) [REQUIRES: Visual Studio 2019, .NET Framework v4.6.2]
    SDKURLS=_URLSDKANNOUNCEMENTS _URLSDKAPIS _URLSDKBLOGS _URLSDKCHANGELOGS _URLSDKDOWNLOAD _URLSDKFORUM _URLSDKGETSTARTED _URLSDKIDEAS _URLSDKLEARN _URLSDKMEDIUM _URLSDKMIGRATION _URLSDKMORETIPS _URLSDKPREVIEWS _URLSDKQUESTIONS _URLSDKRELEASES _URLSDKROADMAP _URLSDKTRAINING _URLSDKVIDEOS _URLSDKWIKI
    SDKVER=10.16.02.22
    SDKVSENV=C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\Common7\Tools\VsDevCmd.bat
    SDKVSMAJORVER=16
    SDKVSVER=2019
    SESSIONNAME=Console
    SHELLARCH=64-bit
    SHELLARGS="C:\Program Files\Bentley\MicroStation CONNECT Edition\MicroStation\" "C:\Program Files\Bentley\MicroStation CONNECT Edition\SDK\"
    SHELLCMDLINE="C:\Windows\System32\cmd.exe" /x /k ""C:\Program Files\Bentley\MicroStation CONNECT Edition\SDK\MicroStationDeveloperShell.bat" "C:\Program Files\Bentley\MicroStation CONNECT Edition\MicroStation\" "C:\Program Files\Bentley\MicroStation CONNECT Edition\SDK\""
    SHELLDIR=C:\Program Files\Bentley\MicroStation CONNECT Edition\SDK\bin\
    SystemDrive=C:
    SystemRoot=C:\WINDOWS
    TEMP=G:\TEMP
    TMP=G:\TEMP
    UCRTVersion=10.0.20348.0
    UniversalCRTSdkDir=C:\Program Files (x86)\Windows Kits\10\
    USERDOMAIN=CELERATRIX64
    USERDOMAIN_ROAMINGPROFILE=CELERATRIX64
    USERELEVATION=Standard
    USERNAME=CONNECT
    USERPROFILE=C:\Users\CONNECT
    VCBIN=C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\bin\
    VCIDEInstallDir=C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\Common7\IDE\VC\
    VCINC=C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\include\
    VCINSTALLDIR=C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\
    VCLIB=C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\lib\
    VCTOOLS=C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\
    VCToolsInstallDir=C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.29.30133\
    VCToolsRedistDir=C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Redist\MSVC\14.29.30133\
    VCToolsVersion=14.29.30133
    VisualStudioVersion=16.0
    VS160COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\Common7\Tools\
    VSCMD_ARG_app_plat=Desktop
    VSCMD_ARG_HOST_ARCH=x64
    VSCMD_ARG_TGT_ARCH=x64
    VSCMD_VER=16.11.10
    VSDIR=C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\
    VSDIRS=VSDIR VCBIN VCINC VCLIB VCTOOLS
    VSINSTALLDIR=C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\
    VSINSTALLERDIR=C:\Program Files (x86)\Microsoft Visual Studio\Installer\
    VSURLS=_URLVSANNOUNCEMENTS _URLVSDOWNLOADS _URLVSLIFECYCLE _URLVSNOTICES _URLVSROADMAP
    windir=C:\WINDOWS
    WindowsLibPath=C:\Program Files (x86)\Windows Kits\10\UnionMetadata\10.0.20348.0;C:\Program Files (x86)\Windows Kits\10\References\10.0.20348.0
    WindowsSdkBinPath=C:\Program Files (x86)\Windows Kits\10\bin\
    WindowsSdkDir=C:\Program Files (x86)\Windows Kits\10\
    WindowsSDKLibVersion=10.0.20348.0\
    WindowsSdkVerBinPath=C:\Program Files (x86)\Windows Kits\10\bin\10.0.20348.0\
    WindowsSDKVersion=10.0.20348.0\
    WindowsSDK_ExecutablePath_x64=C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.8 Tools\x64\
    WindowsSDK_ExecutablePath_x86=C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.8 Tools\
    _APPVARS=SDK SDKPROD SDKTEMP SDKASSEMBLIES SDKBIN SDKDOCS SDKEXAMPLES SDKINC SDKLIB SDKMKI SDKREMAP SDKOUTDIR SDKPRODWORKSPACES _ARG _ARG1 _ARG2 SDKNETVER SDKVER SDKVSVER
    _ARG=$SDKBIN:%a
    _ARG2=$SDKBIN:%a
    _FLT_COMMENTS=\/\/
    _FLT_DOCTAGS=@addtogroup @alinkjoin @alinkgroup @begingroup @brief @bsiclass @bsimethod @bsiinterface @bsistruct @code @cond @defineAlinkgroup @description @endcode @endcond @endif @endverbatim @if @ingroup @note @page @param @ref @remark @requiredlibrary @return @section @see @verbatim
    _FLT_EVENTDEFS=Async \<class _EXPORT \<friend \<struct SYNC \<template \<typedef TYPEDEF \<virtual
    _FLT_EVENTDEFS2=Async \<class \<friend \<struct SYNC \<template \<typedef TYPEDEF \<virtual
    _FLT_EVENTFLT=class enum virtual
    _FLT_EVENTFLT2=\<class \<enum \<typedef[^(^::]*struct
    _FLT_EVENTS=Callback Delegate override Sync Func_ Function Handler Hook SystemFunc =*0
    _FLT_EXPORTS=__declspec dllimport dllexport DLLIMPORT DLLEXPORT EXPORT extern
    _FLT_FIRSTCHARS=^*^@^/\<|=
    _FLT_GENDEFS=define Async \<class \<const \<enum \<friend \<struct SYNC \<template \<typedef TYPEDEF \<virtual
    _FLT_VIRT=\<virtual
    _SDKCOMMONENV=C:\Program Files\Bentley\MicroStation CONNECT Edition\SDK\bin\SDKCommonEnv.bat
    _SDKDISPCMDLINE=1
    _SDKDISPCOMMONENV=0
    _SDKDISPTIPS=1
    _SDKDISPWININFO=1
    _SDKFORUMALLFORUMS=All Forums
    _SDKFORUMNAME=MicroStation Programming
    _SDKFORUMPARENTNAME=Bentley Communities
    _SDKHELP=C:\Program Files\Bentley\MicroStation CONNECT Edition\SDK\Documentation\sdkhelp.chm
    _SDKHELPNET=C:\Program Files\Bentley\MicroStation CONNECT Edition\SDK\Documentation\DgnPlatformNET.chm
    _SDKINITMACROS=1
    _SDKINITVS=1
    _SDKPRIMARYDIRS=SDK SDKPROD SDKTEMP SDKASSEMBLIES SDKBIN SDKDOCS SDKEXAMPLES SDKINC SDKLIB SDKMKI SDKREMAP SDKOUTDIR
    _SDKREADME=C:\Program Files\Bentley\MicroStation CONNECT Edition\SDK\Documentation\Readme\index.html
    _SDKSEARCHALLFORUMS=1
    _SDKSEARCHALTPATHS=0
    _SDKSEARCHCLEARSCREEN=1
    _SDKSEARCHCOLOR=1E
    _SDKSEARCHDEFSREGEX="^#define.*.* ^struct.*.* ^typedef.*.* ^enum.*.* ^class.*.* ^MdlFunctionP.*.* .*_EXPORT.*.* .*_TYPEDEFS.*.*"
    _SDKSEARCHFORUMONLYFILTER=&serpgroup=444
    _SDKSEARCHFORUMS=1
    _SDKSEARCHFORUMSPROMPT=1
    _SDKSEARCHPROMPT=Would you like to continue with a web search on:
    _SDKSEARCHUSEWILDCARDS=0
    _SDKSEARCHVERBOSEMODE=0
    _SDKSEARCHVSLOCATIONS=0
    _SDKSEARCHWILDCARD=*
    _SDKSECONDARYDIRS=SDKPRODWORKSPACES
    _SDKSHELLELEVATEDCOLOR=07
    _SDKSHELLSTANDARDCOLOR=0E
    _SDKTIPSFILE=C:\Program Files\Bentley\MicroStation CONNECT Edition\SDK\bin\SDKTips.txt
    _SDKTRACE=0
    _SDKUSE8DOT3=1
    _SDKVARDISPLIST=BMAKE_OPT MS MSMDE MSMDE_OUTPUT PATH DEFAULT_TARGET_PROCESSOR_ARCHITECTURE DLM_NO_SIGN SHELL SDK SDKPROD SDKTEMP SDKASSEMBLIES SDKBIN SDKDOCS SDKEXAMPLES SDKINC SDKLIB SDKMKI SDKREMAP SDKOUTDIR SDKPRODWORKSPACES SDKBUILDTOOL SDKTITLE SDKVER VC VS
    _SDKVSENV=C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\Common7\Tools\VsDevCmd.bat
    _SDKVSTOOLCMD=VsDevCmd.bat
    _SDKVSTOOLDIR=C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\Common7\Tools\
    _URLBDN=https://bdn.bentley.com/
    _URLBDNCONTACTUS=https://bdn.bentley.com/contactus
    _URLBDNDOWNLOADS=https://softwaredownloads.bentley.com/en/searchdetails?qsearchterm=SDK
    _URLBDNSDKS=https://bdn.bentley.com/#development_tools
    _URLBDNSUPPORT=https://communities.bentley.com/products/programming/w/wiki/47237/support
    _URLBDNVIDEOS=https://www.youtube.com/playlist?list=PLZVg-nvIew0e4p8Qjx4r0XXVQqc3zbYtG
    _URLBENTLEYDEVELOPER=https://developer.bentley.com/
    _URLBENTLEYFTP=ftp://ftp.bentley.com/pub/incoming
    _URLBENTLEYLIFECYCLE=https://communities.bentley.com/communities/everything_else_community/bentley-support-policy/w/bentley-support-policy
    _URLBENTLEYVIDEOS=https://www.youtube.com/channel/UCzEPv7twptpXXDVvAYplJEA
    _URLITWINCHANGELOG=https://www.itwinjs.org/changehistory/
    _URLITWINDOCS=https://www.itwinjs.org/learning/
    _URLITWINFORUM=https://www.itwinjs.org/learning/communityresources/
    _URLITWINGETSTARTED=https://www.itwinjs.org/getting-started/
    _URLITWINGIT=https://github.com/imodeljs/imodeljs
    _URLITWINJS=https://www.itwinjs.org/
    _URLITWINMEDIUM=https://medium.com/itwinjs
    _URLITWINTRAINING=https://www.youtube.com/playlist?list=PL6YCKeNfXXd_dXq4u9vtSFfsP3OTVcL8N
    _URLITWINVIDEOS=https://www.youtube.com/channel/UCs4HxiWI4o4bzayG5QnxaIA/featured
    _URLITWINWIKI=https://communities.bentley.com/products/programming/w/wiki/44017/digital-twins-and-imodels
    _URLMSDOWNLOAD=https://softwaredownloads.bentley.com/en/searchdetails?qsearchterm=MicroStation%20CONNECT%20Edition%20x64
    _URLSDKANNOUNCEMENTS=https://communities.bentley.com/products/microstation/f/microstation-announcements-forum/tags/SDK
    _URLSDKAPIS=https://communities.bentley.com/products/programming/microstation_programming/w/wiki/42961/connect-apis
    _URLSDKBLOGS=https://communities.bentley.com/products/programming/microstation_programming/b/weblog
    _URLSDKCHANGELOGS=https://communities.bentley.com/products/programming/microstation_programming/w/wiki/47925/changelogs
    _URLSDKDOWNLOAD=https://softwaredownloads.bentley.com/en/searchdetails?qsearchterm=MicroStation%20CONNECT%20Edition%20SDK%20x64
    _URLSDKFORUM=https://communities.bentley.com/products/programming/microstation_programming/
    _URLSDKGETSTARTED=https://communities.bentley.com/products/programming/microstation_programming/w/wiki/48536/microstation-sdk-getting-started
    _URLSDKIDEAS=https://communities.bentley.com/products/programming/microstation_programming/i/microstation-programming---ideas
    _URLSDKLEARN=https://learn.bentley.com/app/Public/ViewLearningPathWithMasterCourseExpanded?lpId=112568
    _URLSDKMEDIUM=https://medium.com/microstation-connect-edition-sdk
    _URLSDKMIGRATION=https://communities.bentley.com/products/programming/microstation_programming/w/wiki/41184/developers-migrating-to-microstation-connect
    _URLSDKMORETIPS=https://communities.bentley.com/products/programming/microstation_programming/w/wiki/46936/sdktips-and-sdkmacros
    _URLSDKPREVIEWS=https://communities.bentley.com/products/programming/microstation_programming/w/wiki/39878/sdk-previews
    _URLSDKQUESTIONS=https://communities.bentley.com/products/programming/microstation_programming/f/microstation-programming---forum/77384/please-read-microstation-programming-forum-best-practices
    _URLSDKRELEASES=https://communities.bentley.com/products/programming/microstation_programming/w/wiki/45108/sdk-releases
    _URLSDKROADMAP=https://communities.bentley.com/products/programming/microstation_programming/w/wiki/45162/roadmap
    _URLSDKSEARCHPOST="#serpsort=date%20desc
    _URLSDKSEARCHPRE="https://communities.bentley.com/search?q="
    _URLSDKTRAINING=https://communities.bentley.com/products/programming/microstation_programming/w/wiki/52090/training
    _URLSDKVIDEOS=https://www.youtube.com/playlist?list=PLZVg-nvIew0e4p8Qjx4r0XXVQqc3zbYtG
    _URLSDKWIKI=https://communities.bentley.com/products/programming/microstation_programming/w/wiki
    _URLVSANNOUNCEMENTS=https://docs.microsoft.com/en-us/visualstudio/releases/2019/release-notes
    _URLVSDOWNLOADS=https://developer.microsoft.com/en-us/windows/downloads/
    _URLVSLIFECYCLE=https://docs.microsoft.com/en-us/lifecycle/products/visual-studio-2019
    _URLVSNOTICES=https://visualstudio.microsoft.com/license-terms/vs_thirdpartynotices/
    _URLVSROADMAP=https://docs.microsoft.com/en-us/visualstudio/productinfo/vs-roadmap
    __devinit_path=C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\Common7\Tools\devinit\devinit.exe
    __DOTNET_ADD_64BIT=1
    __DOTNET_PREFERRED_BITNESS=64
    __VSCMD_PREINIT_PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files\dotnet\;C:\WINDOWS\System32\OpenSSH\;"C:\Users\CONNECT\AppData\Local\Microsoft\WindowsApps;C:\PROGRA~1\Bentley\MICROS~1\MICROS~1\;C:\Progra~1\Bentley\Micros~1\SDK\bin\";;C:\Users\CONNECT\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\CONNECT\AppData\Local\Microsoft\WindowsApps;C:\Users\CONNECT\.dotnet\tools
    __VSCMD_script_err_count=0
    

    Ignore those beginning LA_ and BOOST_

     
    Regards, Jon Summers
    LA Solutions

  • I'm guessing my problem is that the SDK is looking for the wrong version / in the wrong place for the VS?

    This SDK is looking for the correct version of Visual Studio (VS2019) in the correct location (you) installed.
    As mentioned above, I suggest installing Visual Studio 2019 Professional so everything will work correctly.

    HTH,
    Bob



    Answer Verified By: Lachlan Hand