dnlib - how change application .NetFramework version

218 Views Asked by At

Can you tell me whether it is possible to change the .NetFramework version of another application using the dnlib library?

// Properties.Resources.MyExeFile - Binary file located in application resources
using var module = ModuleDefMD.Load(Properties.Resources.MyExeFile);
if (module.IsILOnly)
{
   module?.Write(Path.Combine(CurrDir, "Build.exe"));
}
0

There are 0 best solutions below