question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

System.Drawing.Common xml docs limited after .NET 6.0

See original GitHub issue
          @JeremyKuhne

Yes, the absence of a README is certainly unfortunate, but there is a much more significant issue - the lack of documentation (hints in Visual Studio) for most elements from System.Drawing.Common:

image

I quickly checked the NuGet packages and found that starting from Net6, the XML file has been significantly slimmed down: image

The line from the V.S. screenshot above ("T:System.Drawing.Drawing2D.GraphicsPath") is only present in version 4.70: image

_Originally posted by @kirsan31 in https://github.com/dotnet/winforms/issues/9729#issuecomment-1681843321_

Issue Analytics

  • State:open
  • Created a month ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
ViktorHofercommented, Aug 18, 2023

System.Drawing.Common uses the intellisense package as the rest of the winforms repository: https://github.com/dotnet/winforms/blob/89f89590ddb6910cc1605ba430b5b72f3ed54fab/src/System.Drawing.Common/src/packaging.targets#L111-L117

The lookup path is here: https://github.com/dotnet/winforms/blob/89f89590ddb6910cc1605ba430b5b72f3ed54fab/eng/packageContent.targets#L6

System.Drawing.Common.xml exists under that path meaning that System.Drawing.Common in winforms should use the “correct” documentation intellisense XML file. All that said, ideally winforms would switch over to compiler generated XML files in the future.

1reaction
JeremyKuhnecommented, Aug 21, 2023

@kirsan31 Can you validate that you see the “better” IntelliSense in 8.0?

Read more comments on GitHub >

github_iconTop Results From Across the Web

System.Drawing.Common only supported on Windows - .NET
Learn about the .NET 6 breaking change where the System.Drawing.Common package is no longer supported on non-Windows operating systems.
Read more >
Remove System.Drawing.Common dependency #1805
ClosedXML is using System.Drawing for working with XLPicture. System.Drawing.Common is dead and buried, since NET6, it only works on Windows ...
Read more >
NET 6 System.Drawing.Common Runtime Switch
The following worked for me. Adding the following line to the .csproj file in a PropertyGroup section:
Read more >
System.Drawing.Common config switch removed - .NET
Prior to .NET 6, using the System.Drawing.Common package did not produce any compile-time warnings, and no run-time exceptions were thrown.
Read more >
System.Drawing.Common 6.0.0
Provides access to GDI+ graphics functionality. Commonly Used Types: System.Drawing.Bitmap System.Drawing.BitmapData System.Drawing.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found