I have SL4 app with MVVMLight. I migrate it to SL 5 and got following error when compiling the app:
The tag 'EventToCommand' does not exist in XML namespace
'clr-namespace:GalaSoft.MvvmLight.Command;assembly=GalaSoft.MvvmLight.SL5
The xaml for this error is:
xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"
xmlns:cmd="clr-namespace:GalaSoft.MvvmLight.Command;assembly=GalaSoft.MvvmLight.SL5"
<i:Interaction.Triggers>
<i:EventTrigger EventName="MouseLeftButtonUp">
<cmd:EventToCommand Command="{Binding ResetPasswordCommand,Mode=OneWay}"
MustToggleIsEnabledValue="True" />
</i:EventTrigger>
</i:Interaction.Triggers>
quite confused. Have update all assemblies for new platform. How to resolve this problem?
Figure it out: should use assembly=GalaSoft.MvvmLight.Extras.SL5 instead of assembly=GalaSoft.MvvmLight.SL5.
Thanks.
Related
I'm not sure how to resolve this. During runtime, I'm getting an initialization error
System.IO.FileNotFoundException: Could not load file or assembly 'Syncfusion.SfPopupLayout.XForms, Version=18.4451.0.33, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.
The file (if this is the correct one) exists here:
C:\Users....nuget\packages\syncfusion.xamarin.sfpopuplayout\18.4.0.33\lib\netstandard2.0\Syncfusion.SfPopupLayout.XForms.dll
This is happening in the constructor of my ContentPage.
The Dependencies/Packages folder shows Syncfusion.Xamarin.SfPopupLayout(18.4.0.33). I see the error is reporting 18.4451.0.33. Is that a significant difference ? What do I do ?
Thanks.
EDIT: I have installed the latest version of this package, using nuget.
Install the Syncfusion.Xamarin.SfPopupLayout from NuGet.
After that, you could use this control.
Xaml:
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:d="http://xamarin.com/schemas/2014/forms/design"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:sfPopup="clr-namespace:Syncfusion.XForms.PopupLayout;assembly=Syncfusion.SfPopupLayout.XForms"
mc:Ignorable="d"
x:Class="Test.MainPage">
<sfPopup:SfPopupLayout x:Name="popupLayout">
<sfPopup:SfPopupLayout.Content>
<StackLayout x:Name="mainLayout">
<Button x:Name="clickToShowPopup" Text="ClickToShowPopup"
VerticalOptions="Start" HorizontalOptions="FillAndExpand"
Clicked="ClickToShowPopup_Clicked"/>
</StackLayout>
</sfPopup:SfPopupLayout.Content>
</sfPopup:SfPopupLayout>
</ContentPage>
I have prepared sample and checked the SfPopupLayout in the mentioned NuGet version of 18.4.0.33 and it is working fine. Attached tested sample in the in the following link
sample [link]: https://www.syncfusion.com/downloads/support/directtrac/general/ze/PopupLayout112920991
Please check shared project and revert us if the reported issue is occurring in this sample too, if not check your project file maybe you installed more than one version of SfPopupLayout package.
Regards,
Pradeep Kumar B
We are trying to integrate to Azure notification hub in xamarin forms project. Added the below nuget packages and implemented the classes but while running the application , getting the below error. We are not using any code shrinker but still getting this error. Any help would be appreciated.
Xamarin.GooglePlayServices.Base
Xamarin.Firebase.Messaging
Xamarin.Azure.NotificationHubs.Android
''Java.Lang.RuntimeException: 'Unable to get provider com.google.firebase.provider.FirebaseInitProvider: com.google.firebase.components.MissingDependencyException: Unsatisfied dependency for component Component<[class com.google.firebase.messaging.FirebaseMessaging]>{1, type=0, deps=[Dependency{anInterface=class com.google.firebase.FirebaseApp, type=required, direct=true}, Dependency{anInterface=interface com.google.firebase.installations.FirebaseInstallationsApi, type=required, direct=true}, Dependency{anInterface=class com.google.firebase.iid.FirebaseInstanceId, type=required, direct=true}, Dependency{anInterface=interface com.google.firebase.platforminfo.UserAgentPublisher, type=required, direct=true}, Dependency{anInterface=interface com.google.android.datatransport.TransportFactory, type=optional, direct=true}, Dependency{anInterface=interface com.google.firebase.heartbeatinfo.HeartBeatInfo, type=required, direct=true}]}: interface com.google.firebase.installations.FirebaseInstallationsApi''
This error was because I missed adding these permissions in manifest.
<uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.GET_ACCOUNTS"/>
Now the issue is that the OnNewToken method in FirebaseMessagingservice is not getting invoked. Tried reinstalling as well. Any thoughts on this?
i have use lottie animation from nuget package but when app is open its show nothing, my code is below
xmlns:forms="clr-namespace:Lottie.Forms;assembly=Lottie.Forms"
<forms:AnimationView
x:Name="animationView"
Animation="data.json"
Loop="True"
AutoPlay="True"
HeightRequest="300" WidthRequest="300"
VerticalOptions="FillAndExpand"
HorizontalOptions="FillAndExpand" />
i installed Com.Airbnb.Xamarin.Forms.Lottie 3.1.3 from nuget package but its not showing, kindly suggest....
I have ASP.Net MVC project. The project contains WebGrease, packages.config:
<package id="WebGrease" version="1.5.2" targetFramework="net462" />
Recently because of (https://www.nuget.org/packages/BundleTransformer.MicrosoftAjax/) I added AjaxMin into my packages.config:
<package id="AjaxMin" version="5.14.5506.26202" targetFramework="net461" />
In my code, I am using IsNullOrWhiteSpace() extension method. The method actually exists in these two libraries:
Visual Studio cannot decided which one has to be used.
I cannot remove the reference to WebGrease, because if I do so, I have the following exception:
How can I solve the conflict?
Thank you
You can use string.IsNullOrWhitespace() directly.
I'm seeing an inscrutable compile error in my ASP.NET application.
Project file must include the .NET Framework assembly 'WindowsBase, PresentationCore, PresentationFramework' in the reference list
That's the WPF assembly. My project is ASP.NET. Has anyone ever encountered this before?
Even stranger, the project was compiling before I started messing around with my .resx files due to a different issue. Then suddenly this nonsensical error appeared.
This happens if you have a file in your project with its Build Action set to Resource. (which is used for WPF embedding)
Find the offending file and change its Build Action.
I had the following in the csproj file:
<Page Include="BuildProcessTemplates\DefaultTemplate.11.1.xaml">
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="BuildProcessTemplates\LabDefaultTemplate.11.xaml">
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="BuildProcessTemplates\UpgradeTemplate.xaml">
<Generator>MSBuild:Compile</Generator>
</Page>
Changing it to below fixed the problem:
<Content Include="BuildProcessTemplates\DefaultTemplate.11.1.xaml" />
<Content Include="BuildProcessTemplates\LabDefaultTemplate.11.xaml" />
<Content Include="BuildProcessTemplates\UpgradeTemplate.xaml" />