Retrieve AssemblyAttribute RRS feed

  • Question

  • User118008211 posted


    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 Include="AssemblyDescription">
          <Value>My App Desc</Value>
        <AssemblyAttribute Include="AssemblyCompany">
          <Value>My Company</Value>
        <AssemblyAttribute Include="AssemblyCopyright">
        <AssemblyAttribute Include="AssemblyDeveloper">
          <Value>My Name</Value>

    Thank for the help




    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