From 0ef160a57309ab2b7f871a7210b3baccccc8dc5c Mon Sep 17 00:00:00 2001 From: TheCakeIsNaOH Date: Thu, 16 Jun 2022 12:31:10 -0500 Subject: [PATCH] (#2738) Uplift to .Net 4.8 --- src/chocolatey.console/app.config | 11 ++++++ .../chocolatey.console.csproj | 25 +++++++++---- src/chocolatey.console/packages.config | 7 ++-- .../chocolatey.resources.csproj | 9 ++++- src/chocolatey.tests.integration/App.config | 9 ++++- .../chocolatey.tests.integration.csproj | 29 +++++++++------ .../packages.config | 11 +++--- src/chocolatey.tests/App.config | 9 ++++- src/chocolatey.tests/chocolatey.tests.csproj | 15 +++++--- src/chocolatey.tests/packages.config | 4 +- src/chocolatey/app.config | 11 ++++++ src/chocolatey/chocolatey.csproj | 37 ++++++++++++------- src/chocolatey/packages.config | 13 +++---- 13 files changed, 127 insertions(+), 63 deletions(-) create mode 100644 src/chocolatey.console/app.config create mode 100644 src/chocolatey/app.config diff --git a/src/chocolatey.console/app.config b/src/chocolatey.console/app.config new file mode 100644 index 0000000000..9a025fe0eb --- /dev/null +++ b/src/chocolatey.console/app.config @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/src/chocolatey.console/chocolatey.console.csproj b/src/chocolatey.console/chocolatey.console.csproj index fbd5c3f19a..e53c5498ce 100644 --- a/src/chocolatey.console/chocolatey.console.csproj +++ b/src/chocolatey.console/chocolatey.console.csproj @@ -1,5 +1,5 @@  - + Debug x86 @@ -10,7 +10,7 @@ Properties chocolatey.console choco - v4.0 + v4.8 512 @@ -25,6 +25,7 @@ DEBUG;TRACE prompt 4 + false x86 @@ -35,6 +36,7 @@ prompt 4 true + false true @@ -51,6 +53,7 @@ false ;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\FxCop\\Rules false + false bin\Release\ @@ -67,6 +70,7 @@ false ;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\FxCop\\Rules false + false ..\..\docs\logo\chocolatey.ico @@ -86,6 +90,7 @@ x86 prompt MinimumRecommendedRules.ruleset + false bin\NoResources\ @@ -97,6 +102,7 @@ MinimumRecommendedRules.ruleset false false + false bin\x86\ReleaseOfficial\ @@ -106,6 +112,7 @@ x86 prompt MinimumRecommendedRules.ruleset + false bin\ReleaseOfficial\ @@ -117,14 +124,14 @@ MinimumRecommendedRules.ruleset false false + false - False - ..\packages\AlphaFS.2.1.3\lib\net40\AlphaFS.dll + ..\packages\AlphaFS.2.1.3\lib\net452\AlphaFS.dll - ..\packages\log4net.2.0.12\lib\net40\log4net.dll + ..\packages\log4net.2.0.12\lib\net45\log4net.dll ..\packages\Microsoft.Web.Xdt.2.1.1\lib\net40\Microsoft.Web.XmlTransform.dll @@ -133,8 +140,11 @@ False ..\..\lib\Chocolatey-NuGet.Core.2.11.0.20211014\lib\net4\NuGet.Core.dll - - ..\packages\SimpleInjector.2.5.0\lib\net40-client\SimpleInjector.dll + + ..\packages\SimpleInjector.2.5.0\lib\net45\SimpleInjector.dll + + + ..\packages\SimpleInjector.2.5.0\lib\net45\SimpleInjector.Diagnostics.dll @@ -162,6 +172,7 @@ Designer + diff --git a/src/chocolatey.console/packages.config b/src/chocolatey.console/packages.config index 0bc63cb34d..7c7fe2b693 100644 --- a/src/chocolatey.console/packages.config +++ b/src/chocolatey.console/packages.config @@ -1,8 +1,7 @@  - - - + + - + \ No newline at end of file diff --git a/src/chocolatey.resources/chocolatey.resources.csproj b/src/chocolatey.resources/chocolatey.resources.csproj index dc2f838dc8..9150a4a47d 100644 --- a/src/chocolatey.resources/chocolatey.resources.csproj +++ b/src/chocolatey.resources/chocolatey.resources.csproj @@ -1,5 +1,5 @@  - + Debug AnyCPU @@ -10,8 +10,9 @@ Properties chocolatey.resources chocolatey.resources - v4.0 + v4.8 512 + true @@ -21,6 +22,7 @@ DEBUG;TRACE prompt 4 + false none @@ -29,6 +31,7 @@ TRACE prompt 4 + false bin\NoResources\ @@ -37,6 +40,7 @@ AnyCPU prompt MinimumRecommendedRules.ruleset + false bin\ReleaseOfficial\ @@ -45,6 +49,7 @@ AnyCPU prompt MinimumRecommendedRules.ruleset + false diff --git a/src/chocolatey.tests.integration/App.config b/src/chocolatey.tests.integration/App.config index ad00b8f9d7..43fdf09b60 100644 --- a/src/chocolatey.tests.integration/App.config +++ b/src/chocolatey.tests.integration/App.config @@ -1,7 +1,12 @@  - + + + + + + - \ No newline at end of file + diff --git a/src/chocolatey.tests.integration/chocolatey.tests.integration.csproj b/src/chocolatey.tests.integration/chocolatey.tests.integration.csproj index 950ac93c6a..21fe8334f8 100644 --- a/src/chocolatey.tests.integration/chocolatey.tests.integration.csproj +++ b/src/chocolatey.tests.integration/chocolatey.tests.integration.csproj @@ -1,5 +1,5 @@  - + Debug AnyCPU @@ -10,10 +10,11 @@ Properties chocolatey.tests.integration chocolatey.tests.integration - v4.0 + v4.8 512 ..\ true + true @@ -23,6 +24,7 @@ DEBUG;TRACE prompt 4 + false pdbonly @@ -31,6 +33,7 @@ TRACE prompt 4 + false bin\NoResources\ @@ -40,6 +43,7 @@ AnyCPU prompt MinimumRecommendedRules.ruleset + false bin\ReleaseOfficial\ @@ -49,10 +53,11 @@ AnyCPU prompt MinimumRecommendedRules.ruleset + false - ..\packages\log4net.2.0.12\lib\net40\log4net.dll + ..\packages\log4net.2.0.12\lib\net45\log4net.dll ..\packages\Microsoft.Web.Xdt.2.1.1\lib\net40\Microsoft.Web.XmlTransform.dll @@ -72,22 +77,22 @@ ..\packages\Should.1.1.12.0\lib\Should.dll - ..\packages\SimpleInjector.2.5.0\lib\net40-client\SimpleInjector.dll + ..\packages\SimpleInjector.2.5.0\lib\net45\SimpleInjector.dll - - ..\packages\SimpleInjector.2.5.0\lib\net40-client\SimpleInjector.Diagnostics.dll + + ..\packages\SimpleInjector.2.5.0\lib\net45\SimpleInjector.Diagnostics.dll - - ..\packages\Rx-Core.2.1.30214.0\lib\Net40\System.Reactive.Core.dll + + ..\packages\Rx-Core.2.1.30214.0\lib\Net45\System.Reactive.Core.dll - - ..\packages\Rx-Interfaces.2.1.30214.0\lib\Net40\System.Reactive.Interfaces.dll + + ..\packages\Rx-Interfaces.2.1.30214.0\lib\Net45\System.Reactive.Interfaces.dll - - ..\packages\Rx-Linq.2.1.30214.0\lib\Net40\System.Reactive.Linq.dll + + ..\packages\Rx-Linq.2.1.30214.0\lib\Net45\System.Reactive.Linq.dll diff --git a/src/chocolatey.tests.integration/packages.config b/src/chocolatey.tests.integration/packages.config index cbce9b63e2..caa327a9bb 100644 --- a/src/chocolatey.tests.integration/packages.config +++ b/src/chocolatey.tests.integration/packages.config @@ -1,14 +1,13 @@  - - + - - - + + + - + \ No newline at end of file diff --git a/src/chocolatey.tests/App.config b/src/chocolatey.tests/App.config index ad00b8f9d7..43fdf09b60 100644 --- a/src/chocolatey.tests/App.config +++ b/src/chocolatey.tests/App.config @@ -1,7 +1,12 @@  - + + + + + + - \ No newline at end of file + diff --git a/src/chocolatey.tests/chocolatey.tests.csproj b/src/chocolatey.tests/chocolatey.tests.csproj index 10e34886c4..99a400ff79 100644 --- a/src/chocolatey.tests/chocolatey.tests.csproj +++ b/src/chocolatey.tests/chocolatey.tests.csproj @@ -1,5 +1,5 @@  - + Debug AnyCPU @@ -10,9 +10,10 @@ Properties chocolatey.tests chocolatey.tests - v4.0 + v4.8 512 ..\ + true @@ -22,6 +23,7 @@ DEBUG;TRACE prompt 4 + false pdbonly @@ -30,6 +32,7 @@ TRACE prompt 4 + false bin\NoResources\ @@ -39,6 +42,7 @@ AnyCPU prompt MinimumRecommendedRules.ruleset + false bin\ReleaseOfficial\ @@ -48,10 +52,11 @@ AnyCPU prompt MinimumRecommendedRules.ruleset + false - ..\packages\log4net.2.0.12\lib\net40\log4net.dll + ..\packages\log4net.2.0.12\lib\net45\log4net.dll ..\packages\Microsoft.Web.Xdt.2.1.1\lib\net40\Microsoft.Web.XmlTransform.dll @@ -71,10 +76,10 @@ ..\packages\Should.1.1.12.0\lib\Should.dll - ..\packages\SimpleInjector.2.5.0\lib\net40-client\SimpleInjector.dll + ..\packages\SimpleInjector.2.5.0\lib\net45\SimpleInjector.dll - ..\packages\SimpleInjector.2.5.0\lib\net40-client\SimpleInjector.Diagnostics.dll + ..\packages\SimpleInjector.2.5.0\lib\net45\SimpleInjector.Diagnostics.dll diff --git a/src/chocolatey.tests/packages.config b/src/chocolatey.tests/packages.config index bb0816bde7..a6cb24100c 100644 --- a/src/chocolatey.tests/packages.config +++ b/src/chocolatey.tests/packages.config @@ -1,11 +1,11 @@  - + - + \ No newline at end of file diff --git a/src/chocolatey/app.config b/src/chocolatey/app.config new file mode 100644 index 0000000000..9a025fe0eb --- /dev/null +++ b/src/chocolatey/app.config @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/src/chocolatey/chocolatey.csproj b/src/chocolatey/chocolatey.csproj index ea349a4a75..215d030022 100644 --- a/src/chocolatey/chocolatey.csproj +++ b/src/chocolatey/chocolatey.csproj @@ -1,5 +1,5 @@  - + Debug AnyCPU @@ -10,10 +10,11 @@ Properties chocolatey chocolatey - v4.0 + v4.8 512 ..\ - Client + + true @@ -23,6 +24,7 @@ DEBUG;TRACE prompt 4 + false pdbonly @@ -34,6 +36,7 @@ true true bin\Release\chocolatey.xml + false ..\..\docs\logo\chocolatey.ico @@ -49,6 +52,7 @@ AnyCPU prompt MinimumRecommendedRules.ruleset + false true @@ -61,14 +65,14 @@ AnyCPU prompt MinimumRecommendedRules.ruleset + false - False - ..\packages\AlphaFS.2.1.3\lib\net40\AlphaFS.dll + ..\packages\AlphaFS.2.1.3\lib\net452\AlphaFS.dll - ..\packages\log4net.2.0.12\lib\net40-client\log4net.dll + ..\packages\log4net.2.0.12\lib\net45\log4net.dll False @@ -81,8 +85,11 @@ ..\..\lib\Rhino.Licensing.1.4.1\lib\net40\Rhino.Licensing.dll - - ..\packages\SimpleInjector.2.5.0\lib\net40-client\SimpleInjector.dll + + ..\packages\SimpleInjector.2.5.0\lib\net45\SimpleInjector.dll + + + ..\packages\SimpleInjector.2.5.0\lib\net45\SimpleInjector.Diagnostics.dll @@ -92,17 +99,18 @@ False ..\..\lib\PowerShell\System.Management.Automation.dll - - ..\packages\Rx-Core.2.1.30214.0\lib\Net40\System.Reactive.Core.dll + + ..\packages\Rx-Core.2.1.30214.0\lib\Net45\System.Reactive.Core.dll - - ..\packages\Rx-Interfaces.2.1.30214.0\lib\Net40\System.Reactive.Interfaces.dll + + ..\packages\Rx-Interfaces.2.1.30214.0\lib\Net45\System.Reactive.Interfaces.dll - - ..\packages\Rx-Linq.2.1.30214.0\lib\Net40\System.Reactive.Linq.dll + + ..\packages\Rx-Linq.2.1.30214.0\lib\Net45\System.Reactive.Linq.dll + @@ -358,6 +366,7 @@ Designer + Designer diff --git a/src/chocolatey/packages.config b/src/chocolatey/packages.config index 2fcf30ea40..86853a04d5 100644 --- a/src/chocolatey/packages.config +++ b/src/chocolatey/packages.config @@ -1,11 +1,10 @@  - - - + + - - - - + + + + \ No newline at end of file