Hi!
I just experienced this issue. I have 3 external DLLs I compile outside Unity and then copy to the Plugins folder.
After Unity detects and automatically imports the DLLs again, I get one of two behaviors:
1) Error: TypeLoadException: Parent class vtable failed to initialize, due to: VTable setup of type failed
I get this error on the console (with a specific DLL), the corresponding DLL fails to load, and so I get a bunch of errors, or
2) I got no error, but Unity seems to be using an older version of the DLL. I can tell because, for instance, I replaced a specific class a property returns with an Interface. And Unity shows the specific class again, which is from a much older DLL version.
I checked and my DLLs are not in the GAC.
Is it possible they are cached somewhere else?
To fix, I have to remove the DLLs from Unity and copy them again, sometimes I have to repeat until Unity gets it right.
I've tried with .NET 2.0 and the experimental .NET 4.6, with the same result.
Any help is appreciated! Thanks!
I just experienced this issue. I have 3 external DLLs I compile outside Unity and then copy to the Plugins folder.
After Unity detects and automatically imports the DLLs again, I get one of two behaviors:
1) Error: TypeLoadException: Parent class vtable failed to initialize, due to: VTable setup of type failed
I get this error on the console (with a specific DLL), the corresponding DLL fails to load, and so I get a bunch of errors, or
2) I got no error, but Unity seems to be using an older version of the DLL. I can tell because, for instance, I replaced a specific class a property returns with an Interface. And Unity shows the specific class again, which is from a much older DLL version.
I checked and my DLLs are not in the GAC.
Is it possible they are cached somewhere else?
To fix, I have to remove the DLLs from Unity and copy them again, sometimes I have to repeat until Unity gets it right.
I've tried with .NET 2.0 and the experimental .NET 4.6, with the same result.
Any help is appreciated! Thanks!