- Home /
Issues loading Microsoft dlls
I am trying to write an editor window to use for Team Foundation server integration with my Unity project. The thought process is to use the C# API to interface with TFS. In order to do that I am required to add references to Microsoft.TeamFoundation.Client and Microsoft.TeamFoundation.Common. I am able to do that inside visual studio and then adding to my assets/plugins folder. This is the point at which the compile attempts and I get the error in the console.
These DLLs come from the following folder on my computer: Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\ReferenceAssemblies\v2.0
I have tried the one from the Microsoft Visual Studio 11.0 path as well and neither works.
This is what I get in the editor logs: - Finished compile Library/ScriptAssemblies/Assembly-CSharp-Editor.dll Internal compiler error. See the console log for more information. output was: Unhandled Exception: System.Reflection.ReflectionTypeLoadException: The classes in the module cannot be loaded.
at (wrapper managed-to-native) System.Reflection.Assembly:GetTypes (bool)
at System.Reflection.Assembly.GetTypes () [0x00000] in :0
at Mono.CSharp.RootNamespace.ComputeNamespaces (System.Reflection.Assembly assembly, System.Type extensionType) [0x00000] in :0
at Mono.CSharp.RootNamespace.ComputeNamespace (Mono.CSharp.CompilerContext ctx, System.Type extensionType) [0x00000] in :0
at Mono.CSharp.GlobalRootNamespace.ComputeNamespaces (Mono.CSharp.CompilerContext ctx) [0x00000] in :0
at Mono.CSharp.Driver.LoadReferences () [0x00000] in :0
at Mono.CSharp.Driver.Compile () [0x00000] in :0
at Mono.CSharp.Driver.Main (System.String[] args) [0x00000] in :0
Has anyone else tried to add these assemblies? Am I missing something? A lot of other posts where people got this error with custom assemblies noted that they were missing something but since I don't have access to the source of these DLLs I can't do the troubleshooting that others did. Are there assemblies out there that we just cannot add to Unity maybe? Any help here would be appreciated.
I take it these dll's are .Net 3.5? Can you link me to other posts where people are missing something as it may give me a clue to my own similar issue? I can only find posts where people have compiled in .Net 4 ins$$anonymous$$d of 3.5.
Your answer
Follow this Question
Related Questions
Command line build fails after updating to Unity 2019.4 1 Answer
How to add Unity API reference to Visual Studio's keyboard shortcuts? 1 Answer
Impossible reference Issue 3 Answers
accessing a class by interface requries reference to other unrelated interface's assembly 0 Answers
How to properly use class from custom DLL project in 'Assembly-CSharp-Editor' 1 Answer