使用具有相同命名空间的多个 dll-s
Using multiple dll-s with same namespace
我有两个同名的dll-s,都是1.0.0.0版本,但它们是不同的。
一个是较新的,并且实现了一些旧的没有的东西。
我必须同时使用它们,因为它们支持不同的设备。
我使用了别名,它适用于较旧的 dll。我可以通过别名引用它,但我不能使用全局别名或新别名中的新别名。
Error CS0430 The extern alias 'New_Interop' was not specified in a /reference option *.Driver C:\Users\*\source\repos\*\*.Driver\*.cs 1 Active
Error CS0246 The type or namespace name '*' could not be found (are you missing a using directive or an assembly reference?) *.Driver C:\Users\*\source\repos\*\*.Driver\*.cs 15 Active
试过这个,没有帮助:
two different DLL with same namespace
我对旧的进行了包装,并将其作为 OldInterop 包含在该命名空间中。
我有两个同名的dll-s,都是1.0.0.0版本,但它们是不同的。 一个是较新的,并且实现了一些旧的没有的东西。 我必须同时使用它们,因为它们支持不同的设备。 我使用了别名,它适用于较旧的 dll。我可以通过别名引用它,但我不能使用全局别名或新别名中的新别名。
Error CS0430 The extern alias 'New_Interop' was not specified in a /reference option *.Driver C:\Users\*\source\repos\*\*.Driver\*.cs 1 Active
Error CS0246 The type or namespace name '*' could not be found (are you missing a using directive or an assembly reference?) *.Driver C:\Users\*\source\repos\*\*.Driver\*.cs 15 Active
试过这个,没有帮助: two different DLL with same namespace
我对旧的进行了包装,并将其作为 OldInterop 包含在该命名空间中。