The type or namespace name 'PointEntity2dInPlan' could not be found

I'm trying to build the ManagedSDKExample in VS, but I get CS0246 errors on multiple .cs-files for PointEntity2dInPlan. Any idea what's causing this?

Parents Reply
  • Hi ,

    Around line 793 the make environment is attempting to locate a 64-bit .NET 4.6.2 framework that is required and appears not to be present.

    Macro (VCVarsQueryRegistry2017.mki:135): VS2017_FrameworkVersion64=$[@realpath $[@registryread "HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\VisualStudio\SxS\VC7", "FrameworkVer64"]]
    [C:\PROGRA~1\Bentley\OPENRO~2\mki\VCVarsQueryRegistry2017.mki], line 136, Conditional open, level = 2.
    Macro (VCVarsQueryRegistry2017.mki:137): VS2017_FrameworkVersion64=v4.0.30319
    Cannot find the .NET framework 64-bit version for this toolset - using default: v4.0.30319

    Can you open the Visual Studio Installer ("C:\Program Files (x86)\Microsoft Visual Studio\Installer\vs_installershell.exe") and check your VS2017 configuration (all components) to see if you have the ".NET Framework 4.6.2 SDK" option checked?

    If by chance this option is checked can you Run (make take a moment to run) and Zip the following command output for me to review/compare against my configuration?

     

    wmic /namespace:\\root\cimv2 path win32_product where "name like '%Microsoft .NET%'" get Name, Version

    The other thing we could compare rather quickly would be the VS Installer Configuration (XML .vsconfig file). Click More > Export Configuration. I am attaching mine for your reference.  I suggest only focusing on the .NET related items checked since I have additional features checked/installed and my VS2017 likely has more options above and beyond the default VS Workload Requirements.

    BentleyOBDSDK-VS2017.zip

    Thank you and HTH,
    Bob



Children