diff --git a/2_Libs/Libraries/CreateNuGet/ConsoleApp/ConsoleApp.csproj b/2_Libs/Libraries/CreateNuGet/ConsoleApp/ConsoleApp.csproj
index db6c5d18..ceb4b230 100644
--- a/2_Libs/Libraries/CreateNuGet/ConsoleApp/ConsoleApp.csproj
+++ b/2_Libs/Libraries/CreateNuGet/ConsoleApp/ConsoleApp.csproj
@@ -2,10 +2,10 @@
Exe
- net6.0;net5.0;netcoreapp3.1
+ net7.0;net6.0;netcoreapp3.1
enable
enable
- 10.0
+ 11.0
diff --git a/2_Libs/Libraries/CreateNuGet/SampleLib/Demo.cs b/2_Libs/Libraries/CreateNuGet/SampleLib/Demo.cs
index 04086d63..5b3966b3 100644
--- a/2_Libs/Libraries/CreateNuGet/SampleLib/Demo.cs
+++ b/2_Libs/Libraries/CreateNuGet/SampleLib/Demo.cs
@@ -6,13 +6,13 @@ namespace SampleLib;
public class Demo
{
#if NETSTANDARD20
- private static string s_info = ".NET Standard 2.0";
-#elif NET5_0
- private static string s_info = ".NET 5.0";
+ private readonly static string s_info = ".NET Standard 2.0";
#elif NET6_0
- private static string s_info = ".NET 6.0";
+ private readonly static string s_info = ".NET 6.0";
+#elif NET7_0
+ private readonly static string s_info = ".NET 7.0";
#else
- private static string s_info = "Unknown";
+ private readonly static string s_info = "Unknown";
#endif
public static string Show() => s_info;
diff --git a/2_Libs/Libraries/CreateNuGet/SampleLib/SampleLib.csproj b/2_Libs/Libraries/CreateNuGet/SampleLib/SampleLib.csproj
index 7c0cb4a8..f6b3de59 100644
--- a/2_Libs/Libraries/CreateNuGet/SampleLib/SampleLib.csproj
+++ b/2_Libs/Libraries/CreateNuGet/SampleLib/SampleLib.csproj
@@ -1,10 +1,10 @@
- net6.0;net5.0;netstandard2.0
+ net7.0;net6.0;netstandard2.0
enable
enable
- 10.0
+ 11.0
@@ -18,9 +18,9 @@
Git
CSharp; .NET Core; NuGet
Sample for Professional C# and .NET - 2021 Edition
- 6.0.1
- 6.0.1.0
- 6.0
+ 7.0.1
+ 7.0.1.0
+ 7.0