Could not load type 'System.Windows.Forms.ToolBar' from assembly 'System.Windows.Forms...'

Open
#302 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
csharp
Domain
desktop

Research direction

Start by reproducing the TypeLoadException when constructing Microsoft.Msagl.GraphViewerGdi.GViewer in a project targeting net6.0-windows7.0. Review the NU1701 compatibility warning and related issue #301, then verify that the viewer loads without the System.Windows.Forms.ToolBar error and that the package is compatible with the target framework.

Written by the indexing model from the issue text.

Description

System.TypeLoadException
HResult=0x80131522
Message=System.TypeLoadException
HResult=0x80131522
Message=Could not load type 'System.Windows.Forms.ToolBar' from assembly 'System.Windows.Forms, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
Source=Microsoft.Msagl.GraphViewerGdi
StackTrace:
at Microsoft.Msagl.GraphViewerGdi.GViewer..ctor(), Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
Source=Microsoft.Msagl.GraphViewerGdi
StackTrace:
at Microsoft.Msagl.GraphViewerGdi.GViewer..ctor()...

might be related issue:
NU1701 This package may not be fully compatible with your project (target framework 'net6.0-windows7.0') #301

Dominant language
C#
Stars
1.5k
Forks
319
Avg merge
38m
Merged PRs (30d)
1

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from microsoft/automatic-graph-layout

All issues in microsoft/automatic-graph-layout

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.