I get this error when build, I use some function on GitHub - gkngkc/UnityStandaloneFileBrowser: A native file browser for unity standalone platforms
ArgumentException: The Assembly System.Drawing 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.
UnityEditor.AssemblyHelper.AddReferencedAssembliesRecurse (System.String assemblyPath, System.Collections.Generic.List1 alreadyFoundAssemblies, System.String[ ] allAssemblyPaths, System.String[ ] foldersToSearch, System.Collections.Generic.Dictionary
2 cache, BuildTarget target) (at C:/buildslave/unity/build/Editor/Mono/AssemblyHelper.cs:146)
UnityEditor.AssemblyHelper.AddReferencedAssembliesRecurse (System.String assemblyPath, System.Collections.Generic.List1 alreadyFoundAssemblies, System.String[ ] allAssemblyPaths, System.String[ ] foldersToSearch, System.Collections.Generic.Dictionary
2 cache, BuildTarget target) (at C:/buildslave/unity/build/Editor/Mono/AssemblyHelper.cs:152)
UnityEditor.AssemblyHelper.AddReferencedAssembliesRecurse (System.String assemblyPath, System.Collections.Generic.List1 alreadyFoundAssemblies, System.String[ ] allAssemblyPaths, System.String[ ] foldersToSearch, System.Collections.Generic.Dictionary
2 cache, BuildTarget target) (at C:/buildslave/unity/build/Editor/Mono/AssemblyHelper.cs:152)
UnityEditor.AssemblyHelper.FindAssembliesReferencedBy (System.String[ ] paths, System.String[ ] foldersToSearch, BuildTarget target) (at C:/buildslave/unity/build/Editor/Mono/AssemblyHelper.cs:184)
UnityEditor.BuildPlayerWindow:BuildPlayerAndRun()
and then I get another error when run the game
And it tells you what’s wrong: you use System.Windows.Forms.dll which requires System.Drawing.dll, but the later is not found. You need to add System.Drawing.dll to you project too.
I copy System.Drawing.dll from Unity Folder%\Editor\Data\Mono\lib\mono\2.0 to the game output folder, but it is still same error
I also copy the System.Drawing.dll to asset directory in editor, but it also not work.
You to check the compatibility of those too. Check the scripting runtime version in player settings. Maybe you are mixing things.