From 8236e9d96adae93bf78e4698d78c670f54633700 Mon Sep 17 00:00:00 2001 From: RobIII Date: Tue, 15 Nov 2022 16:46:31 +0100 Subject: [PATCH] Use IsExternalInit package instead of internals.cs. Use latest .Net analyzers. --- IdGen.Configuration/IdGen.Configuration.csproj | 9 ++------- .../IdGen.DependencyInjection.csproj | 6 ++---- IdGen/IdGen.csproj | 8 +++++--- IdGen/Internals.cs | 17 ----------------- 4 files changed, 9 insertions(+), 31 deletions(-) delete mode 100644 IdGen/Internals.cs diff --git a/IdGen.Configuration/IdGen.Configuration.csproj b/IdGen.Configuration/IdGen.Configuration.csproj index c301e9c..9219d4a 100644 --- a/IdGen.Configuration/IdGen.Configuration.csproj +++ b/IdGen.Configuration/IdGen.Configuration.csproj @@ -21,6 +21,8 @@ https://github.com/RobThree/IdGen git + true + latest Debug;Release;ReleaseWithDocumentation @@ -39,13 +41,6 @@ - - - all - runtime; build; native; contentfiles; analyzers; buildtransitive - - - diff --git a/IdGen.DependencyInjection/IdGen.DependencyInjection.csproj b/IdGen.DependencyInjection/IdGen.DependencyInjection.csproj index 7b2d9c0..bb26bc4 100644 --- a/IdGen.DependencyInjection/IdGen.DependencyInjection.csproj +++ b/IdGen.DependencyInjection/IdGen.DependencyInjection.csproj @@ -21,6 +21,8 @@ git enable latest + true + latest Debug;Release;ReleaseWithDocumentation @@ -39,10 +41,6 @@ - - all - runtime; build; native; contentfiles; analyzers; buildtransitive - diff --git a/IdGen/IdGen.csproj b/IdGen/IdGen.csproj index 1f25d96..3573672 100644 --- a/IdGen/IdGen.csproj +++ b/IdGen/IdGen.csproj @@ -20,6 +20,8 @@ https://github.com/RobThree/IdGen git enable + true + latest latest Debug;Release;ReleaseWithDocumentation @@ -40,9 +42,9 @@ - - all - runtime; build; native; contentfiles; analyzers; buildtransitive + + all + runtime; build; native; contentfiles; analyzers; buildtransitive \ No newline at end of file diff --git a/IdGen/Internals.cs b/IdGen/Internals.cs deleted file mode 100644 index 82c10a7..0000000 --- a/IdGen/Internals.cs +++ /dev/null @@ -1,17 +0,0 @@ -#if !NET5_0_OR_GREATER - -// Enables "init" properties in non-.Net 5.0 projects - -using System.ComponentModel; - -// ReSharper disable once CheckNamespace -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