title: How to reference .net461 assembly from .NETCore RC2 app
body: <p>I have a .net core RC2 web app and I need to reference a .net 461 assembly (namely system.drawing.dll).
  From what I read from posts such as this one:  <a href="https://stackoverflow.com/questions/30763115/what-frameworks-are-available-in-asp-net-core-asp-net-5-applications">What frameworks are available in ASP.NET Core (ASP.NET 5) applications?</a>
   this should be possible.</p>
  
  <p>I've also read:  <a href="https://github.com/dotnet/cli/issues/3171" rel="nofollow noreferrer">https://github.com/dotnet/cli/issues/3171</a>  I beleive I have implemented the suggested syntax in my project.json as shown below.</p>
  
  <p>I have also seen: <a href="https://stackoverflow.com/questions/37577044/dotnet-core-rc2-project-and-net461-dependency-resolve-issue">DotNet Core RC2 Project and Net461 dependency resolve issue</a></p>
  
  <p>My project references look correct in visual studio (i.e. no red dots).  However when I try to build my project I get this error message:  "The type or namespace Drawing does not exist in the the namespace System...".</p>
  
  <p>Here is project.json</p>
  
  <pre><code>{
    "userSecretsId": "aspnet-RC2CoreTest2-d092f974-1ed6-4625-b2e4-825fd01d61d9",
  
    "dependencies": {
      //"Microsoft.NETCore.App": {
      //  "version": "1.0.0-rc2-3002702",
      //  "type": "platform"
      //},
  
      "Microsoft.ApplicationInsights.AspNetCore": "1.0.0-rc2-final",
      "Microsoft.AspNetCore.Authentication.Cookies": "1.0.0-rc2-final",
      "Microsoft.AspNetCore.Diagnostics": "1.0.0-rc2-final",
      "Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore": "1.0.0-rc2-final",
      "Microsoft.AspNetCore.Identity.EntityFrameworkCore": "1.0.0-rc2-final",
      "Microsoft.AspNetCore.Mvc": "1.0.0-rc2-final",
      "Microsoft.AspNetCore.Razor.Tools": {
        "version": "1.0.0-preview1-final",
        "type": "build"
      },
      "Microsoft.AspNetCore.Server.IISIntegration": "1.0.0-rc2-final",
      "Microsoft.AspNetCore.Server.Kestrel": "1.0.0-rc2-final",
      "Microsoft.AspNetCore.StaticFiles": "1.0.0-rc2-final",
      "Microsoft.EntityFrameworkCore.SqlServer": "1.0.0-rc2-final",
      "Microsoft.EntityFrameworkCore.Tools": {
        "version": "1.0.0-preview1-final",
        "type": "build"
      },
      "Microsoft.Extensions.Configuration.EnvironmentVariables": "1.0.0-rc2-final",
      "Microsoft.Extensions.Configuration.Json": "1.0.0-rc2-final",
      "Microsoft.Extensions.Configuration.UserSecrets": "1.0.0-rc2-final",
      "Microsoft.Extensions.Logging": "1.0.0-rc2-final",
      "Microsoft.Extensions.Logging.Console": "1.0.0-rc2-final",
      "Microsoft.Extensions.Logging.Debug": "1.0.0-rc2-final",
      "Microsoft.VisualStudio.Web.BrowserLink.Loader": "14.0.0-rc2-final",
      "Microsoft.VisualStudio.Web.CodeGeneration.Tools": {
        "version": "1.0.0-preview1-final",
        "type": "build"
      },
      "Microsoft.VisualStudio.Web.CodeGenerators.Mvc": {
        "version": "1.0.0-preview1-final",
        "type": "build"
      },
      "Blog.Core": "1.0.0-*",
      "Blog.Domain": "1.0.0-*",
      "Blog.Model": "1.0.0-*",
      "Blog.Services": "1.0.0-*"
    },
  
    "tools": {
      "Microsoft.AspNetCore.Razor.Tools": {
        "version": "1.0.0-preview1-final",
        "imports": "portable-net45+win8+dnxcore50"
      },
      "Microsoft.AspNetCore.Server.IISIntegration.Tools": {
        "version": "1.0.0-preview1-final",
        "imports": "portable-net45+win8+dnxcore50"
      },
      "Microsoft.EntityFrameworkCore.Tools": {
        "version": "1.0.0-preview1-final",
        "imports": [
          "portable-net45+win8+dnxcore50",
          "portable-net45+win8"
        ]
      },
      "Microsoft.Extensions.SecretManager.Tools": {
        "version": "1.0.0-preview1-final",
        "imports": "portable-net45+win8+dnxcore50"
      },
      "Microsoft.VisualStudio.Web.CodeGeneration.Tools": {
        "version": "1.0.0-preview1-final",
        "imports": [
          "portable-net45+win8+dnxcore50",
          "portable-net45+win8"
        ]
      }
    },
  
    "frameworks": {
      "netcoreapp1.0": {
        "imports": [
          "dotnet5.6",
          "dnxcore50",
          "portable-net45+win8"
        ],
        "dependencies": {
          "Microsoft.NETCore.App": {
            "version": "1.0.0-rc2-3002702",
            "type": "platform"
          }
        }
      },
      "net461": {
        "frameworkAssemblies": {
          "System.Drawing": "4.0.0.0"
        }
      }
    },
  
    "buildOptions": {
      "emitEntryPoint": true,
      "preserveCompilationContext": true
    },
  
    "runtimeOptions": {
      "gcServer": true
    },
  
    "publishOptions": {
      "include": [
        "wwwroot",
        "Views",
        "appsettings.json",
        "web.config"
      ]
    },
  
    "scripts": {
      "prepublish": [ "npm install", "bower install", "gulp clean", "gulp min" ],
      "postpublish": [ "dotnet publish-iis --publish-folder %publish:OutputPath% --framework %publish:FullTargetFramework%" ]
    }
  }
  </code></pre>