From a4721e7a728bbd0e3a40c7423179445ee99afbf6 Mon Sep 17 00:00:00 2001 From: Patrik Svensson Date: Thu, 13 Nov 2025 23:16:51 +0100 Subject: [PATCH] Add Polyfill package --- src/Directory.Build.props | 22 +++++++++------- src/Directory.Packages.props | 2 +- .../Internal/Polyfill/IsExternalInit.cs | 12 --------- src/Spectre.Console/Spectre.Console.csproj | 25 +++++-------------- 4 files changed, 20 insertions(+), 41 deletions(-) delete mode 100644 src/Spectre.Console/Internal/Polyfill/IsExternalInit.cs diff --git a/src/Directory.Build.props b/src/Directory.Build.props index 3bf34842..0eecf4ad 100644 --- a/src/Directory.Build.props +++ b/src/Directory.Build.props @@ -4,6 +4,8 @@ 14 true embedded + true + true true true false @@ -14,7 +16,15 @@ 00240000048000009400000006020000002400005253413100040000010001006146d3789d31477cf4a3b508dcf772ff9ccad8613f6bd6b17b9c4a960a7a7b551ecd22e4f4119ced70ee8bbdf3ca0a117c99fd6248c16255ea9033110c2233d42e74e81bf4f3f7eb09bfe8b53ad399d957514f427171a86f5fe9fe0014be121d571c80c4a0cfc3531bdbf5a2900d936d93f2c94171b9134f7644a1ac3612a0d0 - + + + + + disable + $(NoWarn);CS8632 + + + true @@ -31,7 +41,7 @@ - + A library that makes it easier to create beautiful console applications. Patrik Svensson, Phil Scott, Nils Andresen, Cédric Luthi, Frank Ray Patrik Svensson, Phil Scott, Nils Andresen, Cédric Luthi, Frank Ray @@ -45,13 +55,7 @@ https://github.com/spectreconsole/spectre.console/releases - - true - true - - - - + diff --git a/src/Directory.Packages.props b/src/Directory.Packages.props index 2ba3a736..5065ef87 100644 --- a/src/Directory.Packages.props +++ b/src/Directory.Packages.props @@ -11,7 +11,7 @@ - + diff --git a/src/Spectre.Console/Internal/Polyfill/IsExternalInit.cs b/src/Spectre.Console/Internal/Polyfill/IsExternalInit.cs deleted file mode 100644 index 6fd1162c..00000000 --- a/src/Spectre.Console/Internal/Polyfill/IsExternalInit.cs +++ /dev/null @@ -1,12 +0,0 @@ -#if NETSTANDARD2_0 -namespace System.Runtime.CompilerServices; - -/// -/// Reserved to be used by the compiler for tracking metadata. -/// This class should not be used by developers in source code. -/// -[EditorBrowsable(EditorBrowsableState.Never)] -internal static class IsExternalInit -{ -} -#endif \ No newline at end of file diff --git a/src/Spectre.Console/Spectre.Console.csproj b/src/Spectre.Console/Spectre.Console.csproj index 5a9e1615..a01c2e0e 100644 --- a/src/Spectre.Console/Spectre.Console.csproj +++ b/src/Spectre.Console/Spectre.Console.csproj @@ -4,11 +4,9 @@ net10.0;net9.0;net8.0;netstandard2.0 true $(DefineConstants)TRACE;WCWIDTH_VISIBILITY_INTERNAL - - true - true + @@ -18,24 +16,13 @@ - - + + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive - - all - runtime; build; native; contentfiles; analyzers - - - - - 3.0.0 - - - - - -