Answer the question
In order to leave comments, you need to log in
Is it possible to replace the dll assembly in .Net?
For example, simple code:
using System;
class Program
{
public static void Main(string[] args)
{
Console.ReadKey(true);
}
}
Answer the question
In order to leave comments, you need to log in
Yes - you can put it next to the executable, for example. But with mscorlib, this most likely will not work, because this is a signed assembly and the application will look for a specific assembly
Maybe this will lead you to something.
C:\Users\kvn>echo %windir%
C:\Windows
Well, you can create a separate application domain and load assemblies there via Assembly.LoadFrom
+ it's useful to hang your own handler on the CurrentAppDomain.AssemblyResolve event, which will slip the right
one The only question is - why is this necessary for framework assemblies? Try to run the program without the framework installed?)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question