Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ganesanviji opened this issue Nov 24, 2020 · 5 comments
Open

Comments

@ganesanviji
Copy link

ganesanviji commented Nov 24, 2020

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.

@ganesanviji ganesanviji changed the title Microsoft.Xaml.Behaviors.WinUI.Managed is not supported on WINUI UWP Microsoft.Xaml.Behaviors.WinUI.Managed is not supported on WinUI UWP Nov 24, 2020
@KarthikRajaAKR
Copy link

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
Copy link

mvegaca commented Jan 28, 2021

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
Copy link

Noemata commented Feb 25, 2021

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

@weichuen-chin
Copy link

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)

@michael-hawker
Copy link
Contributor

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)

This looks like you're trying to install the UWP package in a WinUI 3 package. For WinUI 3 you need Microsoft.Xaml.Behaviors.WinUI.Managed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants