gkngkc / UnityStandaloneFileBrowser

A native file browser for unity standalone platforms
MIT License
2.01k stars 317 forks source link

Build Error- ArgumentException: The Assembly Mono.WebBrowser #59

Open tlskillman opened 5 years ago

tlskillman commented 5 years ago

I'm getting this error when I build my app. Runs fine in editor. Saw hint to use .NET Standard 2.0 but still get error. Running Unity 2018.3.8f1 and I downloaded the latest UnityStandaloneFileBrowser from github. Any ideas?

ArgumentException: The Assembly Mono.WebBrowser is referenced by System.Windows.Forms ('Assets/Libraries/StandaloneFileBrowser/Plugins/System.Windows.Forms.dll'). But the dll is not allowed to be included or could not be found. UnityEditor.AssemblyHelper.AddReferencedAssembliesRecurse (System.String assemblyPath, System.Collections.Generic.List1[T] alreadyFoundAssemblies, System.String[] allAssemblyPaths, System.String[] foldersToSearch, System.Collections.Generic.Dictionary2[TKey,TValue] cache, UnityEditor.BuildTarget target) (at C:/buildslave/unity/build/Editor/Mono/AssemblyHelper.cs:150) UnityEditor.AssemblyHelper.AddReferencedAssembliesRecurse (System.String assemblyPath, System.Collections.Generic.List1[T] alreadyFoundAssemblies, System.String[] allAssemblyPaths, System.String[] foldersToSearch, System.Collections.Generic.Dictionary2[TKey,TValue] cache, UnityEditor.BuildTarget target) (at C:/buildslave/unity/build/Editor/Mono/AssemblyHelper.cs:156) UnityEditor.AssemblyHelper.FindAssembliesReferencedBy (System.String[] paths, System.String[] foldersToSearch, UnityEditor.BuildTarget target) (at C:/buildslave/unity/build/Editor/Mono/AssemblyHelper.cs:190) UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

virgiegv commented 5 years ago

I started having this same problem when I upgraded my framework from .NET 3.5 to .NET 4.x. I fixed it by downloading the mono.webbrowser.dll and copying it to my Plugins folder.

jusforfun commented 5 years ago

Hi all, if my following workaround/fix works for you guys.

https://github.com/gkngkc/UnityStandaloneFileBrowser/issues/60#issuecomment-492055836

yassir-ouali commented 4 years ago

I started having this same problem when I upgraded my framework from .NET 3.5 to .NET 4.x. I fixed it by downloading the mono.webbrowser.dll and copying it to my Plugins folder.

can u share from where u downloaded the .dll, I'm afraid to download a fraud version !

ghost commented 4 years ago

I started having this same problem when I upgraded my framework from .NET 3.5 to .NET 4.x. I fixed it by downloading the mono.webbrowser.dll and copying it to my Plugins folder.

can u share from where u downloaded the .dll, I'm afraid to download a fraud version !

C:\Program Files\Unity\Hub\Editor\2019.3.10f1\Editor\Data\MonoBleedingEdge\lib\mono\gac\Mono.WebBrowser\4.0.0.0__0738eb9f132ed756