Which version of System.Drawing.Common should ScottPlot depend on?
See original GitHub issueA new version of the System.Drawing.Common package is released with every major .NET version
Which version should ScottPlot depend on? How often (if ever) should it be changed?
Currently ScottPlot 4.0 depends on 4.7.0
and ScottPlot 4.1 depends on 5.0.0
, but these weren’t chosen intentionally
Both could be upgraded to the latest (5.0.2
) but I’m not sure if this would fix problems or cause more pain
Alternatively I could make it so each build target uses the version-matched System.Drawing.Common
Issue Analytics
- State:
- Created 2 years ago
- Comments:13 (13 by maintainers)
Top Results From Across the Web
ScottPlot dependencies - ScottPlot FAQ
ScottPlot 4 depends on the System.Drawing.Common package to render plots. This has special considerations for modern .NET projects depending on which ...
Read more >System.Drawing.Common only supported on Windows - .NET
Drawing. Common depends on. That implementation makes libgdiplus a non-trivial component.
Read more >ScottPlot Changelog
ScottPlot 3.0.3. NuGet packages published 2019-05-29. Update NuGet package to depend on System.Drawing.Common. Contributors.
Read more >System.Drawing.Common 7.0.0
README; Frameworks; Dependencies; Used By; Versions; Release Notes. Provides access to GDI+ graphics functionality. Commonly Used Types: System.Drawing.
Read more >How do I install System.Drawing.Common in a project that ...
Drawings. Common. Example project depends on library and has reference to System. Drawings.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Actually it does work now. I closed VS, deleted the
bin
andobj
folders, edited App.config to delete thebindingRedirect
line, then opened the project in Visual Studio and it worked.I think we’ve converged on a solution here! 🥳
Description of the Problem
Hey I think we may have figured this out!
4.0.0.1
4.0.0.2
When you install version 5 it adds this line to App.config
…but if you downgrade versions to 4.x (the
4.0.0.1
assembly) you’ll be messed-up because you won’t have4.0.0.2
around. Your program will compile, but it may crash in designer view, or when you run it you’ll get an error:Solution
bin
andobj
foldersApp.config
to delete thebindingRedirect
lineScottPlot should target an older version of System.Drawing.Common
Maybe this means the best solution here is to keep ScottPlot depending on an older version of System.Drawing.Common (461?) and let people upgrade if/as their other projects need to.