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"

  • 相关阅读:
    Lua弱引用table
    Javascript定义类(class)的三种方法
    双检锁技术
    【翻译】ASP.NET缓存管理
    socket python
    mvc项目
    MSBuild
    阅读glibc源码
    MVC3使用Unity实现依赖注入接口与于实现类自动注册
    C# 指针之美
  • 原文地址:https://www.cnblogs.com/wphl-27/p/7323120.html
Copyright © 2011-2022 走看看