diff --git a/.vs/Homework/CopilotIndices/17.14.1091.29919/CodeChunks.db b/.vs/Homework/CopilotIndices/17.14.1091.29919/CodeChunks.db new file mode 100644 index 0000000..1354b26 Binary files /dev/null and b/.vs/Homework/CopilotIndices/17.14.1091.29919/CodeChunks.db differ diff --git a/.vs/Homework/CopilotIndices/17.14.1091.29919/CodeChunks.db-shm b/.vs/Homework/CopilotIndices/17.14.1091.29919/CodeChunks.db-shm new file mode 100644 index 0000000..d76f3b4 Binary files /dev/null and b/.vs/Homework/CopilotIndices/17.14.1091.29919/CodeChunks.db-shm differ diff --git a/.vs/Homework/CopilotIndices/17.14.1091.29919/CodeChunks.db-wal b/.vs/Homework/CopilotIndices/17.14.1091.29919/CodeChunks.db-wal new file mode 100644 index 0000000..e99dfe7 Binary files /dev/null and b/.vs/Homework/CopilotIndices/17.14.1091.29919/CodeChunks.db-wal differ diff --git a/.vs/Homework/CopilotIndices/17.14.1091.29919/SemanticSymbols.db b/.vs/Homework/CopilotIndices/17.14.1091.29919/SemanticSymbols.db new file mode 100644 index 0000000..4f21552 Binary files /dev/null and b/.vs/Homework/CopilotIndices/17.14.1091.29919/SemanticSymbols.db differ diff --git a/.vs/Homework/CopilotIndices/17.14.1091.29919/SemanticSymbols.db-shm b/.vs/Homework/CopilotIndices/17.14.1091.29919/SemanticSymbols.db-shm new file mode 100644 index 0000000..a8afe91 Binary files /dev/null and b/.vs/Homework/CopilotIndices/17.14.1091.29919/SemanticSymbols.db-shm differ diff --git a/.vs/Homework/CopilotIndices/17.14.1091.29919/SemanticSymbols.db-wal b/.vs/Homework/CopilotIndices/17.14.1091.29919/SemanticSymbols.db-wal new file mode 100644 index 0000000..3f32084 Binary files /dev/null and b/.vs/Homework/CopilotIndices/17.14.1091.29919/SemanticSymbols.db-wal differ diff --git a/.vs/Homework/DesignTimeBuild/.dtbcache.v2 b/.vs/Homework/DesignTimeBuild/.dtbcache.v2 new file mode 100644 index 0000000..ae6683e Binary files /dev/null and b/.vs/Homework/DesignTimeBuild/.dtbcache.v2 differ diff --git a/.vs/Homework/FileContentIndex/3b96c013-c518-46e1-8794-f4b52f5660bd.vsidx b/.vs/Homework/FileContentIndex/3b96c013-c518-46e1-8794-f4b52f5660bd.vsidx new file mode 100644 index 0000000..627b939 Binary files /dev/null and b/.vs/Homework/FileContentIndex/3b96c013-c518-46e1-8794-f4b52f5660bd.vsidx differ diff --git a/.vs/Homework/copilot-chat/5a63af58/sessions/52e9ba4c-c545-4c39-a15c-dfd9d106aee1 b/.vs/Homework/copilot-chat/5a63af58/sessions/52e9ba4c-c545-4c39-a15c-dfd9d106aee1 new file mode 100644 index 0000000..ce4ed78 Binary files /dev/null and b/.vs/Homework/copilot-chat/5a63af58/sessions/52e9ba4c-c545-4c39-a15c-dfd9d106aee1 differ diff --git a/.vs/Homework/v17/.futdcache.v2 b/.vs/Homework/v17/.futdcache.v2 new file mode 100644 index 0000000..6548ecd Binary files /dev/null and b/.vs/Homework/v17/.futdcache.v2 differ diff --git a/.vs/Homework/v17/.suo b/.vs/Homework/v17/.suo new file mode 100644 index 0000000..51392e7 Binary files /dev/null and b/.vs/Homework/v17/.suo differ diff --git a/.vs/Homework/v17/DocumentLayout.backup.json b/.vs/Homework/v17/DocumentLayout.backup.json new file mode 100644 index 0000000..780207a --- /dev/null +++ b/.vs/Homework/v17/DocumentLayout.backup.json @@ -0,0 +1,49 @@ +{ + "Version": 1, + "WorkspaceRootPath": "E:\\\u8BFE\u5916\u5B66\u4E60\\\u6691\u57F9\\3 C#\\CSharpHomework2025\\", + "Documents": [ + { + "AbsoluteMoniker": "D:0:0:{FCF2C4E1-EB48-4D53-A8D7-EF81464309F4}|Homework\\Homework.csproj|e:\\\u8BFE\u5916\u5B66\u4E60\\\u6691\u57F9\\3 c#\\csharphomework2025\\homework\\program.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", + "RelativeMoniker": "D:0:0:{FCF2C4E1-EB48-4D53-A8D7-EF81464309F4}|Homework\\Homework.csproj|solutionrelative:homework\\program.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}" + } + ], + "DocumentGroupContainers": [ + { + "Orientation": 0, + "VerticalTabListWidth": 256, + "DocumentGroups": [ + { + "DockedWidth": 200, + "SelectedChildIndex": 3, + "Children": [ + { + "$type": "Bookmark", + "Name": "ST:0:0:{3ae79031-e1bc-11d0-8f78-00a0c9110057}" + }, + { + "$type": "Bookmark", + "Name": "ST:0:0:{d78612c7-9962-4b83-95d9-268046dad23a}" + }, + { + "$type": "Bookmark", + "Name": "ST:0:0:{34e76e81-ee4a-11d0-ae2e-00a0c90fffc3}" + }, + { + "$type": "Document", + "DocumentIndex": 0, + "Title": "Program.cs", + "DocumentMoniker": "E:\\\u8BFE\u5916\u5B66\u4E60\\\u6691\u57F9\\3 C#\\CSharpHomework2025\\Homework\\Program.cs", + "RelativeDocumentMoniker": "Homework\\Program.cs", + "ToolTip": "E:\\\u8BFE\u5916\u5B66\u4E60\\\u6691\u57F9\\3 C#\\CSharpHomework2025\\Homework\\Program.cs", + "RelativeToolTip": "Homework\\Program.cs", + "ViewState": "AgIAAMwAAAAAAAAAAIA6wOMAAABEAAAAAAAAAA==", + "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", + "WhenOpened": "2025-08-22T15:07:23.528Z", + "EditorCaption": "" + } + ] + } + ] + } + ] +} \ No newline at end of file diff --git a/.vs/Homework/v17/DocumentLayout.json b/.vs/Homework/v17/DocumentLayout.json new file mode 100644 index 0000000..780207a --- /dev/null +++ b/.vs/Homework/v17/DocumentLayout.json @@ -0,0 +1,49 @@ +{ + "Version": 1, + "WorkspaceRootPath": "E:\\\u8BFE\u5916\u5B66\u4E60\\\u6691\u57F9\\3 C#\\CSharpHomework2025\\", + "Documents": [ + { + "AbsoluteMoniker": "D:0:0:{FCF2C4E1-EB48-4D53-A8D7-EF81464309F4}|Homework\\Homework.csproj|e:\\\u8BFE\u5916\u5B66\u4E60\\\u6691\u57F9\\3 c#\\csharphomework2025\\homework\\program.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", + "RelativeMoniker": "D:0:0:{FCF2C4E1-EB48-4D53-A8D7-EF81464309F4}|Homework\\Homework.csproj|solutionrelative:homework\\program.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}" + } + ], + "DocumentGroupContainers": [ + { + "Orientation": 0, + "VerticalTabListWidth": 256, + "DocumentGroups": [ + { + "DockedWidth": 200, + "SelectedChildIndex": 3, + "Children": [ + { + "$type": "Bookmark", + "Name": "ST:0:0:{3ae79031-e1bc-11d0-8f78-00a0c9110057}" + }, + { + "$type": "Bookmark", + "Name": "ST:0:0:{d78612c7-9962-4b83-95d9-268046dad23a}" + }, + { + "$type": "Bookmark", + "Name": "ST:0:0:{34e76e81-ee4a-11d0-ae2e-00a0c90fffc3}" + }, + { + "$type": "Document", + "DocumentIndex": 0, + "Title": "Program.cs", + "DocumentMoniker": "E:\\\u8BFE\u5916\u5B66\u4E60\\\u6691\u57F9\\3 C#\\CSharpHomework2025\\Homework\\Program.cs", + "RelativeDocumentMoniker": "Homework\\Program.cs", + "ToolTip": "E:\\\u8BFE\u5916\u5B66\u4E60\\\u6691\u57F9\\3 C#\\CSharpHomework2025\\Homework\\Program.cs", + "RelativeToolTip": "Homework\\Program.cs", + "ViewState": "AgIAAMwAAAAAAAAAAIA6wOMAAABEAAAAAAAAAA==", + "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", + "WhenOpened": "2025-08-22T15:07:23.528Z", + "EditorCaption": "" + } + ] + } + ] + } + ] +} \ No newline at end of file diff --git a/.vs/ProjectEvaluation/homework.metadata.v9.bin b/.vs/ProjectEvaluation/homework.metadata.v9.bin new file mode 100644 index 0000000..9336687 Binary files /dev/null and b/.vs/ProjectEvaluation/homework.metadata.v9.bin differ diff --git a/.vs/ProjectEvaluation/homework.projects.v9.bin b/.vs/ProjectEvaluation/homework.projects.v9.bin new file mode 100644 index 0000000..3c321e5 Binary files /dev/null and b/.vs/ProjectEvaluation/homework.projects.v9.bin differ diff --git a/.vs/ProjectEvaluation/homework.strings.v9.bin b/.vs/ProjectEvaluation/homework.strings.v9.bin new file mode 100644 index 0000000..0f59955 Binary files /dev/null and b/.vs/ProjectEvaluation/homework.strings.v9.bin differ diff --git a/Homework/Program.cs b/Homework/Program.cs index b728a41..0185ea7 100644 --- a/Homework/Program.cs +++ b/Homework/Program.cs @@ -9,43 +9,58 @@ namespace StudentManagementSystem public enum Grade { // TODO: 定义成绩等级 F(0), D(60), C(70), B(80), A(90) - + F = 0, + D = 60, + C = 70, + B = 80, + A = 90 } // 泛型仓储接口 public interface IRepository { // TODO: 定义接口方法 - // Add(T item) - // Remove(T item) 返回bool - // GetAll() 返回List - // Find(Func predicate) 返回List - + void Add(T item); // 添加一个实体 + bool Remove(T item); // 移除一个实体,返回是否成功 + List GetAll(); // 获取所有实体 + List Find(Func predicate); // 根据条件查找实体 } // 学生类 public class Student : IComparable { // TODO: 定义字段 StudentId, Name, Age - - + public string StudentId { get; } + public string Name { get; } + public int Age { get; } + public Student(string studentId, string name, int age) { // TODO: 实现构造方法,包含参数验证(空值检查) - + if (string.IsNullOrEmpty(studentId)) + throw new ArgumentException("学号不能为空", nameof(studentId)); + if (string.IsNullOrEmpty(name)) + throw new ArgumentException("姓名不能为空", nameof(name)); + if (age <= 0) + throw new ArgumentException("年龄必须大于0", nameof(age)); + + StudentId = studentId; + Name = name; + Age = age; } public override string ToString() { // TODO: 返回格式化的学生信息字符串 - + return $"学号: {StudentId}, 姓名: {Name}, 年龄: {Age}"; } // TODO: 实现IComparable接口,按学号排序 // 提示:使用string.Compare方法 public int CompareTo(Student? other) { - + if (other == null) return 1; + return string.Compare(StudentId, other.StudentId, StringComparison.Ordinal); } public override bool Equals(object? obj) @@ -63,18 +78,25 @@ public override int GetHashCode() public class Score { // TODO: 定义字段 Subject, Points - - + public string Subject { get; } + public double Points { get; } + public Score(string subject, double points) { // TODO: 实现构造方法,包含参数验证 - + if (string.IsNullOrEmpty(subject)) + throw new ArgumentException("科目不能为空", nameof(subject)); + if (points < 0 || points > 100) + throw new ArgumentException("分数必须在0-100之间", nameof(points)); + + Subject = subject; + Points = points; } public override string ToString() { // TODO: 返回格式化的成绩信息 - + return $"{Subject}: {Points}分"; } } @@ -83,39 +105,56 @@ public class StudentManager : IRepository { // TODO: 定义私有字段存储学生列表 // 提示:使用List存储 - + private readonly List _students = new List(); public void Add(Student item) { // TODO: 实现添加学生的逻辑 // 1. 参数验证 + if (item == null) + throw new ArgumentNullException(nameof(item)); + if (_students.Any(s => s.StudentId == item.StudentId)) + throw new ArgumentException($"学号为 {item.StudentId} 的学生已存在"); // 2. 添加到列表 - + _students.Add(item); } public bool Remove(Student item) { // TODO: 实现Remove方法 - + if (item == null) return false; + return _students.Remove(item); } public List GetAll() { // TODO: 返回学生列表的副本 - + return new List(_students); } public List Find(Func predicate) { // TODO: 使用foreach循环查找符合条件的学生 - + var result = new List(); + foreach (var student in _students) + { + if (predicate(student)) + result.Add(student); + } + return result; } // 查找年龄在指定范围内的学生 public List GetStudentsByAge(int minAge, int maxAge) { // TODO: 使用foreach循环和if判断实现年龄范围查询 - + var result = new List(); + foreach (var student in _students) + { + if (student.Age >= minAge && student.Age <= maxAge) + result.Add(student); + } + return result; } } @@ -124,46 +163,77 @@ public class ScoreManager { // TODO: 定义私有字段存储成绩字典 // 提示:使用Dictionary>存储 - + private readonly Dictionary> _scores = new Dictionary>(); public void AddScore(string studentId, Score score) { // TODO: 实现添加成绩的逻辑 - // 1. 参数验证 + if (string.IsNullOrEmpty(studentId)) + throw new ArgumentException("学号不能为空", nameof(studentId)); + if (score == null) + throw new ArgumentNullException(nameof(score)); // 2. 初始化学生成绩列表(如不存在) + if (!_scores.ContainsKey(studentId)) + _scores[studentId] = new List(); // 3. 添加成绩 - + _scores[studentId].Add(score); } public List GetStudentScores(string studentId) { // TODO: 获取指定学生的所有成绩 - + if (_scores.TryGetValue(studentId, out var scores)) + return new List(scores); + return new List(); } public double CalculateAverage(string studentId) { // TODO: 计算指定学生的平均分 // 提示:使用foreach循环计算总分,然后除以科目数 - + if (!_scores.TryGetValue(studentId, out var scores) || scores.Count == 0) + return 0; + double sum = 0; + foreach (var score in scores) + { + sum += score.Points; + } + return sum / scores.Count; } // TODO: 使用模式匹配实现成绩等级转换 public Grade GetGrade(double score) { - + return score switch + { + >= 90 => Grade.A, + >= 80 => Grade.B, + >= 70 => Grade.C, + >= 60 => Grade.D, + _ => Grade.F + }; } public List<(string StudentId, double Average)> GetTopStudents(int count) { // TODO: 使用简单循环获取平均分最高的学生 // 提示:可以先计算所有学生的平均分,然后排序取前count个 - + var averages = new List<(string, double)>(); + foreach (var studentId in _scores.Keys) + { + double average = CalculateAverage(studentId); + averages.Add((studentId, average)); + } + // 排序并取前count个 + //averages.Sort((x, y) => y.Average.CompareTo(x.Average)); + // 替换原有排序代码 + averages.Sort((x, y) => y.Item2.CompareTo(x.Item2)); + return averages.Take(count).ToList(); } public Dictionary> GetAllScores() { - return new Dictionary>(scores); + return new Dictionary>(_scores); } } @@ -177,7 +247,12 @@ public void SaveStudentsToFile(List students, string filePath) try { // 在这里实现文件写入逻辑 - + using var writer = new StreamWriter(filePath); + foreach (var student in students) + { + writer.WriteLine($"{student.StudentId},{student.Name},{student.Age}"); + } + Console.WriteLine($"学生数据已保存到: {filePath}"); } catch (Exception ex) { @@ -194,7 +269,23 @@ public List LoadStudentsFromFile(string filePath) try { // 在这里实现文件读取逻辑 - + if (!File.Exists(filePath)) + { + Console.WriteLine($"文件不存在: {filePath}"); + return students; + } + using var reader = new StreamReader(filePath); + string line; + while ((line = reader.ReadLine()) != null) + { + var parts = line.Split(','); + if (parts.Length == 3 && + int.TryParse(parts[2], out int age)) + { + students.Add(new Student(parts[0], parts[1], age)); + } + } + Console.WriteLine($"从文件加载了 {students.Count} 名学生数据"); } catch (Exception ex) { @@ -241,22 +332,56 @@ static void Main(string[] args) // 3. 测试年龄范围查询 Console.WriteLine("\n3. 查找年龄在19-20岁的学生:"); // TODO: 调用GetStudentsByAge方法并显示结果 - + var ageFiltered = studentManager.GetStudentsByAge(19, 20); + foreach (var student in ageFiltered) + { + Console.WriteLine(student); + } // 4. 显示学生成绩统计 Console.WriteLine("\n4. 学生成绩统计:"); // TODO: 遍历所有学生,显示其成绩、平均分和等级 - + foreach (var student in studentManager.GetAll()) + { + var scores = scoreManager.GetStudentScores(student.StudentId); + double average = scoreManager.CalculateAverage(student.StudentId); + Grade grade = scoreManager.GetGrade(average); + + Console.WriteLine($"\n{student}"); + Console.WriteLine($"成绩: {string.Join(", ", scores)}"); + Console.WriteLine($"平均分: {average:F2}, 等级: {grade}"); + } // 5. 显示排名(简化版) Console.WriteLine("\n5. 平均分最高的学生:"); // TODO: 调用GetTopStudents(1)方法显示第一名 - + var topStudents = scoreManager.GetTopStudents(1); + if (topStudents.Count > 0) + { + var top = topStudents[0]; + var topStudent = studentManager.Find(s => s.StudentId == top.StudentId).FirstOrDefault(); + Console.WriteLine($"第一名: {topStudent?.Name},平均分: {top.Average:F2}"); + } // 6. 文件操作 Console.WriteLine("\n6. 数据持久化演示:"); // TODO: 保存和读取学生文件 - + string filePath = "students.csv"; + dataManager.SaveStudentsToFile(studentManager.GetAll(), filePath); + // 清空当前学生数据,演示从文件加载 + var currentStudents = studentManager.GetAll(); + foreach (var student in currentStudents) + { + studentManager.Remove(student); + } + Console.WriteLine($"当前学生数: {studentManager.GetAll().Count}"); + // 从文件加载 + var loadedStudents = dataManager.LoadStudentsFromFile(filePath); + foreach (var student in loadedStudents) + { + studentManager.Add(student); + } + Console.WriteLine($"加载后学生数: {studentManager.GetAll().Count}"); } catch (Exception ex) diff --git a/Homework/bin/Debug/net9.0/Homework.deps.json b/Homework/bin/Debug/net9.0/Homework.deps.json new file mode 100644 index 0000000..d987294 --- /dev/null +++ b/Homework/bin/Debug/net9.0/Homework.deps.json @@ -0,0 +1,23 @@ +{ + "runtimeTarget": { + "name": ".NETCoreApp,Version=v9.0", + "signature": "" + }, + "compilationOptions": {}, + "targets": { + ".NETCoreApp,Version=v9.0": { + "Homework/1.0.0": { + "runtime": { + "Homework.dll": {} + } + } + } + }, + "libraries": { + "Homework/1.0.0": { + "type": "project", + "serviceable": false, + "sha512": "" + } + } +} \ No newline at end of file diff --git a/Homework/bin/Debug/net9.0/Homework.dll b/Homework/bin/Debug/net9.0/Homework.dll new file mode 100644 index 0000000..c1504cd Binary files /dev/null and b/Homework/bin/Debug/net9.0/Homework.dll differ diff --git a/Homework/bin/Debug/net9.0/Homework.exe b/Homework/bin/Debug/net9.0/Homework.exe new file mode 100644 index 0000000..951eaed Binary files /dev/null and b/Homework/bin/Debug/net9.0/Homework.exe differ diff --git a/Homework/bin/Debug/net9.0/Homework.pdb b/Homework/bin/Debug/net9.0/Homework.pdb new file mode 100644 index 0000000..e939d66 Binary files /dev/null and b/Homework/bin/Debug/net9.0/Homework.pdb differ diff --git a/Homework/bin/Debug/net9.0/Homework.runtimeconfig.json b/Homework/bin/Debug/net9.0/Homework.runtimeconfig.json new file mode 100644 index 0000000..b19c3c8 --- /dev/null +++ b/Homework/bin/Debug/net9.0/Homework.runtimeconfig.json @@ -0,0 +1,12 @@ +{ + "runtimeOptions": { + "tfm": "net9.0", + "framework": { + "name": "Microsoft.NETCore.App", + "version": "9.0.0" + }, + "configProperties": { + "System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false + } + } +} \ No newline at end of file diff --git a/Homework/bin/Debug/net9.0/students.csv b/Homework/bin/Debug/net9.0/students.csv new file mode 100644 index 0000000..5b002a0 --- /dev/null +++ b/Homework/bin/Debug/net9.0/students.csv @@ -0,0 +1,3 @@ +2021001,张三,20 +2021002,李四,19 +2021003,王五,21 diff --git a/Homework/obj/Debug/net9.0/Homework.AssemblyInfo.cs b/Homework/obj/Debug/net9.0/Homework.AssemblyInfo.cs index aa6f005..66ff9f3 100644 --- a/Homework/obj/Debug/net9.0/Homework.AssemblyInfo.cs +++ b/Homework/obj/Debug/net9.0/Homework.AssemblyInfo.cs @@ -1,9 +1,10 @@ //------------------------------------------------------------------------------ // -// This code was generated by a tool. +// 此代码由工具生成。 +// 运行时版本:4.0.30319.42000 // -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// 对此文件的更改可能会导致不正确的行为,并且如果 +// 重新生成代码,这些更改将会丢失。 // //------------------------------------------------------------------------------ @@ -13,7 +14,7 @@ [assembly: System.Reflection.AssemblyCompanyAttribute("Homework")] [assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] [assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] -[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")] +[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+3439ef5fa11ea974a437d4e71f6d7e82763f847e")] [assembly: System.Reflection.AssemblyProductAttribute("Homework")] [assembly: System.Reflection.AssemblyTitleAttribute("Homework")] [assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] diff --git a/Homework/obj/Debug/net9.0/Homework.AssemblyInfoInputs.cache b/Homework/obj/Debug/net9.0/Homework.AssemblyInfoInputs.cache index 497cd46..c57f646 100644 --- a/Homework/obj/Debug/net9.0/Homework.AssemblyInfoInputs.cache +++ b/Homework/obj/Debug/net9.0/Homework.AssemblyInfoInputs.cache @@ -1 +1 @@ -92fcf719969c7f59361926c468f07a76ab2866f8147167aa553b98c3b9d7ed15 +3e80dbcd1ff00cdcba3863df6d82f161321270261e04e5ccbff3d91e740385e0 diff --git a/Homework/obj/Debug/net9.0/Homework.GeneratedMSBuildEditorConfig.editorconfig b/Homework/obj/Debug/net9.0/Homework.GeneratedMSBuildEditorConfig.editorconfig index 5bddca1..e073c1e 100644 --- a/Homework/obj/Debug/net9.0/Homework.GeneratedMSBuildEditorConfig.editorconfig +++ b/Homework/obj/Debug/net9.0/Homework.GeneratedMSBuildEditorConfig.editorconfig @@ -8,7 +8,7 @@ build_property.PlatformNeutralAssembly = build_property.EnforceExtendedAnalyzerRules = build_property._SupportedPlatformList = Linux,macOS,Windows build_property.RootNamespace = Homework -build_property.ProjectDir = C:\Users\ms169\Desktop\Homework\Homework\ +build_property.ProjectDir = E:\课外学习\暑培\3 C#\CSharpHomework2025\Homework\ build_property.EnableComHosting = build_property.EnableGeneratedComInterfaceComImportInterop = build_property.EffectiveAnalysisLevelStyle = 9.0 diff --git a/Homework/obj/Debug/net9.0/Homework.assets.cache b/Homework/obj/Debug/net9.0/Homework.assets.cache index e69f95a..8632cd3 100644 Binary files a/Homework/obj/Debug/net9.0/Homework.assets.cache and b/Homework/obj/Debug/net9.0/Homework.assets.cache differ diff --git a/Homework/obj/Debug/net9.0/Homework.csproj.BuildWithSkipAnalyzers b/Homework/obj/Debug/net9.0/Homework.csproj.BuildWithSkipAnalyzers new file mode 100644 index 0000000..e69de29 diff --git a/Homework/obj/Debug/net9.0/Homework.csproj.CoreCompileInputs.cache b/Homework/obj/Debug/net9.0/Homework.csproj.CoreCompileInputs.cache new file mode 100644 index 0000000..008f7e3 --- /dev/null +++ b/Homework/obj/Debug/net9.0/Homework.csproj.CoreCompileInputs.cache @@ -0,0 +1 @@ +be24a02d7365840829a2f50a05351fb73f9a8c0357b181006a71866d25b3bb5a diff --git a/Homework/obj/Debug/net9.0/Homework.csproj.FileListAbsolute.txt b/Homework/obj/Debug/net9.0/Homework.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..884b3a6 --- /dev/null +++ b/Homework/obj/Debug/net9.0/Homework.csproj.FileListAbsolute.txt @@ -0,0 +1,15 @@ +E:\课外学习\暑培\3 C#\CSharpHomework2025\Homework\bin\Debug\net9.0\Homework.exe +E:\课外学习\暑培\3 C#\CSharpHomework2025\Homework\bin\Debug\net9.0\Homework.deps.json +E:\课外学习\暑培\3 C#\CSharpHomework2025\Homework\bin\Debug\net9.0\Homework.runtimeconfig.json +E:\课外学习\暑培\3 C#\CSharpHomework2025\Homework\bin\Debug\net9.0\Homework.dll +E:\课外学习\暑培\3 C#\CSharpHomework2025\Homework\bin\Debug\net9.0\Homework.pdb +E:\课外学习\暑培\3 C#\CSharpHomework2025\Homework\obj\Debug\net9.0\Homework.GeneratedMSBuildEditorConfig.editorconfig +E:\课外学习\暑培\3 C#\CSharpHomework2025\Homework\obj\Debug\net9.0\Homework.AssemblyInfoInputs.cache +E:\课外学习\暑培\3 C#\CSharpHomework2025\Homework\obj\Debug\net9.0\Homework.AssemblyInfo.cs +E:\课外学习\暑培\3 C#\CSharpHomework2025\Homework\obj\Debug\net9.0\Homework.csproj.CoreCompileInputs.cache +E:\课外学习\暑培\3 C#\CSharpHomework2025\Homework\obj\Debug\net9.0\Homework.sourcelink.json +E:\课外学习\暑培\3 C#\CSharpHomework2025\Homework\obj\Debug\net9.0\Homework.dll +E:\课外学习\暑培\3 C#\CSharpHomework2025\Homework\obj\Debug\net9.0\refint\Homework.dll +E:\课外学习\暑培\3 C#\CSharpHomework2025\Homework\obj\Debug\net9.0\Homework.pdb +E:\课外学习\暑培\3 C#\CSharpHomework2025\Homework\obj\Debug\net9.0\Homework.genruntimeconfig.cache +E:\课外学习\暑培\3 C#\CSharpHomework2025\Homework\obj\Debug\net9.0\ref\Homework.dll diff --git a/Homework/obj/Debug/net9.0/Homework.dll b/Homework/obj/Debug/net9.0/Homework.dll new file mode 100644 index 0000000..c1504cd Binary files /dev/null and b/Homework/obj/Debug/net9.0/Homework.dll differ diff --git a/Homework/obj/Debug/net9.0/Homework.genruntimeconfig.cache b/Homework/obj/Debug/net9.0/Homework.genruntimeconfig.cache new file mode 100644 index 0000000..c3dc768 --- /dev/null +++ b/Homework/obj/Debug/net9.0/Homework.genruntimeconfig.cache @@ -0,0 +1 @@ +fb74d316371e0cf377daac05df175bb3df1374821ecef46112df0f373c830062 diff --git a/Homework/obj/Debug/net9.0/Homework.pdb b/Homework/obj/Debug/net9.0/Homework.pdb new file mode 100644 index 0000000..e939d66 Binary files /dev/null and b/Homework/obj/Debug/net9.0/Homework.pdb differ diff --git a/Homework/obj/Debug/net9.0/Homework.sourcelink.json b/Homework/obj/Debug/net9.0/Homework.sourcelink.json new file mode 100644 index 0000000..7c615e8 --- /dev/null +++ b/Homework/obj/Debug/net9.0/Homework.sourcelink.json @@ -0,0 +1 @@ +{"documents":{"E:\\课外学习\\暑培\\3 C#\\CSharpHomework2025\\*":"https://raw.githubusercontent.com/HPZ07-end/CSharpHomework2025/3439ef5fa11ea974a437d4e71f6d7e82763f847e/*"}} \ No newline at end of file diff --git a/Homework/obj/Debug/net9.0/apphost.exe b/Homework/obj/Debug/net9.0/apphost.exe new file mode 100644 index 0000000..951eaed Binary files /dev/null and b/Homework/obj/Debug/net9.0/apphost.exe differ diff --git a/Homework/obj/Debug/net9.0/ref/Homework.dll b/Homework/obj/Debug/net9.0/ref/Homework.dll new file mode 100644 index 0000000..bd58475 Binary files /dev/null and b/Homework/obj/Debug/net9.0/ref/Homework.dll differ diff --git a/Homework/obj/Debug/net9.0/refint/Homework.dll b/Homework/obj/Debug/net9.0/refint/Homework.dll new file mode 100644 index 0000000..bd58475 Binary files /dev/null and b/Homework/obj/Debug/net9.0/refint/Homework.dll differ diff --git a/Homework/obj/Homework.csproj.nuget.dgspec.json b/Homework/obj/Homework.csproj.nuget.dgspec.json index 2ef35da..86ed317 100644 --- a/Homework/obj/Homework.csproj.nuget.dgspec.json +++ b/Homework/obj/Homework.csproj.nuget.dgspec.json @@ -1,31 +1,29 @@ { "format": 1, "restore": { - "C:\\Users\\ms169\\Desktop\\Homework\\Homework\\Homework.csproj": {} + "E:\\课外学习\\暑培\\3 C#\\CSharpHomework2025\\Homework\\Homework.csproj": {} }, "projects": { - "C:\\Users\\ms169\\Desktop\\Homework\\Homework\\Homework.csproj": { + "E:\\课外学习\\暑培\\3 C#\\CSharpHomework2025\\Homework\\Homework.csproj": { "version": "1.0.0", "restore": { - "projectUniqueName": "C:\\Users\\ms169\\Desktop\\Homework\\Homework\\Homework.csproj", + "projectUniqueName": "E:\\课外学习\\暑培\\3 C#\\CSharpHomework2025\\Homework\\Homework.csproj", "projectName": "Homework", - "projectPath": "C:\\Users\\ms169\\Desktop\\Homework\\Homework\\Homework.csproj", - "packagesPath": "C:\\Users\\ms169\\.nuget\\packages\\", - "outputPath": "C:\\Users\\ms169\\Desktop\\Homework\\Homework\\obj\\", + "projectPath": "E:\\课外学习\\暑培\\3 C#\\CSharpHomework2025\\Homework\\Homework.csproj", + "packagesPath": "C:\\Users\\Lenovo\\.nuget\\packages\\", + "outputPath": "E:\\课外学习\\暑培\\3 C#\\CSharpHomework2025\\Homework\\obj\\", "projectStyle": "PackageReference", "fallbackFolders": [ "C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages" ], "configFilePaths": [ - "C:\\Users\\ms169\\AppData\\Roaming\\NuGet\\NuGet.Config", - "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config", - "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config" + "C:\\Users\\Lenovo\\AppData\\Roaming\\NuGet\\NuGet.Config", + "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config" ], "originalTargetFrameworks": [ "net9.0" ], "sources": { - "C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {}, "https://api.nuget.org/v3/index.json": {} }, "frameworks": { @@ -44,7 +42,7 @@ "auditLevel": "low", "auditMode": "direct" }, - "SdkAnalysisLevel": "9.0.200" + "SdkAnalysisLevel": "9.0.300" }, "frameworks": { "net9.0": { @@ -65,7 +63,7 @@ "privateAssets": "all" } }, - "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\9.0.201/PortableRuntimeIdentifierGraph.json" + "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\9.0.304/PortableRuntimeIdentifierGraph.json" } } } diff --git a/Homework/obj/Homework.csproj.nuget.g.props b/Homework/obj/Homework.csproj.nuget.g.props index 9026052..e5fdd05 100644 --- a/Homework/obj/Homework.csproj.nuget.g.props +++ b/Homework/obj/Homework.csproj.nuget.g.props @@ -5,12 +5,12 @@ NuGet $(MSBuildThisFileDirectory)project.assets.json $(UserProfile)\.nuget\packages\ - C:\Users\ms169\.nuget\packages\;C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages + C:\Users\Lenovo\.nuget\packages\;C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages PackageReference - 6.13.1 + 6.14.1 - + \ No newline at end of file diff --git a/Homework/obj/project.assets.json b/Homework/obj/project.assets.json index 907663e..3fe4838 100644 --- a/Homework/obj/project.assets.json +++ b/Homework/obj/project.assets.json @@ -8,31 +8,29 @@ "net9.0": [] }, "packageFolders": { - "C:\\Users\\ms169\\.nuget\\packages\\": {}, + "C:\\Users\\Lenovo\\.nuget\\packages\\": {}, "C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages": {} }, "project": { "version": "1.0.0", "restore": { - "projectUniqueName": "C:\\Users\\ms169\\Desktop\\Homework\\Homework\\Homework.csproj", + "projectUniqueName": "E:\\课外学习\\暑培\\3 C#\\CSharpHomework2025\\Homework\\Homework.csproj", "projectName": "Homework", - "projectPath": "C:\\Users\\ms169\\Desktop\\Homework\\Homework\\Homework.csproj", - "packagesPath": "C:\\Users\\ms169\\.nuget\\packages\\", - "outputPath": "C:\\Users\\ms169\\Desktop\\Homework\\Homework\\obj\\", + "projectPath": "E:\\课外学习\\暑培\\3 C#\\CSharpHomework2025\\Homework\\Homework.csproj", + "packagesPath": "C:\\Users\\Lenovo\\.nuget\\packages\\", + "outputPath": "E:\\课外学习\\暑培\\3 C#\\CSharpHomework2025\\Homework\\obj\\", "projectStyle": "PackageReference", "fallbackFolders": [ "C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages" ], "configFilePaths": [ - "C:\\Users\\ms169\\AppData\\Roaming\\NuGet\\NuGet.Config", - "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config", - "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config" + "C:\\Users\\Lenovo\\AppData\\Roaming\\NuGet\\NuGet.Config", + "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config" ], "originalTargetFrameworks": [ "net9.0" ], "sources": { - "C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {}, "https://api.nuget.org/v3/index.json": {} }, "frameworks": { @@ -51,7 +49,7 @@ "auditLevel": "low", "auditMode": "direct" }, - "SdkAnalysisLevel": "9.0.200" + "SdkAnalysisLevel": "9.0.300" }, "frameworks": { "net9.0": { @@ -72,7 +70,7 @@ "privateAssets": "all" } }, - "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\9.0.201/PortableRuntimeIdentifierGraph.json" + "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\9.0.304/PortableRuntimeIdentifierGraph.json" } } } diff --git a/Homework/obj/project.nuget.cache b/Homework/obj/project.nuget.cache index d182034..2b428de 100644 --- a/Homework/obj/project.nuget.cache +++ b/Homework/obj/project.nuget.cache @@ -1,8 +1,8 @@ { "version": 2, - "dgSpecHash": "Mpgpv19Q1hE=", + "dgSpecHash": "5nTXlW/3h4w=", "success": true, - "projectFilePath": "C:\\Users\\ms169\\Desktop\\Homework\\Homework\\Homework.csproj", + "projectFilePath": "E:\\课外学习\\暑培\\3 C#\\CSharpHomework2025\\Homework\\Homework.csproj", "expectedPackageFiles": [], "logs": [] } \ No newline at end of file