Migration from VS2019 to VS2022 - Win2D.uwp dependency issue

jr laff 1 Reputation point
2022-12-16T10:44:00.403+00:00

I have a Xamarin Forms solution that is working fine under VS2019. I try to migrate it to VS2022 but Nuget gives the following error:

Severity Code Description Project File Line Suppression State
Error NU1701 Package 'Win2D.uwp 1.20.0' was restored using 'UAP,Version=v10.0.18362, .NETFramework,Version=v4.6.1, .NETFramework,Version=v4.6.2, .NETFramework,Version=v4.7, .NETFramework,Version=v4.7.1, .NETFramework,Version=v4.7.2, .NETFramework,Version=v4.8, .NETFramework,Version=v4.8.1' instead of the project target framework '.NETStandard,Version=v2.0'. This package may not be fully compatible with your project. Client C:\Users\jrlaf\Documents\dev\nomad.2\Client\Client\Client.csproj 1

The main XF project is targeting .Net Standard 2.0.

I have tried forcing the install of Win2D.uwp 1.26.0 but the error persists.

Any idea?

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,380 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.