Hi, I’m looking for help. I have a legacy .NET PCL that targets the following platforms:
- .NET Framework 4.5
- Windows 8
- Windows Phone 8.1
I also have a newer project, using the new Class Library (Package) template in VS2015, that’s based off DNX and
project.json. I want to use this package in my legacy PCL. Of course, this means my new package has to support all the platforms the old one does.
So I go into my project.json, and according to the table here I should add the
dotnet TFM to target .NET Core,
net45 to target .NET 4.5, and
netcore45 to target Windows Store apps. Adding the first 2 monikers work just fine, but when I add
netcore45 I suddenly get a wave of errors about how
System.Object, etc. etc. are not defined.
Create a new “Class Library (Package)” project in VS2015.
Double-click project.json and change
BAM! 14 errors right out of the box. Even if you change
4.0.0(which is compatible with Windows 8) and get rid of the other dependencies, you still get errors about how built-in types are not defined.
Is there a solution to this problem without having to retarget the legacy PCL to Windows 10?