From 2071cdc23836c486f1d86d42cb658e4895489197 Mon Sep 17 00:00:00 2001 From: wangchuang <515497782@qq.com> Date: Wed, 2 Aug 2023 15:21:27 +0800 Subject: [PATCH] feat:Aot --- Ava.MqttTool/Ava.MqttTool.csproj | 32 ++++++- Ava.MqttTool/FodyWeavers.xml | 12 +++ Ava.MqttTool/FodyWeavers.xsd | 141 +++++++++++++++++++++++++++++++ 3 files changed, 184 insertions(+), 1 deletion(-) create mode 100644 Ava.MqttTool/FodyWeavers.xml create mode 100644 Ava.MqttTool/FodyWeavers.xsd diff --git a/Ava.MqttTool/Ava.MqttTool.csproj b/Ava.MqttTool/Ava.MqttTool.csproj index 34cada7..123162d 100644 --- a/Ava.MqttTool/Ava.MqttTool.csproj +++ b/Ava.MqttTool/Ava.MqttTool.csproj @@ -1,6 +1,7 @@  - Exe + WinExe + Exe net7.0 enable true @@ -8,6 +9,31 @@ true + + Assets\avalonia-logo.ico + 1.0.0 + 1.0.0 + + true + + + + + $(AssemblyName) + $(AssemblyName) + com.$(username).$(AssemblyName) + 1.0.0 + APPL + + $(AssemblyName) + Assets/app.icns + NSApplication + true + 1.0 + + true + + @@ -21,6 +47,10 @@ + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + diff --git a/Ava.MqttTool/FodyWeavers.xml b/Ava.MqttTool/FodyWeavers.xml new file mode 100644 index 0000000..6b07158 --- /dev/null +++ b/Ava.MqttTool/FodyWeavers.xml @@ -0,0 +1,12 @@ + + + + + av_libglesv2 + libHarfBuzzSharp + libSkiaSharp + + + + + \ No newline at end of file diff --git a/Ava.MqttTool/FodyWeavers.xsd b/Ava.MqttTool/FodyWeavers.xsd new file mode 100644 index 0000000..05e92c1 --- /dev/null +++ b/Ava.MqttTool/FodyWeavers.xsd @@ -0,0 +1,141 @@ + + + + + + + + + + + + A list of assembly names to exclude from the default action of "embed all Copy Local references", delimited with line breaks + + + + + A list of assembly names to include from the default action of "embed all Copy Local references", delimited with line breaks. + + + + + A list of runtime assembly names to exclude from the default action of "embed all Copy Local references", delimited with line breaks + + + + + A list of runtime assembly names to include from the default action of "embed all Copy Local references", delimited with line breaks. + + + + + A list of unmanaged 32 bit assembly names to include, delimited with line breaks. + + + + + A list of unmanaged 64 bit assembly names to include, delimited with line breaks. + + + + + The order of preloaded assemblies, delimited with line breaks. + + + + + + This will copy embedded files to disk before loading them into memory. This is helpful for some scenarios that expected an assembly to be loaded from a physical file. + + + + + Controls if .pdbs for reference assemblies are also embedded. + + + + + Controls if runtime assemblies are also embedded. + + + + + Controls whether the runtime assemblies are embedded with their full path or only with their assembly name. + + + + + Embedded assemblies are compressed by default, and uncompressed when they are loaded. You can turn compression off with this option. + + + + + As part of Costura, embedded assemblies are no longer included as part of the build. This cleanup can be turned off. + + + + + Costura by default will load as part of the module initialization. This flag disables that behavior. Make sure you call CosturaUtility.Initialize() somewhere in your code. + + + + + Costura will by default use assemblies with a name like 'resources.dll' as a satellite resource and prepend the output path. This flag disables that behavior. + + + + + A list of assembly names to exclude from the default action of "embed all Copy Local references", delimited with | + + + + + A list of assembly names to include from the default action of "embed all Copy Local references", delimited with |. + + + + + A list of runtime assembly names to exclude from the default action of "embed all Copy Local references", delimited with | + + + + + A list of runtime assembly names to include from the default action of "embed all Copy Local references", delimited with |. + + + + + A list of unmanaged 32 bit assembly names to include, delimited with |. + + + + + A list of unmanaged 64 bit assembly names to include, delimited with |. + + + + + The order of preloaded assemblies, delimited with |. + + + + + + + + 'true' to run assembly verification (PEVerify) on the target assembly after all weavers have been executed. + + + + + A comma-separated list of error codes that can be safely ignored in assembly verification. + + + + + 'false' to turn off automatic generation of the XML Schema file. + + + + + \ No newline at end of file