zoukankan      html  css  js  c++  java
  • VS2010和VS2015的Dll项目

    最近在使用公司VS2010开发的老的项目时,发现一些问题

    公司用VS2010开发了一个项目,生成 GUS_TestIdentity.dll, 放在 C:Windowsassembly 中

    当在另一个项目中使用这个dll时,Vb.net 中是这样写的:

    Dim myObj As New Test.Authenticator.Identity    然后我去查看GUS_TestIdentity.dll的源代码 source code

    发现是如下的:

    Namespace Authenticator
    
     Public Class Identity
    
     End Class
    
    End Namespace

    所以,我觉得应该是 Authenticator.Identity, 而不是 Test.Authenticator.Identity

    怎么都弄不懂,后来才发现,原来项目有个 Root namespace 叫 Test.  在VS2010中,选中项目GUS_TestIdentity, 右键属性,在Application中可以看到Root namespace是 Test

     同时,在GAC (C:Windowsassembly)中发现GUS_GallagherIdentity有两个版本,分别是2.0.0.0 和 1.0.0.0, 那么如何知道当前这个dll的版本呢

    同样是在上面的界面中,点击 “Assembly Information”, 可以看到版本号

     还有另一个地方也能看到版本号,就是在项目的AssemblyInfo.vb文件中,打开就可以看到 

    这个在VS2015中也是一样,右键项目属性,点击"Assembly Information"

  • 相关阅读:
    MySql的常用命令
    yum命令配置及使用说明和常见问题处理
    oracle12c创建用户和表空间出现的问题
    oracle云部署
    ORA-12154: TNS:could not resolve the connect identifier specified
    Linux之iptables
    Linux之MySQL
    Linux之apache
    oracle查锁表
    cookie 和 HttpSession
  • 原文地址:https://www.cnblogs.com/wphl-27/p/7323120.html
Copyright © 2011-2022 走看看