The exact issue I'm having is with the System.Windows.Forms.dll. I needed to implement it to write to a spreadsheet. It works exactly as desired if I run the application in the Unity Editor but trying to build it produces an error:> ArgumentException: The Assembly> System.Deployment is referenced by> System.Windows.Forms> ('Assets/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.List`1> alreadyFoundAssemblies,> System.String[] allAssemblyPaths,> System.String[] foldersToSearch,> System.Collections.Generic.Dictionary`2> cache, BuildTarget target) (at> C:/buildslave/unity/build/Editor/Mono/AssemblyHelper.cs:142)> UnityEditor.AssemblyHelper.AddReferencedAssembliesRecurse> (System.String assemblyPath,> System.Collections.Generic.List`1> alreadyFoundAssemblies,> System.String[] allAssemblyPaths,> System.String[] foldersToSearch,> System.Collections.Generic.Dictionary`2> cache, BuildTarget target) (at> C:/buildslave/unity/build/Editor/Mono/AssemblyHelper.cs:148)> UnityEditor.AssemblyHelper.AddReferencedAssembliesRecurse> (System.String assemblyPath,> System.Collections.Generic.List`1> alreadyFoundAssemblies,> System.String[] allAssemblyPaths,> System.String[] foldersToSearch,> System.Collections.Generic.Dictionary`2> cache, BuildTarget target) (at> C:/buildslave/unity/build/Editor/Mono/AssemblyHelper.cs:148)> UnityEditor.AssemblyHelper.FindAssembliesReferencedBy> (System.String[] paths,> System.String[] foldersToSearch,> BuildTarget target) (at> C:/buildslave/unity/build/Editor/Mono/AssemblyHelper.cs:179)> UnityEditor.HostView:OnGUI()
Looking around I saw and tried solutions from downloading and installing other dlls (system.configuration and system.security), changing the settings on the playersettings api compatiablility level from .Net 2.0 sub to just .Net 2.0
Any other possibly relevant info: Build is for windows, running on Win 10, Unity version is 2017.1.1f1.
Thanks Everyone
↧