在C#中,我有一个application.exe,它使用library.dll(编译时引用)。现在library.dll用于与某些硬件通信,这非常缓慢。是否可以在Visual Studio中创建另一个项目,该项目还将创建library.dll,但它将是模拟。我希望能够简单地替换dll文件,而无需重新编译exe或替换Visual Studio中的引用。我知道可以在运行时加载dll,但是否可以替换静态引用的dll而不会导致:
FileLoadException: The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
我不使用强名称