question

RuneAamodt avatar image
0 Votes"
RuneAamodt asked cooldadtx answered

Designer unable to load type from assembly 'Microsoft.VisualStudio.DesignTools.Interaction'

I'm converting my .NET Framework 4.8 application to .NET 5, and have made it to the point where I'm able to build and run the application without issue, but when opening some of my User Controls in the Forms designer, I get a System.TypeLoadException with the following message:

Could not load type 'Microsoft.VisualStudio.DesignTools.Extensibility.Actions.SuggestedActionProvider' from assembly 'Microsoft.VisualStudio.DesignTools.Interaction, Version=16.9.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.

Any ideas what could be causing this issue and how to get around it? I really need to be able to use the designer to maintain these forms, and was hoping the .NET 5 desktop Forms support was strong enough at this point that I'd be able to migrate without running into too many difficulties.

windows-formsvs-debugging
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

cooldadtx avatar image
0 Votes"
cooldadtx answered

This isn't a .NET 5 forms library issue but rather the Windows Forms Designer support provided by VS which is completely separate. In VS are you using the new Windows Forms Designer preview features (under Tools\Options -> Preview Features). If not then the designer won't work with .NET Core/5 at all. Once enabled you can then use the designer for .NET Core/5 projects. However it is still in beta, there are known issues and some features are not implemented yet. The team mentions periodically what new controls the designer supports and what features have been added.

You should report issues with the designer to the team using Visual Studio's Report a Problem tool. Replicate the problem in VS using the problem reporter so they can look at what is going on under the hood.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.