Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 376
Arwin Avatar asked Jul 22 '16 09:07

Arwin


1 Answers

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

like image 163
Arwin Avatar answered Oct 04 '22 00:10

Arwin