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.

Cannot target uap10.0 apps with new TargetFrameworks syntax

See original GitHub issue

Forgive me if this is already formally bugged somewhere, but while I’ve seen lots of references to uap10 targeting issues, I didn’t come across an issues that specifically addressed <targetframeworks> support.

While in general the documentation for TargetFrameworks and the new .csproj format seems to be, shall we say, on the skimpier side; I’m unable to devise whether or not - in theory - targeting UAP10.0 should work in a multi-targeted csproj.

I know UWP/UAP support is a bit of a thorn in the side of the dotnet sdk and corefx teams, but it’s very unclear as to how exactly it fits in to the picture.

A .NET library created with <TargetFrameworks>netstandard1.3</TargetFrameworks> can be consumed by a “legacy” UWP/UAP10 project, but there does not seem to be a way of creating a multi-targeted .NET library that includes a dependency on UWP.

Either UWP is a framework target, in which case <TargetFrameworks>uap10.0</TargetFrameworks> should work, or UWP is a .NET Standard target w/ access to Windows-specific and platform-specific libraries (which is what is most-heavily implied in the .NET Standard documentation). However, functionally that does not seem to be the case since a .NET Standard library (<TargetFrameworks>netstandard1.3</TargetFrameworks>) cannot install microsoft.netcore.universalwindowsplatform as a dependency.

We’re left in a limbo state where it seems projects targeting UAP/UWP must use the legacy csproj format, because they’re neither full-fledged framework targets nor do they have .NET Standard-compliant libraries.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:7
  • Comments:20 (3 by maintainers)

github_iconTop GitHub Comments

5reactions
madelsoncommented, Apr 23, 2019

Why is this closed? Has it been decided that this will never be supported?

2reactions
nickrandolphcommented, Jul 6, 2020

yep sure - https://github.com/MvvmCross/MvvmCross/blob/23819a3ce1c3846c9d0307f935a18ef4657f51eb/MvvmCross/MvvmCross.csproj#L3 Also, I have a walk through for setting it up on a class library for use with Uno here: https://nicksnettravels.builttoroam.com/uno-crossplatform-template The support for WASM is essentially just a .NET standard library. And yes, you do need to use https://github.com/novotnyllc/MSBuildSdkExtras

Read more comments on GitHub >

github_iconTop Results From Across the Web

Target frameworks in SDK-style projects - .NET
When you target a framework in an app or library, you're specifying the set of APIs that you'd like to make available to...
Read more >
Unable to add UWP target from CSProj file
I've added uap10.0 to the target frameworks list in the CSProj file (Net Core project) so that I can reference this library from...
Read more >
UWP Project can't reference multiple target project if net46 ...
If using a multiple frameworks target project, such as : <PropertyGroup> <TargetFrameworks>net46;uap10.0</TargetFrameworks> </PropertyGroup>
Read more >
MSBuildSdkExtras
json, and then set my TargetFramework to uap10.0.19041. On build I get "Error APPX3217: SDK folder containing 'UAP.props' for 'UAP 10.0.19041.0' cannot be ......
Read more >
NAudio and .NET Standard
Here's the first part of my csproj file, specifying three target frameworks (more on that later!), and the metadata for the NuGet package;...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

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