Closed sharpe5 closed 7 years ago
You're very welcome.
This .NET Core/Standard stuff is still evolving, but this post from Microsoft suggests:
App Developers: You target the platform TFM you’re writing for (
netcoreapp1.0
,uap10.0
,net452
,xamarinios
, etc.).Package/Library Authors: Target the lowest
netstandard
version you can. You will run on all platforms that support that netstandard version or higher
This suggests a library like Dasher should target netstandard
for portability, along with a full framework such as net45
. Currently Dasher supports netstandard1.3
and net45
. I can't recall why I didn't go lower, though there was something that failed compilation at netstandard1.2
. It's possible the code can be reworked for wider support if required.
Let me know your thoughts on this. Best practice is emerging slowly.
Thank you for this comment, especially the practice of package/library authors targeting the lowest netstandard that you can.
I'm going to close this issue for now, until I can complete the learning curve on other projects.
No problem. It seems like a good time to start learning this stuff as it's a lot more stable now than it used to be. The last bit of churn will be the replacement of project.json
with some new form of .csproj
, but for now project.json
is the best option for multi-targeting. Using multiple project files always felt like a cludge.
Thanks for the great work on Dasher!
As an aside, I created a new .NET Core 1.0 project in Visual Studio 2015, then attempted to import Dasher. It said "NU1007 Dependency specified was Dasher >= 0.8.0-rc1 but ended up with Dasher 0.8.0.". Yesterday, it said that the project was only compatible with .NET 4.5.
I managed to get my project compatible with .NET Core:
In my project.json file, I specified three builds, one per platform, it automatically put the results in the ./bin/ folder:
See: https://github.com/sharpe5/NetMQ.ReactiveExtensions/blob/master/NetMQ.ReactiveExtensions/project.json
And in the .nuspec file, I specified a build per platform: https://github.com/sharpe5/NetMQ.ReactiveExtensions/blob/master/NuGet/NetMQ.ReactiveExtensions.nuspec