From 0b85e7d108dcf88dcadef0e038c4c2d1417993ad Mon Sep 17 00:00:00 2001 From: daredloco Date: Wed, 7 Jul 2021 16:14:17 -0300 Subject: [PATCH] Fixed author bug for NET5 Version --- .../GitInstallerNET5/FodyWeavers.xml | 3 + .../GitInstallerNET5/FodyWeavers.xsd | 111 ++++++++++++++++++ .../GitInstallerNET5/GitInstallerNET5.csproj | 9 +- .../GitInstallerNET5/Installer.cs | 7 +- 4 files changed, 126 insertions(+), 4 deletions(-) create mode 100644 GitInstallerNET5/GitInstallerNET5/FodyWeavers.xml create mode 100644 GitInstallerNET5/GitInstallerNET5/FodyWeavers.xsd diff --git a/GitInstallerNET5/GitInstallerNET5/FodyWeavers.xml b/GitInstallerNET5/GitInstallerNET5/FodyWeavers.xml new file mode 100644 index 0000000..5029e70 --- /dev/null +++ b/GitInstallerNET5/GitInstallerNET5/FodyWeavers.xml @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/GitInstallerNET5/GitInstallerNET5/FodyWeavers.xsd b/GitInstallerNET5/GitInstallerNET5/FodyWeavers.xsd new file mode 100644 index 0000000..44a5374 --- /dev/null +++ b/GitInstallerNET5/GitInstallerNET5/FodyWeavers.xsd @@ -0,0 +1,111 @@ + + + + + + + + + + + + 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 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. + + + + + 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 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/GitInstallerNET5/GitInstallerNET5/GitInstallerNET5.csproj b/GitInstallerNET5/GitInstallerNET5/GitInstallerNET5.csproj index 9947e94..0e13541 100644 --- a/GitInstallerNET5/GitInstallerNET5/GitInstallerNET5.csproj +++ b/GitInstallerNET5/GitInstallerNET5/GitInstallerNET5.csproj @@ -12,8 +12,8 @@ Simple Installer for Github © Roman Wanner 2020 https://github.com/daredloco/GitInstaller/ - 1.9.0.0 - 1.9.0.0 + 1.9.2.0 + 1.9.2.0 icon.ico @@ -26,6 +26,11 @@ + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + diff --git a/GitInstallerNET5/GitInstallerNET5/Installer.cs b/GitInstallerNET5/GitInstallerNET5/Installer.cs index 4db0d72..23e6a68 100644 --- a/GitInstallerNET5/GitInstallerNET5/Installer.cs +++ b/GitInstallerNET5/GitInstallerNET5/Installer.cs @@ -71,8 +71,11 @@ async void GetVersions() //Author JObject authorobj = job.Value("author"); - robj.AuthorName = authorobj.Value("login"); - robj.AuthorUrl = authorobj.Value("html_url"); + if(authorobj != null) + { + robj.AuthorName = authorobj.Value("login"); + robj.AuthorUrl = authorobj.Value("html_url"); + } //Assets JToken assets = job.Value("assets");