Open JunkyXL86 opened 3 years ago
@JunkyXL86 If I'm not wrong you should install the Markup package just in your shared project. There's no need to install them into the platform projects.
I didn't even install it in the Android proj. As I said, error occurs when I try to install the package in the shared project. I tried it over and over again using VS 2019 16.11 and VS 2022 P3. New clean fresh Xamarin.Forms Mobile App, simply try to install the XCT.Markup 1.2 package.
@JunkyXL86 could you attach a small repro? I couldn't reproduce the error
@pictos I tested it again today (09/01/21) with the newest VS update. Still facing the issue. Maybe something is broken on my old machine. As the error is pretty certain, I'm still interested what the real cause is.
Meanwhile I got a new PC, Windows 11. On this machine using VS 2022 Preview 3.1 installing XCT.Markup 1.2 works as expected.
I've attached the Solution and a GIF showing the steps. Nothing special to it. XCT.Markup.1.2.zip
@JunkyXL86 I tried to reproduce it and everything works as expected. This error is very odd, since our package has a dependency on .netstandard 2.0. So this should be something in your environment.
Description
Developing my app on Visual Studio 2019 16.10.4 using Xamarin.Forms 5.0.0.2012. After updating to 2019 16.11, updating to Visual Studio 2022 Preview 3 and installing the latest MAUI workloads yesterday using maui-check (.NET 6 Preview 7) my app stopped building because of NuGet Package Xamarin.CommunityToolkit.Markup 1.2.0 that could not be resolved anymore. Reinstalling the Markup package produced following errors:
Tried to downgrade to .NET Standard 2.0 but same error messages accordingly
Downgrading XCT.Markup to 1.1.0 works. App will also start debugging.
Steps to Reproduce
Basic Information
Version with issue:
Last known good version:
Platform Target Frameworks: Does not apply, installing NuGet package in shared project already fails.
Edit: attached screenshot "Package Xamarin.CommunityToolkit.Markup 1.2.0 is not compatible with netstandard2.1 (.NETStandard,Version=v2.1). Package Xamarin.CommunityToolkit.Markup 1.2.0 does not support any target frameworks."