title: How to declare a friend assembly?
body: <p>I have 2 projects in my solution:</p>
  
  <ol>
  <li>Assembly (Basic Library)</li>
  <li>Test Assembly (NUnit)</li>
  </ol>
  
  <p>I had declared the test assembly as friends assembly in first project:</p>
  
  <pre><code>[assembly: InternalsVisibleTo ("Company.Product.Tests")]
  </code></pre>
  
  <p>Everything was working fine till I realised that I have forgot to setup the solution to sign my assemblies. So created a snk file and setup the visual studio project to sign the first assembly (Basic Library). Now when I compile the first project, I get following error:</p>
  
  <blockquote>
    <p>Friend assembly reference
    'Company.Product.Tests' is invalid.
    Strong-name signed assemblies must
    specify a public key in their
    InternalsVisibleTo declarations.</p>
  </blockquote>
  
  <p>I tried to extract the public key from my snk file using sn utility but it generates a wired binary file which I am unsure how to use. How can I fix the problem?</p>