Troubleshooting
Last updated
Last updated
This error will occur when trying to customize the Hybrid application's startup splash screen without a paid plan. You can view licensing options here:
You can restore the default splash using this image:
Hybrid Client .csproj file
<!-- Splash Screen -->
<HybridSplashScreen Include="Resources\Splash\splash.svg" BaseSize="456,456" />
This error will occur when trying to customize the Hybrid application's app icon without a paid plan. You can view licensing options here:
You can restore the default app icons using these images:
Hybrid Client .csproj file
<!-- App Icon -->
<MauiIcon Include="Resources\AppIcon\appicon.svg" ForegroundFile="Resources\AppIcon\appiconfg.svg" />
This error occurs when the android workload is not installed.
Run dotnet workload install android
from the command prompt.
This error occurs when wasm-tools are not installed.
Run dotnet workload install wasm-tools
from the command prompt.
This error can occur when the package is locked. Either wait a minute and rebuild or change the GUID of the project inside of the Hybrid Client csproj file.
and
The solution for these errors is to disable Hot Reload while debugging or disable Common Language Runtime Exceptions.
Go to Tools -> Options -> Debugging -> XAML Hot Reload -> Uncheck Android and iOS (.NET MAUI)
Add this to the project file:
<ItemGroup Condition="'$(TargetFramework)' != 'net48'">
<PackageReference Include="System.Drawing.Common" Version="7.0.0" ExcludeAssets="All" />
</ItemGroup>
Wisej.NET Hybrid Projects do not support trimming, linking or Ahead-of-Time (AOT) compilation at the moment. Please ensure all of these features are disabled when compiling a release build.
<PropertyGroup>
<!-- All Platforms -->
<Optimize>false</Optimize>
<EnableAssemblyILStripping>false</EnableAssemblyILStripping>
<!-- iOS -->
<MtouchLink>None</MtouchLink>
<!-- Android -->
<MtouchUseLlvm>False</MtouchUseLlvm>
<RunAOTCompilation>False</RunAOTCompilation>
</PropertyGroup>
Application Stuck when All Common Runtime Exceptions enabled
Ensure Options > General > Just My Code is enabled.