How to get fully qualified assembly name

后端 未结 2 804

is there any easy way to get the fully qualified name for assembbly? e.g.

相关标签:
2条回答
  • 2021-01-20 05:30

    This article (How to: Determine an Assembly's Fully Qualified Name ) will probably help you


    Code from MSDN

    //s if the Fully Qualified assembly name
    Type t = typeof(System.Data.DataSet);
    string s = t.Assembly.FullName.ToString();
    
    0 讨论(0)
  • 2021-01-20 05:39

    This is a shameless copy-paste from I Note It Down and is a simple way to get the FQAN for the project output:

    Open Visual Studio
    Go to Tools –> External Tools –> Add
        Title: Get Qualified Assembly Name
        Command: Powershell.exe
        Arguments: -command "[System.Reflection.AssemblyName]::GetAssemblyName(\"$(TargetPath)\").FullName"
        Check "Use Output Window".
    

    The new tool appears under Tools –> Get Qualified Assembly Name. When the menu item is selected, the assembly name is given in the output window.

    0 讨论(0)
提交回复
热议问题