SDK and Visual Studio 2022 upgradation

Currently, we are using Microstation CONNECT Edition SDK(v10.15,64bit) which requires Visual studio Professional software 2017– screenshot attached
we are planning to upgrade Visual studio software - Professional 2022. Request to specify whether SDK V10.15 is supported with Visual Studio Professional 2022 or which version of
SDK needs to be used after upgradation?

Parents Reply Children
  • To use Visual Studio 2022 (any edition) is the best solution in my opinion.

    I would note that with VS 2022, there seems to be some additional steps when working with WPF and custom user controls that rely on the Bentley API. Controls that display properly in VS 2019 designer and prior will not render properly on VS 2022 unless you insert several lines of

    if (DesignerProperties.GetIsInDesignMode(new DependencyObject()))
        return

    anywhere that would be accessing the Bentley API on initialization.

    Running your plugin will not cause any exceptions and will display fine at runtime. This is strictly a design time issue.

    There is no meaningful exception information when you encounter this rendering issue, so finding where you need to insert this line can be tedious.   As such, I would not recommend moving a large project written with WPF over from VS 2019 to VS 2022.

    Also note that if you are using MVVMLight, this has been deprecated in Microsofts attempt to migrate to Windows MVVM Community Toolkit (which is not available in .net 4.6.2)

    Because of this, there will be exceptions in the VS 2022 designer that cannot be fixed without some annoying #ifdef solutions that are determined off of the current build mode..

    Alternatively, you may also be able to find an alternative MVVM framework, but if you are working with an existing project that utilizes Mvvmlight, you will run into this problem :)