CommunityToolkit / WindowsCommunityToolkit

The Windows Community Toolkit is a collection of helpers, extensions, and custom controls. It simplifies and demonstrates common developer tasks building .NET apps with UWP and the Windows App SDK / WinUI 3 for Windows 10 and Windows 11. The toolkit is part of the .NET Foundation.
https://docs.microsoft.com/windows/communitytoolkit/
Other
5.87k stars 1.38k forks source link

Microsoft.Toolkit.Uwp.Ui.Controls v. 7.0.2 can't be installed due to Microsoft.Bcl.AsyncInterfaces not being compatible with UAP 10.0.* #4040

Open zipgenius opened 3 years ago

zipgenius commented 3 years ago

Describe the bug

The version 7.0.2. of Microsoft.Toolkit.Uwp.Ui.Controls package doesn't upgrade from 7.0.1 and it doesn't install directly in a new blank UWP app.

Steps to Reproduce

Steps to reproduce the behavior:

  1. Just create a new blank UWP application
  2. Go to 'NuGet Package Manager'
  3. Search for "Microsoft.Toolkit.Uwp.Ui.Controls"
  4. Install version 7.0.2
  5. Install fails because of several errors NU1202:

NU1202: The package Microsoft.Bcl.AsyncInterfaces 5.0.0 is not compatible with uap10.0.19041 (UAP,Version=v10.0.19041). The package Microsoft.Bcl.AsyncInterfaces 5.0.0 doesn't support any destination framework. NU1202: The package System.Runtime.CompilerServices.Unsafe 5.0.0 is not compaible with uap10.0.19041 (UAP,Version=v10.0.19041). The package System.Runtime.CompilerServices.Unsafe 5.0.0 doesn't support any destination framework. (Translated from italian)

Expected behavior

The package version 7.0.2 should install/upgrade seamlessly.

Screenshots

image image

Environment

NuGet Package(s):
Microsoft.Toolkit.Uwp.Ui.Controls

Package Version(s):
7.0.1 (installing fine)
7.0.2 (not installing or upgrading)

Windows 10 Build Number:
- [ X ] May 2019 Update (18362)
- [ X ] May 2020 Update (19041)
- [ X ] Insider Build (21382)

App min and target version:
- [ X ] May 2019 Update (18362 - min)
- [ X ] May 2020 Update (19041 - target)

Device form factor:
- [ X ] Desktop

Visual Studio
- [ X ] 2019 (version: 16.9.6)
ghost commented 3 years ago

Hello zipgenius, thank you for opening an issue with us!

I have automatically added a "needs triage" label to help get things started. Our team will analyze and investigate the issue, and escalate it to the relevant team if possible. Other community members may also look into the issue and provide feedback 🙌

Kyaa-dost commented 3 years ago

@azchohfi seems to be a compatibility issue ⬆️ Does 7.0.2 have any restriction against certain framework?

michael-hawker commented 3 years ago

@Kyaa-dost we think this is from the upgrade to System.Text.Json we did in 7.0.2 for the Controls.Media package.

@RosarioPulella want to see if you can reproduce on your machine? @Sergio0694 wasn't able to see it on his end.

Rosuavio commented 3 years ago

I am not seeing this issue locally.

zipgenius commented 3 years ago

I found a workaround for this really strange behaviour that seems to be happening in my notebook - even after a clean install of Windows 10 and VS2019: I had to install the following packages...

I don't know why this is not necessary in my desktop PC with a pretty similar software setup.