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?
Hi Juho,
please follow the best practices and specify used product, its version (build number) and also SDK version.
Juho Selenius said:Any idea what's causing this?
Did you start Visual Studio from SDK shell?
With regards,
Jan
Bentley Accredited Developer: iTwin Platform - AssociateLabyrinth Technology | dev.notes() | cad.point
I'm sorry. I'm using ORD CE 2021 R1, ORD CE 10.10 SDK and VS2022. I've tried starting from the SDK shell and as described in this video: https://communities.bentley.com/products/programming/civil_programming/w/wiki/59590/video-simple-way-to-get-started.
Both ways I end up with the same result.
Hi Juho Selenius,
Having this installed software:
Running these steps, I get these results:
HTH,Bob
Hi Bob,
thanks for the tips.
If I run the same steps, these are my results:
I also noticed now that there's a message about .NET framework when I start bmake:
-Juho
You may want to set your OBD Developer Shell (short cut properties) to Run As Administrator.
Yellow text is like a warning wrt elevation status, where if running as admin you should see White text in your shell (like my image).
Please give that a try and let us know if that helps resolve the issue or you need further help.
Thank you,Bob
Hi,
I get the same results running the shell as admin.
Unfortunately it appears the OBD SDK does not pull the latest changes from the MicroStation CONNECT Edition SDK development environment (is a point in time static snapshot - out of sync w/the latest changes) and does not provide a "build verbose" option.
Given that difference you can approximate the (missing) "build verbose" functionality by doing these steps:
set > %temp%\build.txt & doskey /macros >> %temp%\build.txt & bmake +avilC ManagedSDKExample.mke >> %temp%\build.txt