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

System.Drawing.Common Compile Error #1

Open
DogukanErdem opened this issue Mar 7, 2019 · 3 comments
Open

System.Drawing.Common Compile Error #1

DogukanErdem opened this issue Mar 7, 2019 · 3 comments

Comments

@DogukanErdem
Copy link

Hi, I imported QRCoder.Unity using NuGet for Unity and I got these errors;

-Assembly 'Assets/Packages/QRCoder.1.3.4/lib/netstandard2.0/QRCoder.dll' will not be loaded due to errors: Unable to resolve reference 'System.Drawing.Common'. Is the assembly missing or incompatible with the current platform?

-Assembly 'Assets/Packages/QRCoder.Unity.1.0.2/lib/net35/QRCoder.Unity.dll' will not be loaded due to errors: Reference has errors 'QRCoder'.

-Assembly 'Library/ScriptAssemblies/Assembly-CSharp.dll' will not be loaded due to errors: Reference has errors 'QRCoder'.

Environment:
Unity3D 2018.3.2f1
Scripting Runtime Version : .NET 4.x

@DrDragren
Copy link

@DogukanErdem, I was wondering if you ever solved this problem since it also happened to me but the errors I had are these:

-Assembly 'Assets/Packages/QRCoder.1.3.4/lib/netstandard2.0/QRCoder.dll' will not be loaded due to errors: Unable to resolve reference 'System.Drawing.Common'. Is the assembly missing or incompatible with the current platform? Reference validation can be disabled in the Plugin Inspector.

-Assembly 'Assets/Packages/QRCoder.Unity.1.0.2/lib/net35/QRCoder.Unity.dll' will not be loaded due to errors: Reference has errors 'QRCoder'.

The environment I was in is:

  • Unity 2019.2.3f1 Personal
  • Scripting Runtime Version: .NET 2.0

When I tried changing it from .NET 2.0 to 4.x, I got 2 additional errors:

-Assembly 'Assets/Packages/QRCoder.1.3.4/lib/net40/QRCoder.dll' will not be loaded due to errors: Unable to resolve reference 'PresentationCore'. Is the assembly missing or incompatible with the current platform?Reference validation can be disabled in the Plugin Inspector.

-Assembly 'Assets/Packages/QRCoder.Unity.1.0.2/lib/net40/QRCoder.Unity.dll' will not be loaded due to errors: Reference has errors 'QRCoder'.

@shopsoft-srl
Copy link

If someone runs into this, this is how I got it working:

Download the following packages from nuget directly:

Add the following versions for each package as references (just add the dlls as assets) to the unity project:

  • for QRCoder.Unity add the .net 4.0 version
  • for QRCoder add the netstandard 2.0 version
  • for System.Drawing.Common add the netstandard 2.0 version

The environment I was in is:

  • Unity 2019.3.5f1 Personal
  • Scripting Runtime Version: .NET 4.x

@sominklein
Copy link

Little update what versions worked for me:
the latest versions I could download did not work for me and I could not figure out how to switch to different net versions on NuGet for Unity. I ended up downloading the zip as @kinderplay mentioned but with these specific versions. Newer versions might work as well but these I checked:

Unity 2022.3.8f1

QRCoder.Unity.1.0.3 net4.0
QRCoder 1.3.7 net2.0
system.drawing.common.5.0.3 net2.0

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

4 participants