In VS2015 > New Project > .Net Core, there is a template for "Class Library (.NET Core)"
It wasn't until I tried to reference this library in a .NET Core Web API program, that I realized that the Class Library template is referencing .NETStandard v1.6. And my .NET Core API porject won't take it as a reference. I was trying to avoid building the library as a nuget package.
Any ideas on why a Core template isn't referencing core? Any ideas on quick workarounds?
Update: Opened a new "Class Library (.NET Core)", before first build I changed frameworks in project.json to
"netcoreapp1.0": {
"imports": [
"dotnet5.6",
"portable-net45+win8"
]
Then I created, in a different VS instance, a new "ASP.NET Core Web Application (.NET Core)".
I tried to add a reference to the .dll file for the new class library, now in a netcoreapp1.0 folder and I still get the same error:
.NET Core Projects only support referencing .NET framework assemblies in this release.