Failed to compile third-party dynamic libraries using AOT in the MAUI(Andriod) project?

晓宁 焦 0 Reputation points
2023-01-30T01:36:17.93+00:00
  1. Create a MAUI APP project with VS2022(Version 17.4.4)
  2. install TencentCloud.dll from nuget;
  3. direct publish project,
    it takes very long,long time; about three hours. finally compiler fail.
<RunAOTCompilation>True</RunAOTCompilation>
<PublishTrimmed>True</PublishTrimmed>

<ItemGroup>
	<PackageReference Include="CommunityToolkit.Mvvm" Version="8.0.0" />
	<PackageReference Include="TencentCloudSDK" Version="3.0.679" />
</ItemGroup>

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,868 questions
{count} votes