Skip to main content
Microsoft Dynamics GP forum
Unanswered

Building an application with VS 2022 fails when attempting to add Dynamics GP form.

editSubscribe (0) ShareShare
ReportReport
Posted on by 75,730

I have run into the same issue as described in this forum discussion when using VS 2022.

https://community.dynamics.com/gp/f/microsoft-dynamics-gp-forum/450713/microsoft-dexterity-shell-dexuiform

When trying to add a Dynamics GP Form I get

“The designer could not be shown for this file because none of the classes within it can be designed. The designer inspected the following classes in the file: DynamicsGPForm1—The base class ‘Microsoft.Dexterity.Shell.DexUIForm’ could not be loaded. Ensure the assembly has been referenced and that all projects have been built.”

This was using VS 2022. If I take the same project and load it using VS 2019 I can add the form with no issues.

Is there a way to add a Dynamics GP form using the extensions for VS 2022?

Attachments
  • Tim Wappat Profile Picture
    Tim Wappat 5,701 on at
    RE: Building an application with VS 2022 fails when attempting to add Dynamics GP form.

    This is a change where Visual Studio changed in 2022 from being 32bit application to a 64bit application.

    You can make a AnyCPU build target in visual studio for when you need to edit forms, then switch back to 32bit for debug and final build.

    Details in this blog post...

    timwappat.info/.../Dynamics_GP_Addins_VisualSudio2022

    There is a new switch in latest releases of Visual Studio. I've not tested with GP yet, but will update the blog post when I have done so.

    Tim.

Helpful resources

Quick Links

New Blog Features Released!

Check out the new community blog features for viewers and authors…

Setting Up Knowledge Sources for Copilot…

Look at how configuring a comprehensive knowledge base is crucial…

Demystifying Copilot with Georg Glantschnig…

Industry experts answer burning questions directly from our amazing Community…

Leaderboard

#1
Andre Arnaud de Calavon Profile Picture

Andre Arnaud de Cal... 283,080 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 222,601 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,138

Featured topics

Product updates

Dynamics 365 release plans