Question by 
               Jeff-Kesselman · Dec 31, 2017 at 09:06 PM · 
                .net.net-assemblies  
              
 
              Two annoying exceptions having to do with System.Threading.Tasks
I'm writing a wrapper around the Roslyn CSharp scripting interface. In general, its working, but I get two annoying exceptions at start-up. They don't interfere with anything but I'd like it to run clean.
I'm running under .NET4.6 compatability
I included the entire netcore50 folder from the System.Threading.Tasks package in my assets. It compiles just fine. But I see these exceptions when I run it.
Any suggestions?

 Loading script assembly "Assets/Sandbox2/Additional/System.Threading.Tasks/netcore50/System.Threading.Tasks.dll" failed!
 TypeLoadException: Microsoft.CodeAnalysis.Scripting.Hosting.CoreAssemblyLoaderImpl
 System.RuntimeType.GetMethodsByName (System.String name, System.Reflection.BindingFlags bindingAttr, System.Boolean ignoreCase, System.RuntimeType reflectedType) (at <c95265f74fdf4905bfb0d5a4b652216c>:0)
 System.RuntimeType.GetMethodCandidates (System.String name, System.Reflection.BindingFlags bindingAttr, System.Reflection.CallingConventions callConv, System.Type[] types, System.Boolean allowPrefixLookup) (at <c95265f74fdf4905bfb0d5a4b652216c>:0)
 System.RuntimeType.GetMethods (System.Reflection.BindingFlags bindingAttr) (at <c95265f74fdf4905bfb0d5a4b652216c>:0)
 UnityEditor.Build.BuildPipelineInterfaces.InitializeBuildCallbacks (UnityEditor.Build.BuildPipelineInterfaces+BuildCallbacks findFlags) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildPipelineInterfaces.cs:188)
 
               
                 
                capture.png 
                (41.0 kB) 
               
 
              
               Comment
              
 
               
              6 months later and I have the same issue. If you could solve it, please tell me. @Jeff-$$anonymous$$esselman
Your answer
 
             Follow this Question
Related Questions
sHandle is Invalid 0 Answers
Why are .NetStandard 1.0 libraries not working? 0 Answers
Is it possible to Run R Code from Unity C# in Mono or .NET? 0 Answers