Friday, April 22, 2016

How to resolve the dll conflict of installing Microsoft.Xaml.Behaviors.Uwp.Managed?

Leave a Comment

I'm migrating my WinPhone8.1 project to UWP and I found some incompatibility of the behaviors in the xaml. It seems that I need to install Microsoft.Xaml.Behaviors.Uwp.Managed and Microsoft.Xaml.Behaviors.Uwp.Native. However, after installation, I got compilation error like this:An assembly with the same simple name 'Microsoft.Xaml.Interactivity' has already been imported. Try removing one of the references... I think xaml.interactivity is provided by the framework and I cann't see it in the references in solution explorer. I'm wondering if any one can give some idea on this. Here is a screenshot of the references excluding my own dlls. enter image description here

Code snippet

        <interactivity:Interaction.Behaviors>             <core:EventTriggerBehavior                 EventName="ItemClick">                 <core:InvokeCommandAction                     Command="{Binding ViewSomeCommand}"                     InputConverter="{StaticResource ItemClickedToSomeConverter}" />             </core:EventTriggerBehavior>         </interactivity:Interaction.Behaviors> 

2 Answers

Answers 1

Only install Microsoft.Xaml.Behaviors.Uwp.Managed will solve the problem

Answers 2

enter image description here

i tried it and worked with me.

If You Enjoyed This, Take 5 Seconds To Share It

0 comments:

Post a Comment