From 72cd3a2acf0b56cc7af2343bb96af5dd9de8424b Mon Sep 17 00:00:00 2001 From: Marko Lahma Date: Sat, 9 Nov 2024 14:54:29 +0200 Subject: [PATCH] Convert to use Central Package Management * all versions in Directory.Packages.props * use net472 for executable projects * latest versions of libraries --- Acornima.sln | 1 + .../Acornima.Benchmarks.csproj | 4 ++-- samples/Acornima.Cli/Acornima.Cli.csproj | 9 ++++--- .../Acornima.Cli/Helpers/ConsoleExtensions.cs | 2 +- samples/JsxTranspiler/JsxTranspiler.csproj | 5 ++-- src/Acornima.Extras/Acornima.Extras.csproj | 5 ---- .../Acornima.SourceGenerators.csproj | 5 ++-- src/Acornima/Acornima.csproj | 9 ++----- .../Acornima.Tests.SourceGenerators.csproj | 16 ++++++------- .../.config/dotnet-tools.json | 2 +- .../Acornima.Tests.Test262.csproj | 12 +++++----- test/Acornima.Tests/Acornima.Tests.csproj | 24 ++++++++----------- 12 files changed, 39 insertions(+), 55 deletions(-) diff --git a/Acornima.sln b/Acornima.sln index 019688d..3206e7d 100644 --- a/Acornima.sln +++ b/Acornima.sln @@ -22,6 +22,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution .editorconfig = .editorconfig .gitignore = .gitignore Directory.Build.props = Directory.Build.props + Directory.Packages.props = Directory.Packages.props EndProjectSection EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{C428FBAE-48E0-4C47-B9D2-688866714516}" diff --git a/benchmarks/Acornima.Benchmarks/Acornima.Benchmarks.csproj b/benchmarks/Acornima.Benchmarks/Acornima.Benchmarks.csproj index c48a96d..cf235ec 100644 --- a/benchmarks/Acornima.Benchmarks/Acornima.Benchmarks.csproj +++ b/benchmarks/Acornima.Benchmarks/Acornima.Benchmarks.csproj @@ -9,8 +9,8 @@ - - + + diff --git a/samples/Acornima.Cli/Acornima.Cli.csproj b/samples/Acornima.Cli/Acornima.Cli.csproj index 53b129a..4e3ff18 100644 --- a/samples/Acornima.Cli/Acornima.Cli.csproj +++ b/samples/Acornima.Cli/Acornima.Cli.csproj @@ -1,7 +1,7 @@ - net6.0;net462 + net6.0;net472 acornima-cli Exe true @@ -10,9 +10,8 @@ - - - + + @@ -22,7 +21,7 @@ - + System.Runtime.CompilerServices.IsExternalInit; diff --git a/samples/Acornima.Cli/Helpers/ConsoleExtensions.cs b/samples/Acornima.Cli/Helpers/ConsoleExtensions.cs index d80e2e1..4befd4d 100644 --- a/samples/Acornima.Cli/Helpers/ConsoleExtensions.cs +++ b/samples/Acornima.Cli/Helpers/ConsoleExtensions.cs @@ -14,7 +14,7 @@ public static string ReadString(this IConsole console) } bool isWindowsOS; -#if NET462 +#if NET472 isWindowsOS = true; #else isWindowsOS = RuntimeInformation.IsOSPlatform(OSPlatform.Windows); diff --git a/samples/JsxTranspiler/JsxTranspiler.csproj b/samples/JsxTranspiler/JsxTranspiler.csproj index b9ec248..b0977f4 100644 --- a/samples/JsxTranspiler/JsxTranspiler.csproj +++ b/samples/JsxTranspiler/JsxTranspiler.csproj @@ -1,7 +1,7 @@ - net6.0;net462 + net6.0;net472 jsxt Exe true @@ -10,8 +10,7 @@ - - + diff --git a/src/Acornima.Extras/Acornima.Extras.csproj b/src/Acornima.Extras/Acornima.Extras.csproj index df3abba..e25afca 100644 --- a/src/Acornima.Extras/Acornima.Extras.csproj +++ b/src/Acornima.Extras/Acornima.Extras.csproj @@ -12,11 +12,6 @@ javascript, ecmascript, parser - - - - - diff --git a/src/Acornima.SourceGenerators/Acornima.SourceGenerators.csproj b/src/Acornima.SourceGenerators/Acornima.SourceGenerators.csproj index 8e925ad..d2bf66b 100644 --- a/src/Acornima.SourceGenerators/Acornima.SourceGenerators.csproj +++ b/src/Acornima.SourceGenerators/Acornima.SourceGenerators.csproj @@ -9,9 +9,8 @@ - - - + + diff --git a/src/Acornima/Acornima.csproj b/src/Acornima/Acornima.csproj index 7376464..e91d3a9 100644 --- a/src/Acornima/Acornima.csproj +++ b/src/Acornima/Acornima.csproj @@ -12,16 +12,11 @@ - + - - - - - - + diff --git a/test/Acornima.Tests.SourceGenerators/Acornima.Tests.SourceGenerators.csproj b/test/Acornima.Tests.SourceGenerators/Acornima.Tests.SourceGenerators.csproj index a899e20..217ea76 100644 --- a/test/Acornima.Tests.SourceGenerators/Acornima.Tests.SourceGenerators.csproj +++ b/test/Acornima.Tests.SourceGenerators/Acornima.Tests.SourceGenerators.csproj @@ -5,14 +5,14 @@ - - - - - - - - + + + + + + + + diff --git a/test/Acornima.Tests.Test262/.config/dotnet-tools.json b/test/Acornima.Tests.Test262/.config/dotnet-tools.json index ff3edde..3bfb3de 100644 --- a/test/Acornima.Tests.Test262/.config/dotnet-tools.json +++ b/test/Acornima.Tests.Test262/.config/dotnet-tools.json @@ -3,7 +3,7 @@ "isRoot": true, "tools": { "test262harness.console": { - "version": "1.0.0", + "version": "1.0.1", "commands": [ "test262" ] diff --git a/test/Acornima.Tests.Test262/Acornima.Tests.Test262.csproj b/test/Acornima.Tests.Test262/Acornima.Tests.Test262.csproj index 6ca8fe3..d5977bf 100644 --- a/test/Acornima.Tests.Test262/Acornima.Tests.Test262.csproj +++ b/test/Acornima.Tests.Test262/Acornima.Tests.Test262.csproj @@ -7,12 +7,12 @@ - - - - - - + + + + + + diff --git a/test/Acornima.Tests/Acornima.Tests.csproj b/test/Acornima.Tests/Acornima.Tests.csproj index ab21f9c..439c890 100644 --- a/test/Acornima.Tests/Acornima.Tests.csproj +++ b/test/Acornima.Tests/Acornima.Tests.csproj @@ -2,7 +2,7 @@ net6.0;net8.0 - $(TargetFrameworks);net462 + $(TargetFrameworks);net472 true ..\..\src\Karambolo.Public.snk Fixtures.RegExp\Generator\**;$(DefaultItemExcludes) @@ -14,19 +14,15 @@ - - - - - - - - - - - - - + + + + + + + + +