title: Razor page can't see referenced class library at run time in ASP.NET Core RC2
body: <p>I started a new MVC Web Application project for the RC2 release and I'm trying to add a class library as a project reference.</p>
  
  <p>I added a simple class library to my project and referenced it and got the following in the project.json file:</p>
  
  <pre><code>"frameworks": {
    "net452": {
      "dependencies": {
        "MyClassLibrary": {
          "target": "project"
        }
      }
    }
  },
  </code></pre>
  
  <p>I can use this library in any of the Controllers and the Startup.cs files without any trouble but I get the following error at run time when I try and use the library from a Razor page:</p>
  
  <blockquote>
    <p>The name 'MyClassLibrary' does not exist in the current context
    Output.WriteLine(MyClassLibrary.MyStaticClass.SomeStaticString);</p>
  </blockquote>
  
  <p>It's weird because I'm getting intellisense for the class library when I'm editing the Razor page, and I can't find anything that says you can't use project references from here.</p>
  
  <p>I thought it was hard enough getting this running under RC1 with the "wrap folder" in the class library project but this has me stumped.</p>