From 7e8516fc41b71933d08c276f45741f90ec8d89e1 Mon Sep 17 00:00:00 2001 From: TheCakeIsNaOH Date: Mon, 27 Jun 2022 11:23:33 -0500 Subject: [PATCH] (#2738) Fix ILMerge errors The older AlphaFS version had an invalid PDB file, updated it to fix that. Also updated the location of the system DLLs for the updated .NET version. --- recipe.cake | 2 +- src/chocolatey.console/chocolatey.console.csproj | 4 ++-- src/chocolatey.console/packages.config | 2 +- src/chocolatey/chocolatey.csproj | 4 ++-- src/chocolatey/packages.config | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/recipe.cake b/recipe.cake index b45b02373f..65bc415b78 100644 --- a/recipe.cake +++ b/recipe.cake @@ -16,7 +16,7 @@ Func> getILMergeConfigs = () => { var mergeConfigs = new List(); - var targetPlatform = "v4,C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.0"; + var targetPlatform = "v4,C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.8"; var assembliesToILMerge = GetFiles(BuildParameters.Paths.Directories.PublishedApplications + "/choco/*.{exe|dll}") - GetFiles(BuildParameters.Paths.Directories.PublishedApplications + "/choco/choco.exe") - GetFiles(BuildParameters.Paths.Directories.PublishedApplications + "/choco/System.Management.Automation.dll"); diff --git a/src/chocolatey.console/chocolatey.console.csproj b/src/chocolatey.console/chocolatey.console.csproj index e53c5498ce..924056dbbb 100644 --- a/src/chocolatey.console/chocolatey.console.csproj +++ b/src/chocolatey.console/chocolatey.console.csproj @@ -127,8 +127,8 @@ false - - ..\packages\AlphaFS.2.1.3\lib\net452\AlphaFS.dll + + ..\packages\AlphaFS.2.2.6\lib\net452\AlphaFS.dll ..\packages\log4net.2.0.12\lib\net45\log4net.dll diff --git a/src/chocolatey.console/packages.config b/src/chocolatey.console/packages.config index 7c7fe2b693..1cfafa8a8a 100644 --- a/src/chocolatey.console/packages.config +++ b/src/chocolatey.console/packages.config @@ -1,6 +1,6 @@  - + diff --git a/src/chocolatey/chocolatey.csproj b/src/chocolatey/chocolatey.csproj index 215d030022..8bd899e266 100644 --- a/src/chocolatey/chocolatey.csproj +++ b/src/chocolatey/chocolatey.csproj @@ -68,8 +68,8 @@ false - - ..\packages\AlphaFS.2.1.3\lib\net452\AlphaFS.dll + + ..\packages\AlphaFS.2.2.6\lib\net452\AlphaFS.dll ..\packages\log4net.2.0.12\lib\net45\log4net.dll diff --git a/src/chocolatey/packages.config b/src/chocolatey/packages.config index 86853a04d5..078754253c 100644 --- a/src/chocolatey/packages.config +++ b/src/chocolatey/packages.config @@ -1,6 +1,6 @@  - +