aspnet / Tooling

Issue tracker and info on Visual Studio tooling for ASP.NET
Other
256 stars 124 forks source link

Unable to reference PCL project from ASP.NET Core Web App (.NET Core) project #536

Open ddaspit opened 8 years ago

ddaspit commented 8 years ago

When I try to use any classes from a PCL that targets ASP.NET Core 1.0 from within an ASP.NET Core Web App project, I get an error that the symbol cannot be resolved. This only occurs when the PCL project is referenced from within the same solution. I can successfully add the reference, I just can't actually use it. If the PCL is packaged as a nuget package and added to the project, no errors will be reported and the project will build successfully. I am using the latest ASP.NET and Web Tools (Preview 1 tooling for .NET Core 1.0 RC2) on VS Community 2015 Update 2.

Steps to reproduce:

  1. Create an ASP.NET Core Web Application (.NET Core) project.
  2. Create a Class Library (Portable) project.
  3. Ensure that the class library project targets ASP.NET Core 1.0.
  4. From the web app project, add a reference to the class library project.
  5. Add code to the web app project that uses code from the class library project.
sayedihashimi commented 8 years ago

TFS: 225792 I've added this to our internal TFS, we will reply back here soon.

cmorgan76 commented 8 years ago

I'm having the exact same issue. Any updates on this?

rchande commented 8 years ago

@ddaspit @cmorgan76: Exactly what error do you see? I suspect you're experiencing https://github.com/NuGet/Home/issues/2889

marcodafonseca commented 8 years ago

I have this issue... No errors... I added the reference successfully without issue, but I can't call any of my classes in my PCL from my Core Web App...

ConX-Ryan commented 7 years ago

Is this problem still being addressed or is it resolvable? I am trying(if possible) to create a set of PCL libraries that I can use amongst Xamarain App, Web App and Service Fabric Apps