ArgumentException: The Assembly Mono.WebBrowser is referenced by System.Windows.Forms ('Assets/Plugins/System.Windows.Forms.dll'). But the dll is not allowed to be included or could not be found.

最近有个项目要用到System.Windows.Forms.dll,在Unity编辑器里用着还好好的,但是一导出就给我报错,让我十分不爽。

于是请教百度,搜出了五花八门的答案,没一个能解决我的问题的,更不爽了!
好在功夫不负有心人终于找到了靠谱的答案。(原链接)
只需要File->Build Settings->Player Settings...->Player->Other Settings。找到标黑的Configuration,将其中的Api compatibility Level*改成.NET 4.x即可

最后再build一下,完美!

posted @ 2019-12-02 20:05  菜鸟少侠  阅读(2931)  评论(1编辑  收藏  举报