Boy Pasmo
Boy Pasmo

Reputation: 8471

What class library to use to be reference on UWP and ASPNETCORE apps

I would like to create a class library that can be used on my aspnetcore app and uwp app.

Please correct me if I'm wrong, the way I understand the image below (first image) I can create a .net core class library and have it reference to uwp and aspnetcore.

What I've done is I created, a .NET Core Class Library, Aspnet Core Web App, and UWP.

I tried to reference .Net Core Class Library on my Aspnet Core Web App, no errors. Now, I tried to reference .Net Core Class Library on my UWP and it showed the error below (last image).

Am I better of creating PCL instead as stated here?

PS. Im using VS2015 Update 3

modelsolution explorererror

Upvotes: 2

Views: 2792

Answers (1)

Blake Mumford
Blake Mumford

Reputation: 17721

The tooling is now available in Visual Studio 2017 release candidate. You can now create a .Net Standard class library from a template and use this to facilitate sharing code (e.g. model objects) between an Asp.Net Core app and a Universal Windows Platform (UWP) app.

enter image description here

.Net Standard class library is considered the successor to the portable class library (PCL).

Upvotes: 2

Related Questions