commit 85738972fe3575470802606e9d44d27dd6220d5f Author: Class_Student Date: Mon Oct 21 15:42:00 2024 +0300 init diff --git a/Demo.sln b/Demo.sln new file mode 100644 index 0000000..ce1f93c --- /dev/null +++ b/Demo.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.11.35312.102 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Demo", "Demo\Demo.csproj", "{983820F6-FF31-4B3A-8593-831BC3904E80}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {983820F6-FF31-4B3A-8593-831BC3904E80}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {983820F6-FF31-4B3A-8593-831BC3904E80}.Debug|Any CPU.Build.0 = Debug|Any CPU + {983820F6-FF31-4B3A-8593-831BC3904E80}.Release|Any CPU.ActiveCfg = Release|Any CPU + {983820F6-FF31-4B3A-8593-831BC3904E80}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {4F43A963-447C-4FCB-BB78-8D315EC0F1D6} + EndGlobalSection +EndGlobal diff --git a/Demo/Data/LocalData/Entity/Group.cs b/Demo/Data/LocalData/Entity/Group.cs new file mode 100644 index 0000000..55c0593 --- /dev/null +++ b/Demo/Data/LocalData/Entity/Group.cs @@ -0,0 +1,15 @@ +using System; + +namespace Demo.Data.LocalData.Entity +{ + public class Group + { + public required int Id { get; set; } + public required string Name { get; set; } + + internal Domain.Models.Group ToModel() + { + throw new NotImplementedException(); + } + } +} diff --git a/Demo/Data/LocalData/Entity/Presence.cs b/Demo/Data/LocalData/Entity/Presence.cs new file mode 100644 index 0000000..5c1054e --- /dev/null +++ b/Demo/Data/LocalData/Entity/Presence.cs @@ -0,0 +1,12 @@ +using System; + +namespace Demo.Data.LocalData.Entity +{ + public class Presence + { + public required Guid UserGuid { get; set; } + public bool IsAttendance { get; set; } = true; + public required DateOnly Date { get; set; } + public required int LessonNumber { get; set; } + } +} diff --git a/Demo/Data/LocalData/Entity/User.cs b/Demo/Data/LocalData/Entity/User.cs new file mode 100644 index 0000000..38d967c --- /dev/null +++ b/Demo/Data/LocalData/Entity/User.cs @@ -0,0 +1,11 @@ +using System; + +namespace Demo.Data.LocalData.Entity +{ + public class User + { + public required string FIO { get; set; } + public Guid Guid { get; set; } + public required int GroupID { get; set; } + } +} diff --git a/Demo/Data/LocalData/LocalStaticData.cs b/Demo/Data/LocalData/LocalStaticData.cs new file mode 100644 index 0000000..0b5d01c --- /dev/null +++ b/Demo/Data/LocalData/LocalStaticData.cs @@ -0,0 +1,26 @@ +using Demo.Data.LocalData.Entity; +using System; +using System.Collections.Generic; + +namespace Demo.Data.LocalData +{ + public static class LocalStaticData + { + public static List Groups => new List + { + new Group { Id = 1, Name = "ИП1-21" }, + new Group { Id = 2, Name = "ИП1-22" }, + new Group { Id = 3, Name = "ИП1-23" }, + }; + + public static List Users => new List + { + new User { Guid = Guid.Parse("e6b9964d-ea9f-420a-84b9-af9633bbfab9"), FIO = "пру5кен", GroupID = 1 }, + new User { Guid = Guid.Parse("8388d931-5bef-41be-a152-78f1aca980ed"), FIO = "RandomFio1", GroupID = 2 }, + new User { Guid = Guid.Parse("ed174548-49ed-4503-a902-c970cbf27173"), FIO = "RandomFio2", GroupID = 3 }, + new User { Guid = Guid.Parse("614c0a23-5bd5-43ae-b48e-d5750afbc282"), FIO = "RandomFio3", GroupID = 1 }, + new User { Guid = Guid.Parse("efcc1473-c116-4244-b3f7-f2341a5c3003"), FIO = "RandomFio4", GroupID = 2 }, + new User { Guid = Guid.Parse("60640fb3-ace2-4cad-81d5-a0a58bc2dbbd"), FIO = "RandomFio5", GroupID = 3 }, + }; + } +} diff --git a/Demo/Data/Repository/GroupRepositoryImpl.cs b/Demo/Data/Repository/GroupRepositoryImpl.cs new file mode 100644 index 0000000..f0d6fb6 --- /dev/null +++ b/Demo/Data/Repository/GroupRepositoryImpl.cs @@ -0,0 +1,67 @@ +using Demo.Domain.Models; +using Demo.Data.LocalData; // Добавьте пространство имен +using System.Collections.Generic; +using System.Linq; + +namespace Demo.Data.Repository +{ + public class GroupRepositoryImpl + { + private List _groups; + + public GroupRepositoryImpl() + { + // Инициализируем список групп данными из LocalStaticData + _groups = LocalStaticData.Groups.Select(g => new Demo.Domain.Models.Group + { + Id = g.Id, + Name = g.Name + }).ToList(); + } + + public List GetAllGroups() + { + return _groups; + } + + public Group GetGroupById(int id) + { + return _groups.FirstOrDefault(g => g.Id == id); + } + + public void AddGroup(Group group) + { + _groups.Add(group); + } + + public bool UpdateGroup(Group group) // Метод возвращает bool + { + var existingGroup = _groups.FirstOrDefault(g => g.Id == group.Id); + if (existingGroup != null) + { + existingGroup.Name = group.Name; // Обновите остальные поля, если необходимо + return true; // Успешное обновление + } + return false; // Группа не найдена + } + + public bool RemoveGroupById(int groupId) // Метод возвращает bool + { + var group = _groups.FirstOrDefault(g => g.Id == groupId); + if (group != null) + { + _groups.Remove(group); + return true; // Успешное удаление + } + return false; // Группа не найдена + } + + public void DisplayGroups() + { + foreach (var group in _groups) + { + Console.WriteLine($"ID: {group.Id}, Name: {group.Name}"); + } + } + } +} diff --git a/Demo/Data/Repository/UserRepositoryImpl.cs b/Demo/Data/Repository/UserRepositoryImpl.cs new file mode 100644 index 0000000..bb7205a --- /dev/null +++ b/Demo/Data/Repository/UserRepositoryImpl.cs @@ -0,0 +1,68 @@ + +using System; +using System.Collections.Generic; +using System.Linq; + +using Demo.Data.LocalData; +using Demo.Domain.Models; + +namespace Demo.Data.Repository +{ + public class UserRepositoryImpl + { + private List _users = LocalStaticData.Users.Select(it => new User { FIO = it.FIO, Group = new Group(), Guid = it.Guid }).ToList(); + public UserRepositoryImpl() { _users = LocalStaticData.Users.Select(it => new User { FIO = it.FIO, Group = new Group(), Guid = it.Guid}).ToList(); } + + public List GetAllUsers() + { + return _users; + } + + public User GetByGuid(Guid id) + { + return _users.FirstOrDefault(static u => u.Guid ==u.Guid); + } + + public void AddUser(User user) + { + _users.Add(user); + } + + public bool UpdateUser(User user) + { + var existingUser = _users.FirstOrDefault(u => u.Guid == user.Guid); + if (existingUser != null) + { + existingUser.FIO = user.FIO; // Обновите остальные поля, если необходимо + return true; // Успешное обновление + } + return false; // Пользователь не найден + } + + + public void RemoveUser(Guid userGuid) + { + var user = _users.FirstOrDefault(u => u.Guid == userGuid); + if (user != null) + { + _users.Remove(user); + } + } + + public bool RemoveUserByGuid(Guid userGuid) + { + var user = _users.FirstOrDefault(u => u.Guid == userGuid); + if (user != null) + { + _users.Remove(user); + return true; // Успешное удаление + } + return false; // Пользователь не найден + } + + public User FindUserByGuid(Guid userGuid) // Реализуем метод + { + return _users.FirstOrDefault(u => u.Guid == userGuid); + } + } +} diff --git a/Demo/Demo.csproj b/Demo/Demo.csproj new file mode 100644 index 0000000..1ea2759 --- /dev/null +++ b/Demo/Demo.csproj @@ -0,0 +1,14 @@ + + + + Exe + net8.0 + enable + enable + + + + + + + diff --git a/Demo/Domain/Models/Group.cs b/Demo/Domain/Models/Group.cs new file mode 100644 index 0000000..48413d5 --- /dev/null +++ b/Demo/Domain/Models/Group.cs @@ -0,0 +1,45 @@ +using System; + +namespace Demo.Domain.Models +{ + public class Group + { + public int Id { get; set; } + public string Name { get; set; } + + public Group() { } + + public Group(int id, string name) + { + Id = id; + Name = name; + } + + public override bool Equals(object obj) + { + return obj is Group group && + Id == group.Id && + Name == group.Name; + } + + public override int GetHashCode() + { + return HashCode.Combine(Id, Name); + } + + internal Data.LocalData.Entity.Group ToEntity() + { + throw new NotImplementedException(); + } + + public static bool operator ==(Group left, Group right) + { + return left.Equals(right); + } + + public static bool operator !=(Group left, Group right) + { + return !(left == right); + } + } +} diff --git a/Demo/Domain/Models/Presence.cs b/Demo/Domain/Models/Presence.cs new file mode 100644 index 0000000..01b0b94 --- /dev/null +++ b/Demo/Domain/Models/Presence.cs @@ -0,0 +1,12 @@ +using System; + +namespace Demo.Domain.Models +{ + public class Presence + { + public required User User { get; set; } + public bool IsAttendance { get; set; } = true; + public required DateOnly Date { get; set; } + public required int LessonNumber { get; set; } + } +} diff --git a/Demo/Domain/Models/User.cs b/Demo/Domain/Models/User.cs new file mode 100644 index 0000000..962fefb --- /dev/null +++ b/Demo/Domain/Models/User.cs @@ -0,0 +1,17 @@ +using System; + +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 int GroupID { get; internal set; } + + public static explicit operator User(Data.LocalData.Entity.User? v) + { + throw new NotImplementedException(); + } + } +} diff --git a/Demo/Domain/UseCase/GroupUseCase.cs b/Demo/Domain/UseCase/GroupUseCase.cs new file mode 100644 index 0000000..d6aae64 --- /dev/null +++ b/Demo/Domain/UseCase/GroupUseCase.cs @@ -0,0 +1,56 @@ +using Demo.Data.Repository; +using Demo.Domain.Models; +using System.Collections.Generic; + +namespace Demo.Domain.UseCase +{ + public class GroupUseCase + { + private readonly GroupRepositoryImpl _groupRepository; + + public GroupUseCase(GroupRepositoryImpl groupRepository) + { + _groupRepository = groupRepository; + } + + public List GetAllGroups() + { + return _groupRepository.GetAllGroups(); + } + + public Group GetGroupById(int id) + { + return _groupRepository.GetGroupById(id); + } + + public void AddGroup(Group group) + { + _groupRepository.AddGroup(group); + } + + public bool UpdateGroup(Group group) // Метод возвращает bool + { + var existingGroup = _groupRepository.GetGroupById(group.Id); + if (existingGroup != null) + { + return _groupRepository.UpdateGroup(group); // Обновление через репозиторий + } + return false; // Группа не найдена + } + + public bool RemoveGroupById(int id) // Метод возвращает bool + { + var existingGroup = _groupRepository.GetGroupById(id); + if (existingGroup != null) + { + return _groupRepository.RemoveGroupById(id); // Удаление через репозиторий + } + return false; // Группа не найдена + } + + public Group FindGroupById(int id) // Новый метод для поиска группы + { + return _groupRepository.GetGroupById(id); + } + } +} diff --git a/Demo/Domain/UseCase/UserModel.cs b/Demo/Domain/UseCase/UserModel.cs new file mode 100644 index 0000000..a47bcdb --- /dev/null +++ b/Demo/Domain/UseCase/UserModel.cs @@ -0,0 +1,6 @@ + +internal class UserModel +{ + public string FIO { get; set; } + public Guid Guid { get; set; } +} \ No newline at end of file diff --git a/Demo/Domain/UseCase/UserUseCase.cs b/Demo/Domain/UseCase/UserUseCase.cs new file mode 100644 index 0000000..eab2da8 --- /dev/null +++ b/Demo/Domain/UseCase/UserUseCase.cs @@ -0,0 +1,82 @@ +using Demo.Data.Repository; +using Demo.Domain.Models; +using System; +using System.Collections.Generic; +using System.Linq; + +namespace Demo.Domain.UseCase +{ + public class UserUseCase + { + private readonly UserRepositoryImpl _userRepository; + private readonly GroupRepositoryImpl _groupRepo; + + public UserUseCase(UserRepositoryImpl userRepository, GroupRepositoryImpl groupRepo) + { + _userRepository = userRepository; + _groupRepo = groupRepo; + } + + public List GetAllUsers() + { + return _userRepository.GetAllUsers(); + } + + public User FindUserByGuid(Guid userGuid) + { + return _userRepository.GetByGuid(userGuid); + } + + public List GetUsersAsModels() + { + return _userRepository.GetAllUsers() + .Select(user => new UserModel + { + FIO = user.FIO, + Guid = user.Guid, + }).ToList(); + } + + public UserModel GetUserModelById(Guid id) + { + var user = _userRepository.GetByGuid(id); + return new UserModel + { + FIO = user.FIO, + Guid = user.Guid, + }; + } + + public bool RemoveUserByGuid(Guid userGuid) + { + return _userRepository.RemoveUserByGuid(userGuid); + } + + public UserModel GetUserModelByGuid(Guid userGuid) + { + var user = FindUserByGuid(userGuid); + return new UserModel + { + FIO = user.FIO, + Guid = user.Guid, + }; + } + + public bool UpdateUser(User user) + { + return _userRepository.UpdateUser(user); + } + + // Новый метод для поиска группы по ID + public Group GetGroupById(int id) + { + return _groupRepo.GetGroupById(id); + } + } + + public class UserModel + { + public string FIO { get; set; } + public Guid Guid { get; internal set; } + } +} diff --git a/Demo/Program.cs b/Demo/Program.cs new file mode 100644 index 0000000..2f225c2 --- /dev/null +++ b/Demo/Program.cs @@ -0,0 +1,21 @@ +using Demo.Data.Repository; +using Demo.Domain.UseCase; +using Demo.UI; + +class Program +{ + static void Main(string[] args) + { + var groupRepo = new GroupRepositoryImpl(); + var userRepo = new UserRepositoryImpl(); + var groupUseCase = new GroupUseCase(groupRepo); + var userUseCase = new UserUseCase(userRepo, groupRepo); + var mainMenu = new MainMenu(userUseCase, groupUseCase); + + // Вывод групп при запуске программы + groupRepo.DisplayGroups(); + + // Отображение главного меню + mainMenu.DisplayMenu(); + } +} diff --git a/Demo/UI/MainMenu.cs b/Demo/UI/MainMenu.cs new file mode 100644 index 0000000..81c463d --- /dev/null +++ b/Demo/UI/MainMenu.cs @@ -0,0 +1,242 @@ +using Demo.Domain.UseCase; +using Demo.Domain.Models; // Добавьте эту строку +using System; +using Demo.Data.Repository; + +namespace Demo.UI +{ + public class MainMenu + { + private readonly UserUseCase _userUseCase; + private readonly GroupUseCase _groupUseCase; + + public MainMenu(UserUseCase userUseCase, GroupUseCase groupUseCase) + { + _userUseCase = userUseCase; + _groupUseCase = groupUseCase; + } + + public void DisplayMenu() + { + while (true) + { + Console.Clear(); + Console.WriteLine("1. Показать всех пользователей"); + Console.WriteLine("2. Удалить пользователя по GUID"); + Console.WriteLine("3. Обновить пользователя"); + Console.WriteLine("4. Найти пользователя по GUID"); + Console.WriteLine("5. Показать все группы"); + Console.WriteLine("6. Добавить группу"); + Console.WriteLine("7. Обновить группу"); + Console.WriteLine("8. Удалить группу по ID"); // Добавлено + Console.WriteLine("9. Найти группу по ID"); // Добавлено + Console.WriteLine("0. Выход"); + + var choice = Console.ReadLine(); + switch (choice) + { + case "1": + ShowAllUsers(); + break; + case "2": + RemoveUser(); + break; + case "3": + UpdateUser(); + break; + case "4": + FindUserByGuid(); + break; + case "5": + ShowAllGroups(); + break; + case "6": + AddGroup(); + break; + case "7": + UpdateGroup(); + break; + case "8": // Обработчик для удаления группы + RemoveGroup(); + break; + case "9": // Обработчик для поиска группы по ID + FindGroupById(); + break; + case "0": + return; + default: + Console.WriteLine("Неверный ввод. Попробуйте снова."); + break; + } + + Console.WriteLine("Нажмите любую клавишу для продолжения..."); + Console.ReadKey(); + } + } + + private void ShowAllUsers() + { + var users = _userUseCase.GetAllUsers(); + Console.WriteLine("Все пользователи:"); + foreach (var user in users) + { + Console.WriteLine($"ID: {user.Guid}, Name: {user.FIO}"); + } + } + + private void RemoveUser() + { + Console.Write("Введите GUID пользователя для удаления: "); + if (Guid.TryParse(Console.ReadLine(), out var userGuid)) + { + var removed = _userUseCase.RemoveUserByGuid(userGuid); + if (removed) + { + Console.WriteLine("Пользователь успешно удален."); + } + else + { + Console.WriteLine("Пользователь не найден."); + } + } + else + { + Console.WriteLine("Некорректный GUID."); + } + } + + private void RemoveGroup() + { + Console.Write("Введите ID группы для удаления: "); + if (int.TryParse(Console.ReadLine(), out var groupId)) + { + var removed = _groupUseCase.RemoveGroupById(groupId); + if (removed) + { + Console.WriteLine("Группа успешно удалена."); + } + else + { + Console.WriteLine("Группа не найдена."); + } + } + else + { + Console.WriteLine("Некорректный ID."); + } + } + + private void UpdateUser() + { + Console.Write("Введите GUID пользователя для обновления: "); + if (Guid.TryParse(Console.ReadLine(), out var userGuid)) + { + var user = _userUseCase.FindUserByGuid(userGuid); + if (user != null) + { + Console.Write("Введите новое имя пользователя: "); + var newName = Console.ReadLine(); + user.FIO = newName; // Обновляем имя + + var updated = _userUseCase.UpdateUser(user); + + if (updated) + { + Console.WriteLine("Пользователь обновлен."); + } + else + { + Console.WriteLine("Не удалось обновить пользователя."); + } + } + else + { + Console.WriteLine("Пользователь не найден."); + } + } + else + { + Console.WriteLine("Некорректный GUID."); + } + } + + private void FindUserByGuid() + { + Console.Write("Введите GUID пользователя для поиска: "); + var userGuid = Guid.Parse(Console.ReadLine() ?? string.Empty); + var userModel = _userUseCase.GetUserModelByGuid(userGuid); + + if (userModel != null) + { + Console.WriteLine($"Пользователь найден: ID = {userModel.Guid}, Name = {userModel.FIO}"); + } + else + { + Console.WriteLine("Пользователь не найден."); + } + } + + private void ShowAllGroups() + { + var groups = _groupUseCase.GetAllGroups(); + Console.WriteLine("Все группы:"); + foreach (var group in groups) + { + Console.WriteLine($"ID: {group.Id}, Name: {group.Name}"); + } + } + + private void AddGroup() + { + Console.Write("Введите имя новой группы: "); + var groupName = Console.ReadLine(); + _groupUseCase.AddGroup(new Group { Name = groupName }); + Console.WriteLine("Группа добавлена."); + } + + private void UpdateGroup() + { + Console.Write("Введите ID группы для обновления: "); + if (int.TryParse(Console.ReadLine(), out var groupId)) + { + Console.Write("Введите новое имя группы: "); + var newGroupName = Console.ReadLine(); + var updated = _groupUseCase.UpdateGroup(new Group { Id = groupId, Name = newGroupName }); + + if (updated) + { + Console.WriteLine("Группа обновлена."); + } + else + { + Console.WriteLine("Группа не найдена."); + } + } + else + { + Console.WriteLine("Некорректный ID."); + } + } + + private void FindGroupById() + { + Console.Write("Введите ID группы для поиска: "); + if (int.TryParse(Console.ReadLine(), out var groupId)) + { + var group = _groupUseCase.GetGroupById(groupId); + if (group != null) + { + Console.WriteLine($"Группа найдена: ID = {group.Id}, Name = {group.Name}"); + } + else + { + Console.WriteLine("Группа не найдена."); + } + } + else + { + Console.WriteLine("Некорректный ID."); + } + } + } +} diff --git a/Demo/UI/UserConsole.cs b/Demo/UI/UserConsole.cs new file mode 100644 index 0000000..e4c2b2e --- /dev/null +++ b/Demo/UI/UserConsole.cs @@ -0,0 +1,34 @@ +using Demo.Domain.UseCase; +using Demo.Domain.Models; +using System; +using Demo.Data.Repository; + + +namespace Demo.UI +{ + public class UserConsole + { + private readonly Func _userUseCase; + private readonly UserRepositoryImpl _userRepository; + private readonly GroupRepositoryImpl _groupRepo; + + public UserConsole(Func userUseCase) + { + _userUseCase = userUseCase; + } + + public void DisplayUser(Guid userGuid) + { + try + { + var user = _userRepository.GetByGuid(userGuid); // Уберите лишнюю точку + Console.WriteLine($"GUID: {userGuid}, FIO: {user.FIO}, Group: {user.Group.Name}"); + } + catch (Exception ex) + { + Console.WriteLine(ex.Message); + } + } + } +} + diff --git a/Demo/bin/Debug/net8.0/Demo.deps.json b/Demo/bin/Debug/net8.0/Demo.deps.json new file mode 100644 index 0000000..34d15c4 --- /dev/null +++ b/Demo/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/Demo/bin/Debug/net8.0/Demo.dll b/Demo/bin/Debug/net8.0/Demo.dll new file mode 100644 index 0000000..c4be46d Binary files /dev/null and b/Demo/bin/Debug/net8.0/Demo.dll differ diff --git a/Demo/bin/Debug/net8.0/Demo.exe b/Demo/bin/Debug/net8.0/Demo.exe new file mode 100644 index 0000000..9db6349 Binary files /dev/null and b/Demo/bin/Debug/net8.0/Demo.exe differ diff --git a/Demo/bin/Debug/net8.0/Demo.pdb b/Demo/bin/Debug/net8.0/Demo.pdb new file mode 100644 index 0000000..0995e9e Binary files /dev/null and b/Demo/bin/Debug/net8.0/Demo.pdb differ diff --git a/Demo/bin/Debug/net8.0/Demo.runtimeconfig.json b/Demo/bin/Debug/net8.0/Demo.runtimeconfig.json new file mode 100644 index 0000000..becfaea --- /dev/null +++ b/Demo/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/Demo/obj/Debug/net8.0/.NETCoreApp,Version=v8.0.AssemblyAttributes.cs b/Demo/obj/Debug/net8.0/.NETCoreApp,Version=v8.0.AssemblyAttributes.cs new file mode 100644 index 0000000..2217181 --- /dev/null +++ b/Demo/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/Demo/obj/Debug/net8.0/Demo.AssemblyInfo.cs b/Demo/obj/Debug/net8.0/Demo.AssemblyInfo.cs new file mode 100644 index 0000000..c4e7b2b --- /dev/null +++ b/Demo/obj/Debug/net8.0/Demo.AssemblyInfo.cs @@ -0,0 +1,23 @@ +//------------------------------------------------------------------------------ +// +// Этот код создан программой. +// Исполняемая версия:4.0.30319.42000 +// +// Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае +// повторной генерации кода. +// +//------------------------------------------------------------------------------ + +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/Demo/obj/Debug/net8.0/Demo.AssemblyInfoInputs.cache b/Demo/obj/Debug/net8.0/Demo.AssemblyInfoInputs.cache new file mode 100644 index 0000000..027d67d --- /dev/null +++ b/Demo/obj/Debug/net8.0/Demo.AssemblyInfoInputs.cache @@ -0,0 +1 @@ +eb16b2b154799358c5c37f7f25193ef306ab5592617791ff431f7a24a66875c2 diff --git a/Demo/obj/Debug/net8.0/Demo.GeneratedMSBuildEditorConfig.editorconfig b/Demo/obj/Debug/net8.0/Demo.GeneratedMSBuildEditorConfig.editorconfig new file mode 100644 index 0000000..aff1dd8 --- /dev/null +++ b/Demo/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 = C:\Users\Class_Student\source\repos\asdsa\Demo\ +build_property.EnableComHosting = +build_property.EnableGeneratedComInterfaceComImportInterop = diff --git a/Demo/obj/Debug/net8.0/Demo.GlobalUsings.g.cs b/Demo/obj/Debug/net8.0/Demo.GlobalUsings.g.cs new file mode 100644 index 0000000..8578f3d --- /dev/null +++ b/Demo/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/Demo/obj/Debug/net8.0/Demo.assets.cache b/Demo/obj/Debug/net8.0/Demo.assets.cache new file mode 100644 index 0000000..510440d Binary files /dev/null and b/Demo/obj/Debug/net8.0/Demo.assets.cache differ diff --git a/Demo/obj/Debug/net8.0/Demo.csproj.BuildWithSkipAnalyzers b/Demo/obj/Debug/net8.0/Demo.csproj.BuildWithSkipAnalyzers new file mode 100644 index 0000000..e69de29 diff --git a/Demo/obj/Debug/net8.0/Demo.csproj.CoreCompileInputs.cache b/Demo/obj/Debug/net8.0/Demo.csproj.CoreCompileInputs.cache new file mode 100644 index 0000000..3ca9750 --- /dev/null +++ b/Demo/obj/Debug/net8.0/Demo.csproj.CoreCompileInputs.cache @@ -0,0 +1 @@ +d0ee730d1d1835f67eb27d1cf86d7ec81ad299cfcf11e78f3f81f0db141ce878 diff --git a/Demo/obj/Debug/net8.0/Demo.csproj.FileListAbsolute.txt b/Demo/obj/Debug/net8.0/Demo.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..3f0ffb9 --- /dev/null +++ b/Demo/obj/Debug/net8.0/Demo.csproj.FileListAbsolute.txt @@ -0,0 +1,28 @@ +C:\Users\Class_Student\Source\Repos\presence\Demo\bin\Debug\net8.0\Demo.exe +C:\Users\Class_Student\Source\Repos\presence\Demo\bin\Debug\net8.0\Demo.deps.json +C:\Users\Class_Student\Source\Repos\presence\Demo\bin\Debug\net8.0\Demo.runtimeconfig.json +C:\Users\Class_Student\Source\Repos\presence\Demo\bin\Debug\net8.0\Demo.dll +C:\Users\Class_Student\Source\Repos\presence\Demo\bin\Debug\net8.0\Demo.pdb +C:\Users\Class_Student\Source\Repos\presence\Demo\obj\Debug\net8.0\Demo.GeneratedMSBuildEditorConfig.editorconfig +C:\Users\Class_Student\Source\Repos\presence\Demo\obj\Debug\net8.0\Demo.AssemblyInfoInputs.cache +C:\Users\Class_Student\Source\Repos\presence\Demo\obj\Debug\net8.0\Demo.AssemblyInfo.cs +C:\Users\Class_Student\Source\Repos\presence\Demo\obj\Debug\net8.0\Demo.csproj.CoreCompileInputs.cache +C:\Users\Class_Student\Source\Repos\presence\Demo\obj\Debug\net8.0\Demo.dll +C:\Users\Class_Student\Source\Repos\presence\Demo\obj\Debug\net8.0\refint\Demo.dll +C:\Users\Class_Student\Source\Repos\presence\Demo\obj\Debug\net8.0\Demo.pdb +C:\Users\Class_Student\Source\Repos\presence\Demo\obj\Debug\net8.0\Demo.genruntimeconfig.cache +C:\Users\Class_Student\Source\Repos\presence\Demo\obj\Debug\net8.0\ref\Demo.dll +C:\Users\Class_Student\source\repos\asdsa\Demo\bin\Debug\net8.0\Demo.exe +C:\Users\Class_Student\source\repos\asdsa\Demo\bin\Debug\net8.0\Demo.deps.json +C:\Users\Class_Student\source\repos\asdsa\Demo\bin\Debug\net8.0\Demo.runtimeconfig.json +C:\Users\Class_Student\source\repos\asdsa\Demo\bin\Debug\net8.0\Demo.dll +C:\Users\Class_Student\source\repos\asdsa\Demo\bin\Debug\net8.0\Demo.pdb +C:\Users\Class_Student\source\repos\asdsa\Demo\obj\Debug\net8.0\Demo.GeneratedMSBuildEditorConfig.editorconfig +C:\Users\Class_Student\source\repos\asdsa\Demo\obj\Debug\net8.0\Demo.AssemblyInfoInputs.cache +C:\Users\Class_Student\source\repos\asdsa\Demo\obj\Debug\net8.0\Demo.AssemblyInfo.cs +C:\Users\Class_Student\source\repos\asdsa\Demo\obj\Debug\net8.0\Demo.csproj.CoreCompileInputs.cache +C:\Users\Class_Student\source\repos\asdsa\Demo\obj\Debug\net8.0\Demo.dll +C:\Users\Class_Student\source\repos\asdsa\Demo\obj\Debug\net8.0\refint\Demo.dll +C:\Users\Class_Student\source\repos\asdsa\Demo\obj\Debug\net8.0\Demo.pdb +C:\Users\Class_Student\source\repos\asdsa\Demo\obj\Debug\net8.0\Demo.genruntimeconfig.cache +C:\Users\Class_Student\source\repos\asdsa\Demo\obj\Debug\net8.0\ref\Demo.dll diff --git a/Demo/obj/Debug/net8.0/Demo.dll b/Demo/obj/Debug/net8.0/Demo.dll new file mode 100644 index 0000000..c4be46d Binary files /dev/null and b/Demo/obj/Debug/net8.0/Demo.dll differ diff --git a/Demo/obj/Debug/net8.0/Demo.genruntimeconfig.cache b/Demo/obj/Debug/net8.0/Demo.genruntimeconfig.cache new file mode 100644 index 0000000..0f99993 --- /dev/null +++ b/Demo/obj/Debug/net8.0/Demo.genruntimeconfig.cache @@ -0,0 +1 @@ +928fd77bcfbc91234218b976268decc0a3eb4077a6116088dc1a45f4ad4d8a67 diff --git a/Demo/obj/Debug/net8.0/Demo.pdb b/Demo/obj/Debug/net8.0/Demo.pdb new file mode 100644 index 0000000..0995e9e Binary files /dev/null and b/Demo/obj/Debug/net8.0/Demo.pdb differ diff --git a/Demo/obj/Debug/net8.0/apphost.exe b/Demo/obj/Debug/net8.0/apphost.exe new file mode 100644 index 0000000..9db6349 Binary files /dev/null and b/Demo/obj/Debug/net8.0/apphost.exe differ diff --git a/Demo/obj/Debug/net8.0/ref/Demo.dll b/Demo/obj/Debug/net8.0/ref/Demo.dll new file mode 100644 index 0000000..b79e5ba Binary files /dev/null and b/Demo/obj/Debug/net8.0/ref/Demo.dll differ diff --git a/Demo/obj/Debug/net8.0/refint/Demo.dll b/Demo/obj/Debug/net8.0/refint/Demo.dll new file mode 100644 index 0000000..b79e5ba Binary files /dev/null and b/Demo/obj/Debug/net8.0/refint/Demo.dll differ diff --git a/Demo/obj/Demo.csproj.nuget.dgspec.json b/Demo/obj/Demo.csproj.nuget.dgspec.json new file mode 100644 index 0000000..1bd132c --- /dev/null +++ b/Demo/obj/Demo.csproj.nuget.dgspec.json @@ -0,0 +1,68 @@ +{ + "format": 1, + "restore": { + "C:\\Users\\Class_Student\\source\\repos\\asdsa\\Demo\\Demo.csproj": {} + }, + "projects": { + "C:\\Users\\Class_Student\\source\\repos\\asdsa\\Demo\\Demo.csproj": { + "version": "1.0.0", + "restore": { + "projectUniqueName": "C:\\Users\\Class_Student\\source\\repos\\asdsa\\Demo\\Demo.csproj", + "projectName": "Demo", + "projectPath": "C:\\Users\\Class_Student\\source\\repos\\asdsa\\Demo\\Demo.csproj", + "packagesPath": "C:\\Users\\Class_Student\\.nuget\\packages\\", + "outputPath": "C:\\Users\\Class_Student\\source\\repos\\asdsa\\Demo\\obj\\", + "projectStyle": "PackageReference", + "configFilePaths": [ + "C:\\Users\\Class_Student\\AppData\\Roaming\\NuGet\\NuGet.Config", + "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config" + ], + "originalTargetFrameworks": [ + "net8.0" + ], + "sources": { + "C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {}, + "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": "C:\\Program Files\\dotnet\\sdk\\8.0.400/PortableRuntimeIdentifierGraph.json" + } + } + } + } +} \ No newline at end of file diff --git a/Demo/obj/Demo.csproj.nuget.g.props b/Demo/obj/Demo.csproj.nuget.g.props new file mode 100644 index 0000000..610481e --- /dev/null +++ b/Demo/obj/Demo.csproj.nuget.g.props @@ -0,0 +1,15 @@ + + + + True + NuGet + $(MSBuildThisFileDirectory)project.assets.json + $(UserProfile)\.nuget\packages\ + C:\Users\Class_Student\.nuget\packages\ + PackageReference + 6.11.0 + + + + + \ No newline at end of file diff --git a/Demo/obj/Demo.csproj.nuget.g.targets b/Demo/obj/Demo.csproj.nuget.g.targets new file mode 100644 index 0000000..3dc06ef --- /dev/null +++ b/Demo/obj/Demo.csproj.nuget.g.targets @@ -0,0 +1,2 @@ + + \ No newline at end of file diff --git a/Demo/obj/project.assets.json b/Demo/obj/project.assets.json new file mode 100644 index 0000000..7994c17 --- /dev/null +++ b/Demo/obj/project.assets.json @@ -0,0 +1,73 @@ +{ + "version": 3, + "targets": { + "net8.0": {} + }, + "libraries": {}, + "projectFileDependencyGroups": { + "net8.0": [] + }, + "packageFolders": { + "C:\\Users\\Class_Student\\.nuget\\packages\\": {} + }, + "project": { + "version": "1.0.0", + "restore": { + "projectUniqueName": "C:\\Users\\Class_Student\\source\\repos\\asdsa\\Demo\\Demo.csproj", + "projectName": "Demo", + "projectPath": "C:\\Users\\Class_Student\\source\\repos\\asdsa\\Demo\\Demo.csproj", + "packagesPath": "C:\\Users\\Class_Student\\.nuget\\packages\\", + "outputPath": "C:\\Users\\Class_Student\\source\\repos\\asdsa\\Demo\\obj\\", + "projectStyle": "PackageReference", + "configFilePaths": [ + "C:\\Users\\Class_Student\\AppData\\Roaming\\NuGet\\NuGet.Config", + "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config" + ], + "originalTargetFrameworks": [ + "net8.0" + ], + "sources": { + "C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {}, + "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": "C:\\Program Files\\dotnet\\sdk\\8.0.400/PortableRuntimeIdentifierGraph.json" + } + } + } +} \ No newline at end of file diff --git a/Demo/obj/project.nuget.cache b/Demo/obj/project.nuget.cache new file mode 100644 index 0000000..5c01d82 --- /dev/null +++ b/Demo/obj/project.nuget.cache @@ -0,0 +1,8 @@ +{ + "version": 2, + "dgSpecHash": "XmvvuBlFCKo=", + "success": true, + "projectFilePath": "C:\\Users\\Class_Student\\source\\repos\\asdsa\\Demo\\Demo.csproj", + "expectedPackageFiles": [], + "logs": [] +} \ No newline at end of file