我想在同一个项目中引用具有相同版本,命名空间,名称,标签的2个interop dll [英] I want to refer 2 interop dll with same version,Namespace,Name,Label in same project
问题描述
HI,
有一个用于photoshop的互操作dll - Interop.Photoshop.1.0.dll 。有不同的dll for photoshop cs6和photoshop CC版本。但每个dll的名称,命名空间,版本都是相同的。如果我更改了dll的名称插件不起作用。我想在同一个项目中使用这些2 dll。我直接使用一个dll和一个从另一个dll,但在这种情况下,应用程序文件夹中的相同名称DLL的处理也无法完成。我该怎么办?
问候
Jay
There is an interop dll for photoshop-Interop.Photoshop.1.0.dll.There are different dlls for photoshop cs6 and photoshop CC versions.But The Name,Namespace,Versions are same for each dll.If I changed the Name of dll the Plugin does not work.I want to use those 2 dll in same project.I refr one dll directly and one from another dll but in that case also the coping of same name dll in application folder cant be done.What should i do ?
Regards
Jay
推荐答案
查看extern别名
- https://msdn.microsoft.com/en-us/library/ms173212.aspx [ ^ ]。
它将解决你的问题。
这是一篇关于它的博文 - C#2.0:在一个应用程序中使用相同dll的不同版本 [ ^ ]。
Check outextern alias
- https://msdn.microsoft.com/en-us/library/ms173212.aspx[^].
It will solve your problem.
Here is a blog post on it - C# 2.0: Using different versions of the same dll in one application[^].
这篇关于我想在同一个项目中引用具有相同版本,命名空间,名称,标签的2个interop dll的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!