Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not load file or assembly 'System.Drawing.Common' #5

Closed
nfriend opened this issue Oct 17, 2018 · 4 comments
Closed

Could not load file or assembly 'System.Drawing.Common' #5

nfriend opened this issue Oct 17, 2018 · 4 comments

Comments

@nfriend
Copy link

nfriend commented Oct 17, 2018

I get this error when calling highlighter.Highlight("JavaScript", myString):

System.IO.FileNotFoundException: 'Could not load file or assembly 'System.Drawing.Common, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'. The system cannot find the file specified.'

I installed this library via Nuget.

I'm using .NET Core 2.1.302. Is this library compatible with .NET Core?

@nfriend
Copy link
Author

nfriend commented Oct 17, 2018

I was able to manually install System.Drawing.Common from Nuget, and this resolved the issue. Perhaps this library needs to update its Nuget dependencies so that System.Drawing.Common is included by default?

@thomasjo
Copy link
Owner

This library was originally created about 14 years ago, and the last version of the .NET framework that I tested it with was v4.0. I suspect it won't be difficult to support .NET Core out of the box, but I don't do any .NET development these days and I no longer actively maintain this library.

I would be happy to accept a PR that resolves the issue though!

@thomasjo
Copy link
Owner

thomasjo commented Feb 6, 2022

This should have been resolved by merging #9. If not, please leave a reply here with any necessary details about versions, platforms, and whatnot.

@thomasjo thomasjo closed this as completed Feb 6, 2022
@philippjbauer
Copy link

Added PR #16. System.Drawing is only supported on Windows. This enables use with .NET on macOS / Linux systems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants