commit d5ff9f45a55af13593d3b8a9b65ecffccf59b0a7 Author: Your Name Date: Thu Oct 17 14:46:19 2024 +0300 first commit diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000..013d1a5 Binary files /dev/null and b/.DS_Store differ diff --git a/Data/.DS_Store b/Data/.DS_Store new file mode 100644 index 0000000..7b5fc51 Binary files /dev/null and b/Data/.DS_Store differ diff --git a/Data/LocalData/.DS_Store b/Data/LocalData/.DS_Store new file mode 100644 index 0000000..91681d2 Binary files /dev/null and b/Data/LocalData/.DS_Store differ diff --git a/Data/LocalData/Entity/Group.cs b/Data/LocalData/Entity/Group.cs new file mode 100644 index 0000000..e0b05ad --- /dev/null +++ b/Data/LocalData/Entity/Group.cs @@ -0,0 +1,8 @@ +namespace Demo.Domain.Models +{ + public class GroupLocalEntity + { + public required int ID {get; set; } + public required string Name{get; set; } + } +} \ No newline at end of file diff --git a/Data/LocalData/Entity/Presence.cs b/Data/LocalData/Entity/Presence.cs new file mode 100644 index 0000000..29995e7 --- /dev/null +++ b/Data/LocalData/Entity/Presence.cs @@ -0,0 +1,9 @@ +namespace Demo.Domain.Models{ + public class PresenceLocalEntity{ + public required Guid UserGuid{get; set; } + public bool IsAttedance { get; set; } = true; + public required DateOnly Date { get; set; } + + public required int LessonNumber { get; set; } + } +} \ No newline at end of file diff --git a/Data/LocalData/Entity/User.cs b/Data/LocalData/Entity/User.cs new file mode 100644 index 0000000..d7f209f --- /dev/null +++ b/Data/LocalData/Entity/User.cs @@ -0,0 +1,13 @@ +namespace Demo.Domain.Models{ + public class UserLocalEntity{ + public required string FIO{get; set; } + public Guid Guid {get; set; } + public required int GroupID{get; set; } + + public bool Equals(UserLocalEntity? other) + { + if (other == null) return false; + return this.Guid.Equals(other.Guid); + } +} +} \ No newline at end of file diff --git a/Data/LocalData/LocalStaticData.cs b/Data/LocalData/LocalStaticData.cs new file mode 100644 index 0000000..4d26fdd --- /dev/null +++ b/Data/LocalData/LocalStaticData.cs @@ -0,0 +1,24 @@ +using Demo.Domain.Models; + +namespace Demo.Data.LocalData +{ + public class LocalStaticData + { + public static List groups => new List + { + new GroupLocalEntity{ID = 1, Name = "ИП1-21"}, + new GroupLocalEntity{ID = 2, Name = "ИП1-22"}, + new GroupLocalEntity{ID = 3, Name = "ИП1-23"}, + }; + + public static List users => new List + { + new UserLocalEntity{Guid=Guid.Parse("e6b9964d-ea9f-420a-84b9-af9633bbfab9"), FIO = "RandomFio", GroupID = 1 }, + new UserLocalEntity{Guid=Guid.Parse("8388d931-5bef-41be-a152-78f1aca980ed"), FIO = "RandomFio1", GroupID = 2 }, + new UserLocalEntity{Guid=Guid.Parse("ed174548-49ed-4503-a902-c970cbf27173"), FIO = "RandomFio2", GroupID = 3 }, + new UserLocalEntity{Guid=Guid.Parse("614c0a23-5bd5-43ae-b48e-d5750afbc282"), FIO = "RandomFio3", GroupID = 1 }, + new UserLocalEntity{Guid=Guid.Parse("efcc1473-c116-4244-b3f7-f2341a5c3003"), FIO = "RandomFio4", GroupID = 2 }, + new UserLocalEntity{Guid=Guid.Parse("60640fb3-ace2-4cad-81d5-a0a58bc2dbbd"), FIO = "RandomFio5", GroupID = 3 }, + }; + } +} \ No newline at end of file diff --git a/Data/Repository/GroupRepositoryImpl.cs b/Data/Repository/GroupRepositoryImpl.cs new file mode 100644 index 0000000..4eac5cd --- /dev/null +++ b/Data/Repository/GroupRepositoryImpl.cs @@ -0,0 +1,31 @@ +using Demo.Domain.Models; + +using Demo.Data.LocalData; + +namespace Demo.Data.Repository +{ + public class GroupRepositoryImpl + { + // public List GetAllGroups() => LocalStaticData.groups; + public GroupRepositoryImpl() { + + GetAllGroups = LocalStaticData.groups; + } + public List GetAllGroups + { get; set; } + + public void CreateNewGroup(GroupLocalEntity groupLocalEntity) + { + GetAllGroups.Add(groupLocalEntity); + } + + public GroupLocalEntity? UpdateUserById(GroupLocalEntity groupUpdateLocalEntity) + { + int index = GetAllGroups.FindIndex(x => x.ID == groupUpdateLocalEntity.ID); + if (index == -1) return null; + GetAllGroups[index].Name = groupUpdateLocalEntity.Name; + Console.WriteLine($"Обновленный Name: {GetAllGroups[index].Name}"); + return GetAllGroups[index]; + } + } +} \ No newline at end of file diff --git a/Data/Repository/UserRepositorylmpl.cs b/Data/Repository/UserRepositorylmpl.cs new file mode 100644 index 0000000..ae2438e --- /dev/null +++ b/Data/Repository/UserRepositorylmpl.cs @@ -0,0 +1,42 @@ +using Demo.Domain.Models; +using Demo.Data.LocalData; + +namespace Demo.Data.Repository +{ + public class UserRepositoryImpl + { + public UserRepositoryImpl() { + + GetAllUsers = LocalStaticData.users; + } + public List GetAllUsers + { get; set; } + + public bool RemoveUserByGuid(Guid userGuid) + { + UserLocalEntity? userLocal = GetAllUsers + .Where(x => x.Guid == userGuid).FirstOrDefault(); + if (userLocal == null) return false; + + return GetAllUsers.Remove(userLocal); + } + + public UserLocalEntity? GetUserById(Guid userGuid) + { + UserLocalEntity? userlocal = LocalStaticData.users.Where(x => x.Guid == userGuid).FirstOrDefault(); + if (userlocal == null) return null; + + return userlocal; + } + + public UserLocalEntity? UpdateUserById(UserLocalEntity userUpdateLocalEntity) + { + int index = GetAllUsers.FindIndex(x => x.Guid == userUpdateLocalEntity.Guid); + if (index == -1) return null; + GetAllUsers[index].FIO = userUpdateLocalEntity.FIO; + GetAllUsers[index].GroupID = userUpdateLocalEntity.GroupID; + Console.WriteLine($"Обновленный FIO: {GetAllUsers[index].FIO}, GroupID: {GetAllUsers[index].GroupID}"); + return GetAllUsers[index]; + } + } +} \ No newline at end of file diff --git a/Demo.csproj b/Demo.csproj new file mode 100644 index 0000000..6f10314 --- /dev/null +++ b/Demo.csproj @@ -0,0 +1,14 @@ + + + + Exe + net8.0 + enable + enable + + + + + + + \ No newline at end of file diff --git a/Demo.sln b/Demo.sln new file mode 100644 index 0000000..b7a4c82 --- /dev/null +++ b/Demo.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.5.002.0 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Demo", "Demo.csproj", "{6C8DBC83-21F3-4474-A890-891D55757805}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {6C8DBC83-21F3-4474-A890-891D55757805}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {6C8DBC83-21F3-4474-A890-891D55757805}.Debug|Any CPU.Build.0 = Debug|Any CPU + {6C8DBC83-21F3-4474-A890-891D55757805}.Release|Any CPU.ActiveCfg = Release|Any CPU + {6C8DBC83-21F3-4474-A890-891D55757805}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {A18C0E44-3015-47E6-8F69-B8ACD1677185} + EndGlobalSection +EndGlobal diff --git a/Domain/Models/Group.cs b/Domain/Models/Group.cs new file mode 100644 index 0000000..ef15cfd --- /dev/null +++ b/Domain/Models/Group.cs @@ -0,0 +1,13 @@ +namespace Demo.Domain.Models +{ + public class Group + { + public required int ID{get; set; } + public required string Name{get; set; } + + public static Group Parse(string input){ + string[] words = input.Split(" "); + return new Group{ID = Convert.ToInt32(words[0]), Name = words[1]}; + } + } +} \ No newline at end of file diff --git a/Domain/Models/Presence.cs b/Domain/Models/Presence.cs new file mode 100644 index 0000000..8fddb96 --- /dev/null +++ b/Domain/Models/Presence.cs @@ -0,0 +1,11 @@ +namespace Demo.Domain.Models +{ + public class Presence + { + public required User User{get; set; } + public bool IsAttedance { get; set; } = true; + public required DateOnly Date { get; set; } + + public required int LessonNumber { get; set; } + } +} \ No newline at end of file diff --git a/Domain/Models/User.cs b/Domain/Models/User.cs new file mode 100644 index 0000000..087be8a --- /dev/null +++ b/Domain/Models/User.cs @@ -0,0 +1,27 @@ +namespace Demo.Domain.Models +{ + public class User + { + public required string FIO{get; set; } + public Guid Guid{get; set; } + public required Group Group{get; set; } + + public static User Parse(string input){ + string[] words = input.Split(" "); + // return new Group{ID = Convert.ToInt32(words[0]), Name = words[1]}; + foreach (string element in words){ + Console.Write(element + " "); + } + return new User + { + FIO = words[0], + Guid = Guid.Parse(words[1]), + Group = new Group + { + ID = Convert.ToInt32(words[2]), + Name = words[3] + } + }; + } + } +} \ No newline at end of file diff --git a/Domain/UseCase/GroupUseCase.cs b/Domain/UseCase/GroupUseCase.cs new file mode 100644 index 0000000..7a1023d --- /dev/null +++ b/Domain/UseCase/GroupUseCase.cs @@ -0,0 +1,45 @@ +using Demo.Domain.Models; +using Demo.Data.Repository; + +namespace Demo.Domain.UseCase +{ + public class GroupUseCase + { + private GroupRepositoryImpl _repositoryGroupImpl; + private UserRepositoryImpl _repositoryUserImpl; + public GroupUseCase(GroupRepositoryImpl repositoryGroupImpl, UserRepositoryImpl repositoryUserImpl) + { + _repositoryGroupImpl = repositoryGroupImpl; + _repositoryUserImpl = repositoryUserImpl; + } + + public List GetAllGroups() => _repositoryGroupImpl.GetAllGroups + .Select(it => new Group{ID = it.ID, Name = it.Name}).ToList(); + + public bool CreateNewGroup(Group group){ + GroupLocalEntity? groupLocalEntity = new GroupLocalEntity{ID = group.ID, Name = group.Name}; + _repositoryGroupImpl.CreateNewGroup(groupLocalEntity); + if (groupLocalEntity != null) return false; + return true; + } + + public Group UpdateUser(Group group) + { + GroupLocalEntity groupLocalEntity = new GroupLocalEntity + { + ID = group.ID, + Name = group.Name + }; + GroupLocalEntity? result = _repositoryGroupImpl.UpdateUserById(groupLocalEntity); + if (result == null) + { + throw new Exception("Не удалось обновить пользователя: пользователь не найден."); + } + return new Group + { + ID = result.ID, + Name = result.Name + }; + } + } +} \ No newline at end of file diff --git a/Domain/UseCase/UserUseCase.cs b/Domain/UseCase/UserUseCase.cs new file mode 100644 index 0000000..7cac52e --- /dev/null +++ b/Domain/UseCase/UserUseCase.cs @@ -0,0 +1,77 @@ +using Demo.Domain.Models; +using Demo.Data.Repository; + +namespace Demo.Domain.UseCase +{ + public class UserUseCase + { + private GroupRepositoryImpl _repositoryGroupImpl; + private UserRepositoryImpl _repositoryUserImpl; + + public UserUseCase(GroupRepositoryImpl repositoryGroupImpl, UserRepositoryImpl repositoryUserImpl) + { + _repositoryGroupImpl = repositoryGroupImpl; + _repositoryUserImpl = repositoryUserImpl; + } + + private List GetAllGroups() => _repositoryGroupImpl.GetAllGroups + .Select(it => new Group{ID = it.ID, Name = it.Name}).ToList(); + + public List GetAllUsers() => _repositoryUserImpl.GetAllUsers + .Join(_repositoryGroupImpl.GetAllGroups, + user => user.GroupID, + group => group.ID, + (user, group) => new User{ + FIO = user.FIO, + Guid = user.Guid, + Group = new Group{ + ID = group.ID, + Name = group.Name} + } + ).ToList(); + + public User GetUserByGuid(Guid userGuid){ + UserLocalEntity? userLocalEntity = _repositoryUserImpl.GetUserById(userGuid); + if (userLocalEntity == null) throw new Exception("bello"); + Group? group = GetAllGroups().FirstOrDefault(it => userLocalEntity.GroupID == it.ID); + if (group == null) throw new Exception("bello"); + return new User{ + FIO = userLocalEntity.FIO, + Guid = userLocalEntity.Guid, + Group = new Group{ + ID = group.ID, + Name = group.Name} + }; + } + + public bool RemoveUserByGuid(Guid userGuid) { + return _repositoryUserImpl.RemoveUserByGuid(userGuid); + } + + public User UpdateUser(User user) + { + UserLocalEntity userLocalEntity = new UserLocalEntity + { + FIO = user.FIO, + Guid = user.Guid, + GroupID = user.Group.ID + }; + UserLocalEntity? result = _repositoryUserImpl.UpdateUserById(userLocalEntity); + if (result == null) + { + throw new Exception("Не удалось обновить пользователя: пользователь не найден."); + } + Group? group = GetAllGroups().FirstOrDefault(it => result.GroupID == it.ID); + if (group == null) + { + throw new Exception("Не удалось обновить пользователя: группа не найдена."); + } + return new User + { + FIO = result.FIO, + Guid = result.Guid, + Group = group + }; + } + } +} diff --git a/Program.cs b/Program.cs new file mode 100644 index 0000000..6a7bb6f --- /dev/null +++ b/Program.cs @@ -0,0 +1,10 @@ +using Demo.Data.Repository; +using Demo.Domain.UseCase; +using Demo.UI; + +GroupRepositoryImpl _groupRepositoryImpl = new GroupRepositoryImpl(); +UserRepositoryImpl _userRepositoryImpl = new UserRepositoryImpl(); +UserUseCase _userUseCase = new UserUseCase(_groupRepositoryImpl, _userRepositoryImpl); +GroupUseCase _groupUseCase = new GroupUseCase(_groupRepositoryImpl, _userRepositoryImpl); + +MainMenuUI mainMenuUI = new MainMenuUI(_userUseCase, _groupUseCase); \ No newline at end of file diff --git a/UI/MainMenu.cs b/UI/MainMenu.cs new file mode 100644 index 0000000..caa6ef9 --- /dev/null +++ b/UI/MainMenu.cs @@ -0,0 +1,39 @@ +using Demo.Domain.Models; +using Demo.Domain.UseCase; + +namespace Demo.UI +{ + public class MainMenuUI + { + + UserConsoleUI _userConsoleUI; + GroupConsoleUI _groupConsoleUI; + + public MainMenuUI(UserUseCase userUseCase, GroupUseCase groupUseCase) { + _userConsoleUI = new UserConsoleUI(userUseCase); + _groupConsoleUI = new GroupConsoleUI(groupUseCase); + DisplayMenu(); + + } + + private void DisplayMenu() { + while (true) + { + switch (Console.ReadLine()) + { + case "1": _userConsoleUI.DisplayAllUsers(); break; + case "2": _userConsoleUI.RemoveUserByGuid(Guid.Parse(Console.ReadLine())); break; + case "3": _userConsoleUI.UpdateUserByGuid(User.Parse(Console.ReadLine())); break; + case "4": _userConsoleUI.DisplayUserByGuid(Guid.Parse(Console.ReadLine())); break; + case "5": _groupConsoleUI.DisplayAllGroups(); break; + case "6": _groupConsoleUI.CreateNewGroup(Group.Parse(Console.ReadLine())); break; + case "7": _groupConsoleUI.UpdateGroupName(Group.Parse(Console.ReadLine())); break; //todo + + default: DisplayMenu(); + break; + } + } + } + + } +} \ No newline at end of file diff --git a/UI/UserConsole.cs b/UI/UserConsole.cs new file mode 100644 index 0000000..e011307 --- /dev/null +++ b/UI/UserConsole.cs @@ -0,0 +1,88 @@ +using System.Text; +using Demo.Domain.Models; +using Demo.Domain.UseCase; + +namespace Demo.UI +{ + public class UserConsoleUI + { + UserUseCase _userUseCase; + public UserConsoleUI(UserUseCase userUseCase) { + _userUseCase = userUseCase; + } + + public void RemoveUserByGuid(Guid guidUser) { + + string output = _userUseCase.RemoveUserByGuid(guidUser) ? "Пользователь удален" : "Пользователь не удален"; + Console.WriteLine(output); + } + + public void DisplayAllUsers() + { + StringBuilder userOutput = new StringBuilder(); + foreach (var user in _userUseCase.GetAllUsers()) + { + userOutput.AppendLine($"{user.Guid}\t{user.FIO}\t{user.Group.Name}"); + } + Console.WriteLine(userOutput); + } + + public void UpdateUserByGuid(User user) + { + try + { + User output = _userUseCase.UpdateUser(user); + StringBuilder userOutput = new StringBuilder(); + userOutput.AppendLine($"Обновленный пользователь: {output.Guid}\t{output.FIO}\t{output.Group.Name}"); + Console.WriteLine(userOutput); + } + catch (Exception ex) + { + Console.WriteLine($"Ошибка при обновлении пользователя: {ex.Message}"); + } + } + + public void DisplayUserByGuid(Guid guid){ + User output = _userUseCase.GetUserByGuid(guid); + StringBuilder userOutput = new StringBuilder(); + userOutput.AppendLine($"{output.Guid}\t{output.FIO}\t{output.Group.Name}"); + Console.WriteLine(userOutput); + } + } + + public class GroupConsoleUI + { + GroupUseCase _groupUseCase; + public GroupConsoleUI(GroupUseCase groupUseCase){ + _groupUseCase = groupUseCase; + } + + public void DisplayAllGroups(){ + StringBuilder userOutput = new StringBuilder(); + foreach (var group in _groupUseCase.GetAllGroups()) + { + userOutput.AppendLine($"{group.ID}\t{group.Name}"); + } + Console.WriteLine(userOutput); + } + + public void CreateNewGroup(Group group){ + string output = _groupUseCase.CreateNewGroup(group) ? "Пользователь создан" : "Пользователь не создан"; + } + + public void UpdateGroupName(Group group) + { + try + { + Group output = _groupUseCase.UpdateUser(group); + StringBuilder groupOutput = new StringBuilder(); + groupOutput.AppendLine($"Обновленная группа: {output.ID}\t{output.Name}"); + Console.WriteLine(groupOutput); + } + catch (Exception ex) + { + Console.WriteLine($"Ошибка при обновлении группы: {ex.Message}"); + } + } + } +} \ No newline at end of file diff --git a/bin/Debug/net8.0/Demo b/bin/Debug/net8.0/Demo new file mode 100755 index 0000000..c208806 Binary files /dev/null and b/bin/Debug/net8.0/Demo differ diff --git a/bin/Debug/net8.0/Demo.deps.json b/bin/Debug/net8.0/Demo.deps.json new file mode 100644 index 0000000..34d15c4 --- /dev/null +++ b/bin/Debug/net8.0/Demo.deps.json @@ -0,0 +1,23 @@ +{ + "runtimeTarget": { + "name": ".NETCoreApp,Version=v8.0", + "signature": "" + }, + "compilationOptions": {}, + "targets": { + ".NETCoreApp,Version=v8.0": { + "Demo/1.0.0": { + "runtime": { + "Demo.dll": {} + } + } + } + }, + "libraries": { + "Demo/1.0.0": { + "type": "project", + "serviceable": false, + "sha512": "" + } + } +} \ No newline at end of file diff --git a/bin/Debug/net8.0/Demo.dll b/bin/Debug/net8.0/Demo.dll new file mode 100644 index 0000000..6f43a2d Binary files /dev/null and b/bin/Debug/net8.0/Demo.dll differ diff --git a/bin/Debug/net8.0/Demo.pdb b/bin/Debug/net8.0/Demo.pdb new file mode 100644 index 0000000..f6e89c1 Binary files /dev/null and b/bin/Debug/net8.0/Demo.pdb differ diff --git a/bin/Debug/net8.0/Demo.runtimeconfig.json b/bin/Debug/net8.0/Demo.runtimeconfig.json new file mode 100644 index 0000000..becfaea --- /dev/null +++ b/bin/Debug/net8.0/Demo.runtimeconfig.json @@ -0,0 +1,12 @@ +{ + "runtimeOptions": { + "tfm": "net8.0", + "framework": { + "name": "Microsoft.NETCore.App", + "version": "8.0.0" + }, + "configProperties": { + "System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false + } + } +} \ No newline at end of file diff --git a/obj/Debug/net8.0/.NETCoreApp,Version=v8.0.AssemblyAttributes.cs b/obj/Debug/net8.0/.NETCoreApp,Version=v8.0.AssemblyAttributes.cs new file mode 100644 index 0000000..dca70aa --- /dev/null +++ b/obj/Debug/net8.0/.NETCoreApp,Version=v8.0.AssemblyAttributes.cs @@ -0,0 +1,4 @@ +// +using System; +using System.Reflection; +[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v8.0", FrameworkDisplayName = ".NET 8.0")] diff --git a/obj/Debug/net8.0/Demo.AssemblyInfo.cs b/obj/Debug/net8.0/Demo.AssemblyInfo.cs new file mode 100644 index 0000000..14c16db --- /dev/null +++ b/obj/Debug/net8.0/Demo.AssemblyInfo.cs @@ -0,0 +1,22 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using System; +using System.Reflection; + +[assembly: System.Reflection.AssemblyCompanyAttribute("Demo")] +[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] +[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")] +[assembly: System.Reflection.AssemblyProductAttribute("Demo")] +[assembly: System.Reflection.AssemblyTitleAttribute("Demo")] +[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] + +// Создано классом WriteCodeFragment MSBuild. + diff --git a/obj/Debug/net8.0/Demo.AssemblyInfoInputs.cache b/obj/Debug/net8.0/Demo.AssemblyInfoInputs.cache new file mode 100644 index 0000000..027d67d --- /dev/null +++ b/obj/Debug/net8.0/Demo.AssemblyInfoInputs.cache @@ -0,0 +1 @@ +eb16b2b154799358c5c37f7f25193ef306ab5592617791ff431f7a24a66875c2 diff --git a/obj/Debug/net8.0/Demo.GeneratedMSBuildEditorConfig.editorconfig b/obj/Debug/net8.0/Demo.GeneratedMSBuildEditorConfig.editorconfig new file mode 100644 index 0000000..3d929e9 --- /dev/null +++ b/obj/Debug/net8.0/Demo.GeneratedMSBuildEditorConfig.editorconfig @@ -0,0 +1,13 @@ +is_global = true +build_property.TargetFramework = net8.0 +build_property.TargetPlatformMinVersion = +build_property.UsingMicrosoftNETSdkWeb = +build_property.ProjectTypeGuids = +build_property.InvariantGlobalization = +build_property.PlatformNeutralAssembly = +build_property.EnforceExtendedAnalyzerRules = +build_property._SupportedPlatformList = Linux,macOS,Windows +build_property.RootNamespace = Demo +build_property.ProjectDir = /Users/rinchi/VSCodeProjects/Demo/ +build_property.EnableComHosting = +build_property.EnableGeneratedComInterfaceComImportInterop = diff --git a/obj/Debug/net8.0/Demo.GlobalUsings.g.cs b/obj/Debug/net8.0/Demo.GlobalUsings.g.cs new file mode 100644 index 0000000..8578f3d --- /dev/null +++ b/obj/Debug/net8.0/Demo.GlobalUsings.g.cs @@ -0,0 +1,8 @@ +// +global using global::System; +global using global::System.Collections.Generic; +global using global::System.IO; +global using global::System.Linq; +global using global::System.Net.Http; +global using global::System.Threading; +global using global::System.Threading.Tasks; diff --git a/obj/Debug/net8.0/Demo.assets.cache b/obj/Debug/net8.0/Demo.assets.cache new file mode 100644 index 0000000..34a8b6f Binary files /dev/null and b/obj/Debug/net8.0/Demo.assets.cache differ diff --git a/obj/Debug/net8.0/Demo.csproj.CoreCompileInputs.cache b/obj/Debug/net8.0/Demo.csproj.CoreCompileInputs.cache new file mode 100644 index 0000000..81e4df8 --- /dev/null +++ b/obj/Debug/net8.0/Demo.csproj.CoreCompileInputs.cache @@ -0,0 +1 @@ +05407eb2645f69ef3210525c6e96fe1840a0c5f34e2e112238637ba9ea98449a diff --git a/obj/Debug/net8.0/Demo.csproj.FileListAbsolute.txt b/obj/Debug/net8.0/Demo.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..e81eca2 --- /dev/null +++ b/obj/Debug/net8.0/Demo.csproj.FileListAbsolute.txt @@ -0,0 +1,14 @@ +/Users/rinchi/VSCodeProjects/Demo/bin/Debug/net8.0/Demo +/Users/rinchi/VSCodeProjects/Demo/bin/Debug/net8.0/Demo.deps.json +/Users/rinchi/VSCodeProjects/Demo/bin/Debug/net8.0/Demo.runtimeconfig.json +/Users/rinchi/VSCodeProjects/Demo/bin/Debug/net8.0/Demo.dll +/Users/rinchi/VSCodeProjects/Demo/bin/Debug/net8.0/Demo.pdb +/Users/rinchi/VSCodeProjects/Demo/obj/Debug/net8.0/Demo.GeneratedMSBuildEditorConfig.editorconfig +/Users/rinchi/VSCodeProjects/Demo/obj/Debug/net8.0/Demo.AssemblyInfoInputs.cache +/Users/rinchi/VSCodeProjects/Demo/obj/Debug/net8.0/Demo.AssemblyInfo.cs +/Users/rinchi/VSCodeProjects/Demo/obj/Debug/net8.0/Demo.csproj.CoreCompileInputs.cache +/Users/rinchi/VSCodeProjects/Demo/obj/Debug/net8.0/Demo.dll +/Users/rinchi/VSCodeProjects/Demo/obj/Debug/net8.0/refint/Demo.dll +/Users/rinchi/VSCodeProjects/Demo/obj/Debug/net8.0/Demo.pdb +/Users/rinchi/VSCodeProjects/Demo/obj/Debug/net8.0/Demo.genruntimeconfig.cache +/Users/rinchi/VSCodeProjects/Demo/obj/Debug/net8.0/ref/Demo.dll diff --git a/obj/Debug/net8.0/Demo.dll b/obj/Debug/net8.0/Demo.dll new file mode 100644 index 0000000..6f43a2d Binary files /dev/null and b/obj/Debug/net8.0/Demo.dll differ diff --git a/obj/Debug/net8.0/Demo.genruntimeconfig.cache b/obj/Debug/net8.0/Demo.genruntimeconfig.cache new file mode 100644 index 0000000..bcf2b89 --- /dev/null +++ b/obj/Debug/net8.0/Demo.genruntimeconfig.cache @@ -0,0 +1 @@ +4a28aaadb24bbda6efe4e166a6aa1429c71cc10a5e61120ecc4d0254fdc8c341 diff --git a/obj/Debug/net8.0/Demo.pdb b/obj/Debug/net8.0/Demo.pdb new file mode 100644 index 0000000..f6e89c1 Binary files /dev/null and b/obj/Debug/net8.0/Demo.pdb differ diff --git a/obj/Debug/net8.0/apphost b/obj/Debug/net8.0/apphost new file mode 100755 index 0000000..c208806 Binary files /dev/null and b/obj/Debug/net8.0/apphost differ diff --git a/obj/Debug/net8.0/ref/Demo.dll b/obj/Debug/net8.0/ref/Demo.dll new file mode 100644 index 0000000..a99c3f0 Binary files /dev/null and b/obj/Debug/net8.0/ref/Demo.dll differ diff --git a/obj/Debug/net8.0/refint/Demo.dll b/obj/Debug/net8.0/refint/Demo.dll new file mode 100644 index 0000000..a99c3f0 Binary files /dev/null and b/obj/Debug/net8.0/refint/Demo.dll differ diff --git a/obj/Demo.csproj.nuget.dgspec.json b/obj/Demo.csproj.nuget.dgspec.json new file mode 100644 index 0000000..3e7a41d --- /dev/null +++ b/obj/Demo.csproj.nuget.dgspec.json @@ -0,0 +1,66 @@ +{ + "format": 1, + "restore": { + "/Users/rinchi/VSCodeProjects/Demo/Demo.csproj": {} + }, + "projects": { + "/Users/rinchi/VSCodeProjects/Demo/Demo.csproj": { + "version": "1.0.0", + "restore": { + "projectUniqueName": "/Users/rinchi/VSCodeProjects/Demo/Demo.csproj", + "projectName": "Demo", + "projectPath": "/Users/rinchi/VSCodeProjects/Demo/Demo.csproj", + "packagesPath": "/Users/rinchi/.nuget/packages/", + "outputPath": "/Users/rinchi/VSCodeProjects/Demo/obj/", + "projectStyle": "PackageReference", + "configFilePaths": [ + "/Users/rinchi/.nuget/NuGet/NuGet.Config" + ], + "originalTargetFrameworks": [ + "net8.0" + ], + "sources": { + "https://api.nuget.org/v3/index.json": {} + }, + "frameworks": { + "net8.0": { + "targetAlias": "net8.0", + "projectReferences": {} + } + }, + "warningProperties": { + "warnAsError": [ + "NU1605" + ] + }, + "restoreAuditProperties": { + "enableAudit": "true", + "auditLevel": "low", + "auditMode": "direct" + } + }, + "frameworks": { + "net8.0": { + "targetAlias": "net8.0", + "imports": [ + "net461", + "net462", + "net47", + "net471", + "net472", + "net48", + "net481" + ], + "assetTargetFallback": true, + "warn": true, + "frameworkReferences": { + "Microsoft.NETCore.App": { + "privateAssets": "all" + } + }, + "runtimeIdentifierGraphPath": "/usr/local/share/dotnet/sdk/8.0.402/PortableRuntimeIdentifierGraph.json" + } + } + } + } +} \ No newline at end of file diff --git a/obj/Demo.csproj.nuget.g.props b/obj/Demo.csproj.nuget.g.props new file mode 100644 index 0000000..94f8e5c --- /dev/null +++ b/obj/Demo.csproj.nuget.g.props @@ -0,0 +1,15 @@ + + + + True + NuGet + $(MSBuildThisFileDirectory)project.assets.json + /Users/rinchi/.nuget/packages/ + /Users/rinchi/.nuget/packages/ + PackageReference + 6.11.1 + + + + + \ No newline at end of file diff --git a/obj/Demo.csproj.nuget.g.targets b/obj/Demo.csproj.nuget.g.targets new file mode 100644 index 0000000..3dc06ef --- /dev/null +++ b/obj/Demo.csproj.nuget.g.targets @@ -0,0 +1,2 @@ + + \ No newline at end of file diff --git a/obj/project.assets.json b/obj/project.assets.json new file mode 100644 index 0000000..2258cb4 --- /dev/null +++ b/obj/project.assets.json @@ -0,0 +1,71 @@ +{ + "version": 3, + "targets": { + "net8.0": {} + }, + "libraries": {}, + "projectFileDependencyGroups": { + "net8.0": [] + }, + "packageFolders": { + "/Users/rinchi/.nuget/packages/": {} + }, + "project": { + "version": "1.0.0", + "restore": { + "projectUniqueName": "/Users/rinchi/VSCodeProjects/Demo/Demo.csproj", + "projectName": "Demo", + "projectPath": "/Users/rinchi/VSCodeProjects/Demo/Demo.csproj", + "packagesPath": "/Users/rinchi/.nuget/packages/", + "outputPath": "/Users/rinchi/VSCodeProjects/Demo/obj/", + "projectStyle": "PackageReference", + "configFilePaths": [ + "/Users/rinchi/.nuget/NuGet/NuGet.Config" + ], + "originalTargetFrameworks": [ + "net8.0" + ], + "sources": { + "https://api.nuget.org/v3/index.json": {} + }, + "frameworks": { + "net8.0": { + "targetAlias": "net8.0", + "projectReferences": {} + } + }, + "warningProperties": { + "warnAsError": [ + "NU1605" + ] + }, + "restoreAuditProperties": { + "enableAudit": "true", + "auditLevel": "low", + "auditMode": "direct" + } + }, + "frameworks": { + "net8.0": { + "targetAlias": "net8.0", + "imports": [ + "net461", + "net462", + "net47", + "net471", + "net472", + "net48", + "net481" + ], + "assetTargetFallback": true, + "warn": true, + "frameworkReferences": { + "Microsoft.NETCore.App": { + "privateAssets": "all" + } + }, + "runtimeIdentifierGraphPath": "/usr/local/share/dotnet/sdk/8.0.402/PortableRuntimeIdentifierGraph.json" + } + } + } +} \ No newline at end of file diff --git a/obj/project.nuget.cache b/obj/project.nuget.cache new file mode 100644 index 0000000..ef7c819 --- /dev/null +++ b/obj/project.nuget.cache @@ -0,0 +1,8 @@ +{ + "version": 2, + "dgSpecHash": "cqUSRourbns=", + "success": true, + "projectFilePath": "/Users/rinchi/VSCodeProjects/Demo/Demo.csproj", + "expectedPackageFiles": [], + "logs": [] +} \ No newline at end of file