Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

Reference to .NET Core Class Library project not working

$
0
0

Windows 10, Visual Studio 2015 Update 3

I have a .NET Core Class Library project, ClassLibrary1, set up to target both netstandard1.6 and net461. I have a second .NET 4.6.1 Console Application, ConsoleApplication1, from which I have created a project reference to ClassLibrary1. If I examine the properties of the ClassLibrary1 reference in the ColsoleApplication1 project I find the Path is as expected, i.e. pointing to ClassLibrary1.dll in the ClassLibrary1\bin\Debug\net461 folder. However, in ConsoleApplication1 code I cannot access anything from ClassLibrary1. It's as if I don't have a reference. If, on the other hand, I copy the ClassLibrary1.dll file from the location specified in Path to a temp location and then create a external reference directly to that file (instead of project reference) I suddenly have access to the contents of ClassLibrary1.

External (file) references are working but project references seem to be ignored.


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>