How can I force .NET to use a local copy of an assembly that's in the GAC

前端 未结 6 726
情话喂你
情话喂你 2020-11-29 19:42

I have a .NET assembly that (for reasons outside my control) must be in the GAC. However, the same assembly is used by another program, which has a its own copy of

6条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-11-29 20:29

    I had a similar issue. I changed the publicKeyToken of the target dll by using ildasm and ilasm to generate a new dll. I then updated it in the project reference to point to the new dll. The steps I took are here.

    This worked for me.

提交回复
热议问题