I'm trying to convert a particular .NET dll (System.DirectoryServices) to a Java stub using ikvmstub.exe. I get the following error:
ikvmstub.exe System.DirectoryServices.dll
Error: unable to load assembly 'System.DirectoryServices.dll' as it depends on a higher version of mscorlib than the one currently loaded
I believe the DLL depends on v4.0.30319, which I have. So I ran this command and got the following output:
ikvmstub.exe -nostdlib -r:/c/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll System.DirectoryServices.dll
Error: unable to find mscorlib.dll
The path I gave to mscorlib is definitely correct. For the record, I'm in Git Bash in Windows 7. What can I do to resolve this error?