microsoft / XamlBehaviors

This is the official home for UWP XAML Behaviors on GitHub.
MIT License
692 stars 110 forks source link

Microsoft.Xaml.Behaviors.WinUI.Managed is not supported on WinUI UWP #206

Open ganesanviji opened 3 years ago

ganesanviji commented 3 years ago

Hi Team,

I have faced the issue like the Microsoft.Xaml.Behaviors.WinUI.Managed NuGet package is not installing in the WINUI UWP application. Please find my replication steps as below,

  1. First, I have created the WinUI UWP application
  2. Then, I have tried to use the Xaml pages from the UWP Template Studio by change the namespace from the Windows.UI.Xaml to Microsoft.UI.Xaml and added the Microsoft.WinUI NuGet package
  3. Also, I have used the Microsoft.Xaml.Behaviors.UWP.Managed NuGet package for xaml page behaviors (for Data Grid, Navigation etc..) in the UWP application
  4. I have tried to migrate this UWP xaml pages to the WinUI xaml pages. For this, I have googled and find the Microsoft.Xaml.Behaviors.WinUI.Managed NuGet package.
  5. Then try to install this in the WinUI UWP application and I have faced the below issue. image

Please, update me is this NuGet package is supported for the WinUI UWP platform? If still the NuGet package Microsoft.Xaml.Behaviors.WinUI.Managed is not supported for the WinUI UWP, please share the details about when this NuGet package available with the WinUI UWP support.

Thanks, Ganesan Rengasamy.

KarthikRajaAKR commented 3 years ago

Hi Team,

I'm also facing the same issue, that Microsoft.Xaml.Behaviors.WinUI.Managed package is not installing in WinUI UWP project and class library project.

mvegaca commented 3 years ago

Hello, Martin from Windows Template Studio Team.

We are working on WinUI 3 UWP Templates C# and we are also having this problem. I've created an Issue on WimTS repo to follow this issue up.

Noemata commented 3 years ago

Having XAML behaviors is a basic requirement at this point. WinUI+UWP can't move forward without it.

weichuen-chin commented 1 year ago

Hello, Any updates on this issue? I am trying to use install Microsoft.Xaml.Behaviors.Uwp.Managed -Version 2.0.1 on a WinUI/UWP project and getting the following error:

Install-Package : NU1202: Package Microsoft.Xaml.Behaviors.Uwp.Managed 2.0.1 is not compatible with net6.0-windows10.0.19041 (.NETCoreApp,Version=v6.0). Package Microsoft.Xaml.Behaviors.Uwp.Managed 2.0.1 supports: uap10.0 (UAP,Version=v10.0)