I\'m experimenting with Visual Studio 2015 RC, specifically looking at switching to the new ASP.NET 5 framework, project structure and the new DNX that ru
Take a look at what EntityFramework does.
They target 3 TFMs: net45, .NETPortable,Version=v4.5,Profile=Profile7, frameworkAssemblies and they have both csproj and xproj in the same folder.
Basically, for each project you have two project files.
However I cannot find a way to reference ClassLibrary-dnx from WindowsService.csproj.
Unfortunately, that's not possible, yet. You can only reference csproj from xproj, not the other way around. You have two alternatives: (1) have both xproj and csproj like EF does or (2) reference the NuGet package from csproj.
If you want to do alternative (2) then you can set the output of the xproj to a folder and add that as a NuGet feed.