locked
Retrieve AssemblyAttribute RRS feed

  • Question

  • User118008211 posted

    Hello,

    I am using WDP with a dynamic AssyemblyFile and Version number, using http://weblogs.asp.net/bradleyb/ example.

    This works fine, and I can retrieve the current AssyemblyVersion number, to display it in on a master page in my staging site.

     using a public function:

    Public Shared Function GetBuildVersion() As String
            GetBuildVersion = System.Reflection.Assembly.GetExecutingAssembly.GetName.Version.ToString
        End Function
     

    How can I retrieve custom AssemblyAttributes?

    <AssemblyAttribute Include="AssemblyTitle">
          <Value>My App Title</Value>
        </AssemblyAttribute>
        <AssemblyAttribute Include="AssemblyDescription">
          <Value>My App Desc</Value>
        </AssemblyAttribute>
        <AssemblyAttribute Include="AssemblyCompany">
          <Value>My Company</Value>
        </AssemblyAttribute>
        <AssemblyAttribute Include="AssemblyCopyright">
          <Value>2006</Value>
        </AssemblyAttribute>
        <AssemblyAttribute Include="AssemblyDeveloper">
          <Value>My Name</Value>
        </AssemblyAttribute>
     

    Thank for the help

    Bryan

     

     

    Thursday, January 11, 2007 6:02 PM

All replies

  • User-1583677305 posted
    Try to use System.Reflection.Assembly.GetExecutingAssembly.GetType().GetCustomAttributes(...);
    Saturday, January 13, 2007 5:13 AM