user2657943 user2657943 - 3 months ago 41
C# Question

Visual Studio 2015 can't find class library even though it builds

I'm trying to share a class library between an ASP.NET Core project and a Xamarin Forms project. So far I managed to make the project compile and actually work, however I have a problem referencing my file in Visual Studio.

As shown in the image below, it says it can't find the class library (even though there is a reference to it and it build/runs correctly!)

I found out that when I delete the classlibrary, and load the xproj file instead of the csproj file it works in the core project, but then it doesn't work in xamarin anymore.

Any way to make it work in both projects?

Edit: This is the solution I am talking about:

Answer Source

Turns out the solution is to delete the .xproj files

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download