question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support additional target frameworks such as for Xamarin, UWP, etc

See original GitHub issue

The current SDK is missing what should be static reference info for its property groups. That makes using multi-targeting much harder and puts more useless info in the csproj.

For example: https://github.com/onovotny/Zeroconf/blob/367c63d21dacf841c204b13ea178fdce174bb93b/Zeroconf/Zeroconf.csproj#L3

All of those property groups should be in the SDK (with the possible exception of the TargetPlatformMinVersion attribute for UAP, but even there it can default to 10.0.10240 easily).

What should be in the SDK:

  • All “inbox” TFM’s
    • All PCL profiles with standard aliases (portable-net45+win8+wpa81+wp8), etc. Bonus points for parsing and allowing any order of matching frameworks (via NuGet core logic in task?)
  • All installable frameworks (wp8, win, wpa, sl, uap, all Xamarin tfms)

Those property groups should include the appropriate LanguageTargets that point to the correct version to ensure a proper build. For a user, it should “just work”.

I think it’s ok that some TFM’s cannot be built with dotnet build, but require msbuild so that it picks up the correct MSBuildExtension paths for built-in targets. Bonus points for an error/warning if the appropriate targets is missing telling the user to install foobar SDK to get it. Clearly some of these builds will only work on Windows too, but that’s ok.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:97
  • Comments:17 (5 by maintainers)

github_iconTop GitHub Comments

26reactions
niemyjskicommented, Sep 30, 2017

Any updates on this?

9reactions
weitzhandlercommented, Dec 21, 2017

@xperiandri are you serious?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Target frameworks in SDK-style projects - .NET
Supported target frameworks ; Windows Store, netcore [netcore45] netcore45 [win] [win8] netcore451 [win81] ;.NET Micro Framework, netmf.
Read more >
Cross-Platform Libraries with Multi-Targeting for Xamarin, Uno ...
This is important because the UWP platform can't be built using Visual Studio for Mac, so making this target framework conditional on the...
Read more >
Upgrade from .NET Framework to .NET 6
NET Framework code, copying and pasting it into a new .NET 6 project, and getting ... It can also target platforms such as...
Read more >
What is the difference between .net Core multi target and . ...
Net Standard is used to can be use the same library in different type of projects, such as WPF, xamarin, UWP... etc. .Net...
Read more >
Multiple Platform Targeting in Visual Studio 2017
One way to achieve multi platform targeting is to create a number of separate projects, for example one for .NET Core , one...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found