Search code examples
c#visual-studio.net-coreshared-project

How do I reference a Visual Studio Shared Project in a .NET Core Class Library


I have created a number of Shared Projects and am testing whether these can be shared among all the different project types as I hope and expect. I've managed all of them so far (sometimes with a little workaround), but I can't yet figure out how to do it with a .NET Core Class Library, which would be really useful.

As I can't seem to do it through Visual Studio 2015, does anyone know a way to do it? Perhaps by typing the reference straight into the project.json file for the Class Library?

EDIT: As of Visual Studio 2017 RC, Shared Projects properly work with .NET Core projects.


Solution

  • As of Visual Studio 2017 RC, Shared Projects properly work on the .NET Core platform as well.