安卓打包,出现错误。
项目工程文件
'X:\Data Backup\UnityProjects\MXD000\Assets\Plugins\System.Drawing.dll'
和 Unity 2020.1.2f1
'D:\Program Files\Unity2020.1.2f1\Editor\Data\NetStandard\compat\2.0.0\shims\netfx\System.Drawing.dll'
出现了两个同名System.Drawing.dll文件
Microsoft (R) Visual C# Compiler version 2.9.1.65535 (9d34608e)
Copyright (C) Microsoft Corporation. All rights reserved.
error CS1703: Multiple assemblies with equivalent identity have been imported: 'X:\Data Backup\UnityProjects\MXD000\Assets\Plugins\System.Drawing.dll' and 'D:\Program Files\Unity2020.1.2f1\Editor\Data\NetStandard\compat\2.0.0\shims\netfx\System.Drawing.dll'. Remove one of the duplicate references.
把项目工程的System.Drawing.dll删除后,发现 代码不能引用System.Drawing,出现错误。
error CS0234: The type or namespace name 'Image' does not exist in the namespace '