不同的程序集,命名空间和类具有相同的名称 [英] Different Assemblies, Namespaces and classes are in same names

查看:121
本文介绍了不同的程序集,命名空间和类具有相同的名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

           我有一个应用程序,其中dll将动态添加并利用其类和方法,同时开发应用程序我在可用的dll中调用类,我在发布时排除了dll,其中我
有一个选项可以添加那个dll在运行时。

           I have an application where dlls will add in dynamically and utilizing its class and methods, while developing the application I called classes in available dll and I exclude the dll at the time of release where I have an option to add that dll at run-time.

         如果有任何更新,我需要给出具有不同名称的相同dll(后缀包含在版本号中),其中类和方法几乎没有更新,但名称空间,类和方法名称没有变化。

          If there is any update, I need to give that same dll with different name (suffix included as version number) where class and methods have little update but namespace, class and methods names have no change.

         在调用与原始程序集不同的类时(在开发时添加参考)我得到以下错误。

          While calling the class which are different from original assembly(added in reference at the time of developing) I got the below error.

 无法加载文件或程序集'SmartRPA.Activities_1。 0.0,Version = 1.0.0.0,Culture = neutral,PublicKeyToken = null'或其依赖项之一。系统找不到指定的文件。

 Could not load file or assembly 'SmartRPA.Activities_1.0.0, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.

推荐答案

嗨Dhanasekar,

Hi Dhanasekar,

如果我理解正确 - 您想在您的应用中使用相同Dll的不同版本吗?请确认,您也可以查看 -   https://blogs.msdn.microsoft.com/abhinaba/2005/11/30/ c-2-0-using-the-same-the-dll-in-one-application /

If I understand it correctly - you want to use different versions of same Dll in your app? Please confirm and also you can take a look at - https://blogs.msdn.microsoft.com/abhinaba/2005/11/30/c-2-0-using-different-versions-of-the-same-dll-in-one-application/


这篇关于不同的程序集,命名空间和类具有相同的名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆