Avalonia C# app published with PublishAot flag still contains DLLs in the output directory

215 views Asked by At

I have an app that uses NET8 and Avalonia and when I publish it with "Produce single file" flag and this flag in csproj <IncludeNativeLibrariesForSelfExtract>true</IncludeNativeLibrariesForSelfExtract> everything works as expected and I get a single exe file as a result.

But when I publish it with Native AOT enabled <PublishAot>true</PublishAot> (which is also implies compilation into a single file), I still have the following dlls in the output folder

av_libglesv2.dll
libHarfBuzzSharp.dll
libSkiaSharp.dll

Any way to pack these dlls into the exe?

0

There are 0 answers