From 1a5307e3aec8d348e2aa49fe427e0013b0d38797 Mon Sep 17 00:00:00 2001 From: Rutherther Date: Sun, 12 Feb 2023 10:56:59 +0100 Subject: [PATCH] chore: add Costura.Fody to Inject --- .../NosSmooth.Comms.Inject/FodyWeavers.xml | 3 + .../NosSmooth.Comms.Inject/FodyWeavers.xsd | 141 ++++++++++++++++++ .../NosSmooth.Comms.Inject.csproj | 9 +- .../NosSmooth.Comms.Local.csproj | 2 +- 4 files changed, 151 insertions(+), 4 deletions(-) create mode 100644 src/Local/NosSmooth.Comms.Inject/FodyWeavers.xml create mode 100644 src/Local/NosSmooth.Comms.Inject/FodyWeavers.xsd diff --git a/src/Local/NosSmooth.Comms.Inject/FodyWeavers.xml b/src/Local/NosSmooth.Comms.Inject/FodyWeavers.xml new file mode 100644 index 0000000000000000000000000000000000000000..f1dea8fce9bddae509f2662795dd13fd40a5ee75 --- /dev/null +++ b/src/Local/NosSmooth.Comms.Inject/FodyWeavers.xml @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/src/Local/NosSmooth.Comms.Inject/FodyWeavers.xsd b/src/Local/NosSmooth.Comms.Inject/FodyWeavers.xsd new file mode 100644 index 0000000000000000000000000000000000000000..ff119f71316c5afcb5ed5e9d118fe3dc6f51b9eb --- /dev/null +++ b/src/Local/NosSmooth.Comms.Inject/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 diff --git a/src/Local/NosSmooth.Comms.Inject/NosSmooth.Comms.Inject.csproj b/src/Local/NosSmooth.Comms.Inject/NosSmooth.Comms.Inject.csproj index ea07d0fb6c9d507102abd841d23660faf57f91a9..df852155e4f764b1fc66670ca3c071d630767c7a 100644 --- a/src/Local/NosSmooth.Comms.Inject/NosSmooth.Comms.Inject.csproj +++ b/src/Local/NosSmooth.Comms.Inject/NosSmooth.Comms.Inject.csproj @@ -5,12 +5,15 @@ enable enable true - 1.2.2 - Add support for reporting errors using HandshakeResponse. -Do not open a console by default, add a support for opening a console using a command or by calling OpenConsole, CloseConsole inside of DllMain. + 1.2.3 + Add Costura.Fody support. + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + diff --git a/src/Local/NosSmooth.Comms.Local/NosSmooth.Comms.Local.csproj b/src/Local/NosSmooth.Comms.Local/NosSmooth.Comms.Local.csproj index bffcf0a8f560375fc0ac5d1f14b12fffb90f8b9c..9300e1e6075ac2c5ece54b0abee53ad40e3b4213 100644 --- a/src/Local/NosSmooth.Comms.Local/NosSmooth.Comms.Local.csproj +++ b/src/Local/NosSmooth.Comms.Local/NosSmooth.Comms.Local.csproj @@ -4,7 +4,7 @@ net7.0 enable enable - 1.2.2 + 1.2.3 Update Inject version to 1.1.0.