Search code examples
c#asp.netsystem.drawing

CoreCompact.System.Drawing implementation


I know I'm being thick but I am having trouble implementing a new 'using' directory for my .NET Core project.

I have downloaded the necessary files for CoreCompact.System.Drawing (https://github.com/CoreCompat/CoreCompat)

I simply have no idea how to implement the folders so that I can start using this directory and subsequently use the system.drawing objects that are not supported in Core projects.

I am new to ASP.Net but have been studying C# for long enough that I don't need too detailed a guide.


Solution

  • There's no need to use CoreCompat.System.Drawing anymore. In fact, the author says you shouldn't. The reason? Microsoft provides an official System.Drawing.Common NuGet package now.

    To install:

    1. Select the Tools menu
    2. NuGet package manager
    3. Manage NuGet packages for solution
    4. Click Browse tab
    5. Search for System.Drawing.Common
    6. Select the Microsoft package
    7. Tick/check your project on the right-hand panel.
    8. Click Install
    9. Agree to the licence agreement.