title: AssemblyInfo and custom attributes
body: <p>I'd like to add custom attributes to the <code>AssemblyInfo</code>, and I've created an extension class named <code>AssemblyMyCustomAttribute</code></p>
  
  <pre><code>[AttributeUsage(AttributeTargets.Assembly)]
  public class AssemblyMyCustomAttribute : Attribute
  {
      private string myAttribute;
  
      public AssemblyMyCustomAttribute() : this(string.Empty) { }
      public AssemblyMyCustomAttribute(string txt) { myAttribute = txt; }
  }
  </code></pre>
  
  <p>Then I've added reference to the class in the <code>AssemblyInfo.cs</code> and added the value</p>
  
  <pre><code>// General Information about an assembly is controlled through the following
  // set of attributes. Change these attribute values to modify the information
  // associated with an assembly.
  [assembly: AssemblyTitle("My Project")]
  [assembly: AssemblyDescription("")]
  [assembly: AssemblyConfiguration("")]
  [assembly: AssemblyCompany("")]
  [assembly: AssemblyProduct("My Project")]
  [assembly: AssemblyMyCustomAttribute("testing")]
  [assembly: AssemblyCopyright("Copyright ©  2016")]
  [assembly: AssemblyTrademark("")]
  [assembly: AssemblyCulture("")]
  </code></pre>
  
  <p>Now I would like to get the value (<code>"testing"</code>) in a razor view</p>
  
  <p>I've tried the following with no success:</p>
  
  <pre><code>@ViewContext.Controller.GetType().Assembly.GetCustomAttributes(typeof(AssemblyMyCustomAttribute), false)[0].ToString();
  </code></pre>
  
  <p>Not sure if this is the best approach, to add custom attributes to my <code>AssemblyInfo</code>. I can't seem to find the correct method to get the value of the attribute.</p>