- Home /
Question by
cjbrunner · Jul 17, 2018 at 03:19 AM ·
resourcesbuilding.net-assemblies
Assembly mscorlib not allowed?
I was able to build this project before, but after migrating to 2018.2 and .NET 4.x, I get an error that mscorlib.dll cannot be included in my build. The newer version of .NET is required to address an HTTPS/TLS issue that was fixed with 2018.2. Here's my stack trace:
ArgumentException: The Assembly mscorlib is referenced by UnityEngine.CoreModule ('C:\Program Files\Unity\Editor\Data\PlaybackEngines\windowsstandalonesupport/Managed/UnityEngine.CoreModule.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[T] alreadyFoundAssemblies, System.String[] allAssemblyPaths, System.String[] foldersToSearch, System.Collections.Generic.Dictionary`2[TKey,TValue] cache, UnityEditor.BuildTarget target) (at C:/buildslave/unity/build/Editor/Mono/AssemblyHelper.cs:155) UnityEditor.AssemblyHelper.AddReferencedAssembliesRecurse (System.String assemblyPath, System.Collections.Generic.List`1[T] alreadyFoundAssemblies, System.String[] allAssemblyPaths, System.String[] foldersToSearch, System.Collections.Generic.Dictionary`2[TKey,TValue] cache, UnityEditor.BuildTarget target) (at C:/buildslave/unity/build/Editor/Mono/AssemblyHelper.cs:161) UnityEditor.AssemblyHelper.AddReferencedAssembliesRecurse (System.String assemblyPath, System.Collections.Generic.List`1[T] alreadyFoundAssemblies, System.String[] allAssemblyPaths, System.String[] foldersToSearch, System.Collections.Generic.Dictionary`2[TKey,TValue] cache, UnityEditor.BuildTarget target) (at C:/buildslave/unity/build/Editor/Mono/AssemblyHelper.cs:161) UnityEditor.AssemblyHelper.FindAssembliesReferencedBy (System.String[] paths, System.String[] foldersToSearch, UnityEditor.BuildTarget target) (at C:/buildslave/unity/build/Editor/Mono/AssemblyHelper.cs:195) UnityEditor.BuildPipeline:BuildPlayer(BuildPlayerOptions) Kiosk.c__Iterator0:MoveNext() (at Assets/Scripts/Editor/InstallerBuilder.cs:151) Kiosk.EditorCoroutine:OnEditorUpdate() (at Assets/Scripts/Editor/EditorCoroutine.cs:55) UnityEditor.EditorApplication:Internal_CallUpdateFunctions()I see a number of other posts about code not being able to find certain resources, but this is a very low-level resource, and it's where it's supposed to be, which makes me think it's more likely the the "not allowed" part, and not the "could not be found" part. Does anyone have any fresh insight into this? Thank you.
Comment