There is a core .NET Framework Library (mscorjit.dll) that is missing on user's computer, my .NET application tries to load the library but nothing happens (application does not crash) even if it is missing. I believe this could lead to DLL hijacking. Is there a way that I can avoid dependency on this library so that it does not look for this library when application is loaded?
I would appreciate any pointers or guidance on this issue.
I have tried removing many dependencies from the application but still the application tries to find this library during load.
mscorjit.dllcontains the implementation of the JIT compiler in .NET 2.0 or below. In later versions it's calledclrjit.dll.And no, you cannot remove this dependency. It's part of .NET.