Open npostma opened 2 months ago
sorry but i am not installing anything from a random url .... 😆
[EDIT] Above was some spam bot .... i see the comment is removed now.
Is this only happening on Windows by any chance? Can you try the workaround in https://github.com/CommunityToolkit/dotnet/issues/923#issuecomment-2314444048? I wonder if it's the same issue 🤔
100% reproducible crash for me when running app on Windows. I tried installing the latest WinRT.Runtime as:
NuGet\Install-Package Microsoft.Windows.CsWinRT -Version 2.1.1
but that just caused it to crash a bit later in the code.
went back to <PackageReference Include="CommunityToolkit.Mvvm" Version="8.2.2" />
It crashed on this line in app.xaml.cs
protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp();
System.TypeInitializationException
HResult=0x80131534
Message=The type initializer for '
This exception was originally thrown at this call stack: [External Code]
Inner Exception 1: FileNotFoundException: Could not load file or assembly 'WinRT.Runtime, Version=2.1.0.0, Culture=neutral, PublicKeyToken=99ea127f02d97709'. The system cannot find the file specified.
@exquirentibus like I said in the other comment, can you try the workaround in https://github.com/CommunityToolkit/dotnet/issues/923#issuecomment-2314444048?
Is this only happening on Windows by any chance
No, this is happening on a MAC (mini). Latest OS. In Visual Studio for MAC (E.O.L, since this month) and in Visual Studio Code on the mac. So i don't think the suggested workaround is going to work in my case.
I got the same issue. My MAUI app stopped working when I upgraded to CommunityToolkit.Mvvm Ver. 8.3.0. I pinpointed the problem down to the code below.
` WeakReferenceMessenger.Default.Register<CapturedQRData>(this, async (sender, oCapturedQRData) =>
{
// If we have a Guid, try creating a new registration
if (!oCapturedQRData.QRGuid.Equals(Guid.Empty))
{
bool lError = !await NewRegistration(oCapturedQRData.QRGuid, oPClockPref.General.HardwareID.ToString());
}
});
When I remark the above code, it works. I reverted back to Ver. 8.2.2 and it works fine.
See also: https://stackoverflow.com/questions/78919502/cannot-use-weakreferencemessenger-inside-maui-windows
JP
I reverted back to Ver. 8.2.2 and it works fine.
Same for me. For now i am on 8.2.2
I don't know if this is relevant, but the publish date on the 8.3.0 CommunityToolkit.Mvvm package is very wrong. Sunday, December 31, 1899 (12/31/1899)
I suspect that it is on purpose to revoke the release of that version? Latest stable in the NuGet manager is 8.2.2.....
Describe the bug
Hi, after updating the nuGet packet i get the folling error when starting the application:
This occurs only on iOS, for release builds in testflight and debug builds, but not for any of my Android builds.
The way i initialize the toolkit:
The way i register my WeakReferenceMessenger is:
Regression
It worked in version 8.2.0
Steps to reproduce
Expected behavior
That the iOS application does not crash after showing the splash screen.
Screenshots
No response
IDE and version
Other
IDE version
VS For mac and Visual Studio Code on mac.
Nuget packages
Nuget package version(s)
8.3.0
Additional context
No response
Help us help you
Yes, but only if others can assist