From d91f89a9ce2785861756feaf1b0982553253f065 Mon Sep 17 00:00:00 2001 From: bicijinlian Date: Mon, 5 May 2025 11:31:30 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0VS=E9=A1=B9=E7=9B=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- NotebookStudy.Core/NotebookStudy.Core.csproj | 9 +++++++++ NotebookStudy.Core/Student.cs | 12 ++++++++++++ NotebookStudy.Test/NotebookStudy.Test.csproj | 4 ++++ NotebookStudy.sln | 6 ++++++ 4 files changed, 31 insertions(+) create mode 100644 NotebookStudy.Core/NotebookStudy.Core.csproj create mode 100644 NotebookStudy.Core/Student.cs diff --git a/NotebookStudy.Core/NotebookStudy.Core.csproj b/NotebookStudy.Core/NotebookStudy.Core.csproj new file mode 100644 index 0000000..cfadb03 --- /dev/null +++ b/NotebookStudy.Core/NotebookStudy.Core.csproj @@ -0,0 +1,9 @@ + + + + net7.0 + enable + enable + + + diff --git a/NotebookStudy.Core/Student.cs b/NotebookStudy.Core/Student.cs new file mode 100644 index 0000000..6df437e --- /dev/null +++ b/NotebookStudy.Core/Student.cs @@ -0,0 +1,12 @@ +namespace NotebookStudy.Core +{ + public class Student + { + public int Id { get; set; } + + public string Name { get; set; } + + public int Age { get; set; } + + } +} diff --git a/NotebookStudy.Test/NotebookStudy.Test.csproj b/NotebookStudy.Test/NotebookStudy.Test.csproj index d7ced07..398b286 100644 --- a/NotebookStudy.Test/NotebookStudy.Test.csproj +++ b/NotebookStudy.Test/NotebookStudy.Test.csproj @@ -22,4 +22,8 @@ + + + + diff --git a/NotebookStudy.sln b/NotebookStudy.sln index 6484de3..e5ee71f 100644 --- a/NotebookStudy.sln +++ b/NotebookStudy.sln @@ -7,6 +7,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NotebookStudy.ConsoleApp", EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NotebookStudy.Test", "NotebookStudy.Test\NotebookStudy.Test.csproj", "{F3F0CB92-A689-4272-A546-2A70560019B8}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NotebookStudy.Core", "NotebookStudy.Core\NotebookStudy.Core.csproj", "{1A5C3097-E0F5-4710-8AF2-82832D9FFEBB}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -21,6 +23,10 @@ Global {F3F0CB92-A689-4272-A546-2A70560019B8}.Debug|Any CPU.Build.0 = Debug|Any CPU {F3F0CB92-A689-4272-A546-2A70560019B8}.Release|Any CPU.ActiveCfg = Release|Any CPU {F3F0CB92-A689-4272-A546-2A70560019B8}.Release|Any CPU.Build.0 = Release|Any CPU + {1A5C3097-E0F5-4710-8AF2-82832D9FFEBB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {1A5C3097-E0F5-4710-8AF2-82832D9FFEBB}.Debug|Any CPU.Build.0 = Debug|Any CPU + {1A5C3097-E0F5-4710-8AF2-82832D9FFEBB}.Release|Any CPU.ActiveCfg = Release|Any CPU + {1A5C3097-E0F5-4710-8AF2-82832D9FFEBB}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE