UnityStandaloneFileBrowser icon indicating copy to clipboard operation
UnityStandaloneFileBrowser copied to clipboard

Unity 2018.4.14f1 build windows error!

Open scc172fly opened this issue 3 years ago • 7 comments

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

scc172fly avatar Aug 07 '20 10:08 scc172fly

Same for me in 2020.1

Did you find a solution?

amarillosebas avatar Aug 13 '20 18:08 amarillosebas

@amarillosebas @scc172fly The assemblies require .Net 3.5x or higher (even though the docs here say 2.0) change your scripting environment to .Net 4.0 in Unity's settings. (Edit: Under Player Settings > API Compatibility Level)

TolinSimpson avatar Aug 14 '20 18:08 TolinSimpson

I have put in a pull request to update the readme.

TolinSimpson avatar Aug 15 '20 15:08 TolinSimpson

I've got the same error, even if I set the scripting environment to .Net 4.0. Unity 2020.3.32.f1

DaniloCCP avatar Mar 29 '22 13:03 DaniloCCP

The full solution that worked for me is to remove Forms dll to exclude conflicts and set .NET Framework (Unity 2021.3) as API compatibility and have targeting framework updated (currently 4.8) to make use of Unity's Forms dll in \Editor\Data\UnityReferenceAssemblies\unity-4.8-api

Fogsight avatar Apr 15 '22 20:04 Fogsight

@Fogsight

The true final solution in my comment #122

It works in all unity versions (NetStandard/NetFramework)

rafcsoares avatar May 10 '22 04:05 rafcsoares

Above^ https://github.com/gkngkc/UnityStandaloneFileBrowser/issues/122 confirmed to work on Unity 2018.1.1f1, thanks!

TheYellowArchitect avatar May 23 '22 17:05 TheYellowArchitect