一个老项目,之前是5.3.3版本,最近需要更新功能,用2018打开,发布出现如下错误:
ArgumentException: The Assembly System.Drawing is referenced by System.Windows.Forms (‘Assets/ProjectFiles/Plugins/System.Windows.Forms.dll’). But the dll is not allowed to be included or could not be found.
尝试了半天发现,需要修改 API Compatibility Level
地址如下:
Edit -> Project Settings -> Player->Other Setting -> API Compatibility Level -> .Net 2.0
p.s. 我的System.Windows.Forms直接放在了assets下面的plugins里面。