Programmatic MSIL injection

前端 未结 7 2079
情书的邮戳
情书的邮戳 2021-02-09 08:01

Let\'s say I have a buggy application like this:

using System;

namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
          


        
7条回答
  •  Happy的楠姐
    2021-02-09 08:24

    I guess the question I would ask is "how would you deploy the patch"? Somewhere, you have to deploy something to fix a bug that is already out in the wild. Why would recompiling the dll and releasing the fixed version really be an issue? My guess is that figuring out how to programatically inject MSIL is going to be more trouble than simply redeploying a fixed assembly.

提交回复
热议问题