So I have NGENed one assembly and but it is not being used by runtime, because at runtime current application directory is changed like
Directory.SetCurrentDirectory(requiredDirectory)
so Ngen assembly is not being used by runtime.
How are we loading assembly:
IModuleManager.LoadModule(localWi.ModuleName);
We are using WPF PRISM IModuleManager to load the assembly at the rum time. But before this have to change the current application directory as shown above. So we do all the above things then Ngen assemblies are not being used. Any idea how we can do that?