commit df8314a5edf631ad091dc7bfca86e0f6f5c724cb Author: slarny Date: Tue Oct 22 01:57:01 2024 +0300 init diff --git a/Demo1.sln b/Demo1.sln new file mode 100644 index 0000000..005539f --- /dev/null +++ b/Demo1.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.11.35327.3 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Demo1", "Demo1\Demo1.csproj", "{3EB018F9-3F1D-4B8D-91F3-099DE189E5D7}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {3EB018F9-3F1D-4B8D-91F3-099DE189E5D7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {3EB018F9-3F1D-4B8D-91F3-099DE189E5D7}.Debug|Any CPU.Build.0 = Debug|Any CPU + {3EB018F9-3F1D-4B8D-91F3-099DE189E5D7}.Release|Any CPU.ActiveCfg = Release|Any CPU + {3EB018F9-3F1D-4B8D-91F3-099DE189E5D7}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {76CA5681-2E08-41D3-8B53-1A1788AB557D} + EndGlobalSection +EndGlobal diff --git a/Demo1/Data/LocalData/Entity/ClassGroup.cs b/Demo1/Data/LocalData/Entity/ClassGroup.cs new file mode 100644 index 0000000..1ca5100 --- /dev/null +++ b/Demo1/Data/LocalData/Entity/ClassGroup.cs @@ -0,0 +1,8 @@ +namespace Demo.Domain.Models +{ + public class ClassGroup + { + public int Id { get; set; } + public string Name { get; set; } = string.Empty; // Название группы + } +} diff --git a/Demo1/Data/LocalData/Entity/Group.cs b/Demo1/Data/LocalData/Entity/Group.cs new file mode 100644 index 0000000..1540e36 --- /dev/null +++ b/Demo1/Data/LocalData/Entity/Group.cs @@ -0,0 +1,10 @@ +using System; + +namespace Demo.Data.LocalData.Entity +{ + public class Group + { + public int Id { get; set; } + public string Name { get; set; } = string.Empty; // По умолчанию пустая строка + } +} diff --git a/Demo1/Data/LocalData/Entity/LocalUser.cs b/Demo1/Data/LocalData/Entity/LocalUser.cs new file mode 100644 index 0000000..e5770d7 --- /dev/null +++ b/Demo1/Data/LocalData/Entity/LocalUser.cs @@ -0,0 +1,12 @@ +using Demo.Domain.Models; + +namespace Demo.Data.LocalData.Entity +{ + public class LocalUser + { + public Guid Id { get; set; } // Это будет уникальный идентификатор + public string FIO { get; set; } = string.Empty; + public int GroupID { get; set; } + public ClassGroup ClassGroup { get; set; } = new ClassGroup(); + } +} diff --git a/Demo1/Data/LocalData/Entity/Presence.cs b/Demo1/Data/LocalData/Entity/Presence.cs new file mode 100644 index 0000000..30e3467 --- /dev/null +++ b/Demo1/Data/LocalData/Entity/Presence.cs @@ -0,0 +1,12 @@ +using System; + +namespace Demo.Data.LocalData.Entity +{ + public class Presence + { + public required LocalUser Student { get; set; } // добавлено required + public bool IsPresent { get; set; } = true; + public DateOnly AttendanceDate { get; set; } + public int LessonId { get; set; } + } +} diff --git a/Demo1/Data/LocalData/LocalStaticData.cs b/Demo1/Data/LocalData/LocalStaticData.cs new file mode 100644 index 0000000..81d300c --- /dev/null +++ b/Demo1/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 Users { get; } = new List + { + new LocalUser { Id = Guid.Parse("e6b9964d-ea9f-420a-84b9-af9633bbfab9"), FIO = "Иванов Иван Иванович", GroupID = 1 }, + new LocalUser { Id = Guid.Parse("8388d931-5bef-41be-a152-78f1aca980ed"), FIO = "Петров Петр Петрович", GroupID = 2 }, + new LocalUser { Id = Guid.Parse("ed174548-49ed-4503-a902-c970cbf27173"), FIO = "Мендалиев Наиль", GroupID = 3 }, + new LocalUser { Id = Guid.Parse("614c0a23-5bd5-43ae-b48e-d5750afbc282"), FIO = "Сидоров Сидор Сидорович", GroupID = 1 }, + new LocalUser { Id = Guid.Parse("efcc1473-c116-4244-b3f7-f2341a5c3003"), FIO = "Кузнецов Алексей Викторович", GroupID = 2 }, + new LocalUser { Id = Guid.Parse("60640fb3-ace2-4cad-81d5-a0a58bc2dbbd"), FIO = "Смирнова Анна Сергеевна", GroupID = 3 } + }; + + public static List Groups { get; } = new List + { + "ИП1-22", + "ИП1-23", + "С1-23" + }; + } +} diff --git a/Demo1/Data/Repository/GroupRepositoryImpl.cs b/Demo1/Data/Repository/GroupRepositoryImpl.cs new file mode 100644 index 0000000..13a3de5 --- /dev/null +++ b/Demo1/Data/Repository/GroupRepositoryImpl.cs @@ -0,0 +1,27 @@ +using Demo.Data.LocalData.Entity; +using Demo.Domain.Models; +using System.Collections.Generic; + +namespace Demo.Data.Repository +{ + public class GroupRepositoryImpl + { + private List groups; + + public GroupRepositoryImpl() + { + groups = new List(); + } + + public List GetAllGroups() + { + return groups; + } + + public void AddGroup(ClassGroup group) + { + if (group == null) throw new ArgumentNullException(nameof(group)); + groups.Add(group); + } + } +} diff --git a/Demo1/Data/Repository/UserRepositoryImpl.cs b/Demo1/Data/Repository/UserRepositoryImpl.cs new file mode 100644 index 0000000..199eec6 --- /dev/null +++ b/Demo1/Data/Repository/UserRepositoryImpl.cs @@ -0,0 +1,39 @@ +using Demo.Data.LocalData; +using Demo.Data.LocalData.Entity; +using Demo.Domain.Models; +using Demo.Domain.Models; +using System; +using System.Collections.Generic; +using System.Linq; + +namespace Demo.Data.Repository +{ + public class UserRepositoryImpl + { + private List users; + + public UserRepositoryImpl() + { + users = LocalStaticData.Users; // Инициализируем пользователей из статических данных + } + + public List GetAllUsers() + { + return users.Select(u => (User)u).ToList(); + } + + public User GetUserById(Guid userId) // Изменено на Guid + { + var entityUser = users.FirstOrDefault(u => u.Id == userId); + if (entityUser == null) throw new InvalidOperationException("User not found"); + + return (User)entityUser; + } + + public void AddUser(LocalUser user) + { + if (user == null) throw new ArgumentNullException(nameof(user)); + users.Add(user); + } + } +} diff --git a/Demo1/Demo1.csproj b/Demo1/Demo1.csproj new file mode 100644 index 0000000..2150e37 --- /dev/null +++ b/Demo1/Demo1.csproj @@ -0,0 +1,10 @@ + + + + Exe + net8.0 + enable + enable + + + diff --git a/Demo1/Domain/Models/Group.cs b/Demo1/Domain/Models/Group.cs new file mode 100644 index 0000000..2acdc74 --- /dev/null +++ b/Demo1/Domain/Models/Group.cs @@ -0,0 +1,10 @@ +using System; + +namespace Demo.Domain.Models +{ + public class Group + { + public int Id { get; set; } + public string Name { get; set; } = string.Empty; // Переименован на Name + } +} diff --git a/Demo1/Domain/Models/Presence.cs b/Demo1/Domain/Models/Presence.cs new file mode 100644 index 0000000..6b49477 --- /dev/null +++ b/Demo1/Domain/Models/Presence.cs @@ -0,0 +1,13 @@ +using Demo.Domain.Models; +using System; + +namespace Demo.Domain.Models +{ + public class Presence + { + public required User Student { get; set; } // Добавлено required + public bool IsPresent { get; set; } = true; // По умолчанию + public DateOnly AttendanceDate { get; set; } + public int LessonId { get; set; } + } +} \ No newline at end of file diff --git a/Demo1/Domain/Models/User.cs b/Demo1/Domain/Models/User.cs new file mode 100644 index 0000000..bf4854a --- /dev/null +++ b/Demo1/Domain/Models/User.cs @@ -0,0 +1,23 @@ +using System; + +namespace Demo.Domain.Models +{ + public class User + { + public Guid Id { get; set; } + public string FullName { get; set; } = string.Empty; + public ClassGroup ClassGroup { get; set; } = new ClassGroup(); + public int ClassId { get; set; } + + public static explicit operator User(Data.LocalData.Entity.LocalUser v) + { + return new User + { + Id = Guid.NewGuid(), + FullName = v.FIO, + ClassGroup = v.ClassGroup, + ClassId = v.GroupID + }; + } + } +} diff --git a/Demo1/Domain/UseCase/GroupUseCase.cs b/Demo1/Domain/UseCase/GroupUseCase.cs new file mode 100644 index 0000000..8625b45 --- /dev/null +++ b/Demo1/Domain/UseCase/GroupUseCase.cs @@ -0,0 +1,16 @@ +using Demo.Data.Repository; + +namespace Demo.Domain.UseCases +{ + public class GroupUseCase + { + private GroupRepositoryImpl _groupRepository; + + public GroupUseCase(GroupRepositoryImpl groupRepository) // Конструктор + { + _groupRepository = groupRepository; + } + + // Другие методы + } +} diff --git a/Demo1/Domain/UseCase/UserModel.cs b/Demo1/Domain/UseCase/UserModel.cs new file mode 100644 index 0000000..a47bcdb --- /dev/null +++ b/Demo1/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/Demo1/Domain/UseCase/UserUseCase.cs b/Demo1/Domain/UseCase/UserUseCase.cs new file mode 100644 index 0000000..b2a520b --- /dev/null +++ b/Demo1/Domain/UseCase/UserUseCase.cs @@ -0,0 +1,16 @@ +using Demo.Data.Repository; + +namespace Demo.Domain.UseCases +{ + public class UserUseCase + { + private UserRepositoryImpl _userRepository; + + public UserUseCase(UserRepositoryImpl userRepository) // Конструктор + { + _userRepository = userRepository; + } + + // Другие методы + } +} diff --git a/Demo1/Program.cs b/Demo1/Program.cs new file mode 100644 index 0000000..ff05e39 --- /dev/null +++ b/Demo1/Program.cs @@ -0,0 +1,241 @@ +using Demo.Data.LocalData; +using Demo.Data.LocalData.Entity; +using System; +using System.Collections.Generic; +using System.Linq; + +namespace Demo +{ + class Program + { + static void Main(string[] args) + { + bool exit = false; + + while (!exit) + { + 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. Выход"); + Console.Write("Выберите опцию: "); + + var choice = Console.ReadLine(); + + switch (choice) + { + case "1": + ShowUsers(); + break; + case "2": + DeleteUserByGuid(); + break; + case "3": + UpdateUser(); + break; + case "4": + FindUserByGuid(); + break; + case "5": + ShowGroups(); + break; + case "6": + AddGroup(); + break; + case "7": + UpdateGroup(); + break; + case "8": + DeleteGroupById(); + break; + case "9": + FindGroupById(); + break; + case "0": + exit = true; + break; + default: + Console.WriteLine("Неверный выбор. Нажмите любую клавишу для продолжения."); + Console.ReadKey(); + break; + } + } + } + + static void ShowUsers() + { + Console.Clear(); + foreach (var user in LocalStaticData.Users) + { + Console.WriteLine($"ID: {user.Id}, ФИО: {user.FIO}, GroupID: {user.GroupID}"); + } + Console.WriteLine("Нажмите любую клавишу для продолжения."); + Console.ReadKey(); + } + + static void DeleteUserByGuid() + { + Console.Clear(); + Console.Write("Введите GUID пользователя для удаления: "); + if (Guid.TryParse(Console.ReadLine(), out Guid userId)) + { + var user = LocalStaticData.Users.FirstOrDefault(u => u.Id == userId); + if (user != null) + { + LocalStaticData.Users.Remove(user); + Console.WriteLine("Пользователь удалён."); + } + else + { + Console.WriteLine("Пользователь не найден."); + } + } + else + { + Console.WriteLine("Неверный формат GUID."); + } + Console.WriteLine("Нажмите любую клавишу для продолжения."); + Console.ReadKey(); + } + + static void UpdateUser() + { + Console.Clear(); + Console.Write("Введите GUID пользователя для обновления: "); + if (Guid.TryParse(Console.ReadLine(), out Guid userId)) + { + var user = LocalStaticData.Users.FirstOrDefault(u => u.Id == userId); + if (user != null) + { + Console.Write("Введите новое ФИО: "); + user.FIO = Console.ReadLine(); + Console.Write("Введите новый GroupID: "); + if (int.TryParse(Console.ReadLine(), out int groupId)) + { + user.GroupID = groupId; + Console.WriteLine("Пользователь обновлён."); + } + else + { + Console.WriteLine("Неверный формат GroupID."); + } + } + else + { + Console.WriteLine("Пользователь не найден."); + } + } + else + { + Console.WriteLine("Неверный формат GUID."); + } + Console.WriteLine("Нажмите любую клавишу для продолжения."); + Console.ReadKey(); + } + + static void FindUserByGuid() + { + Console.Clear(); + Console.Write("Введите GUID пользователя для поиска: "); + if (Guid.TryParse(Console.ReadLine(), out Guid userId)) + { + var user = LocalStaticData.Users.FirstOrDefault(u => u.Id == userId); + if (user != null) + { + Console.WriteLine($"ID: {user.Id}, ФИО: {user.FIO}, GroupID: {user.GroupID}"); + } + else + { + Console.WriteLine("Пользователь не найден."); + } + } + else + { + Console.WriteLine("Неверный формат GUID."); + } + Console.WriteLine("Нажмите любую клавишу для продолжения."); + Console.ReadKey(); + } + + static void ShowGroups() + { + Console.Clear(); + Console.WriteLine("Список групп:"); + foreach (var group in LocalStaticData.Groups) + { + Console.WriteLine(group); + } + Console.WriteLine("Нажмите любую клавишу для продолжения."); + Console.ReadKey(); + } + + static void AddGroup() + { + Console.Clear(); + Console.Write("Введите название группы для добавления: "); + var groupName = Console.ReadLine(); + LocalStaticData.Groups.Add(groupName); + Console.WriteLine("Группа добавлена."); + Console.WriteLine("Нажмите любую клавишу для продолжения."); + Console.ReadKey(); + } + + static void UpdateGroup() + { + Console.Clear(); + Console.Write("Введите индекс группы для обновления (начиная с 0): "); + if (int.TryParse(Console.ReadLine(), out int index) && index >= 0 && index < LocalStaticData.Groups.Count) + { + Console.Write("Введите новое название группы: "); + LocalStaticData.Groups[index] = Console.ReadLine(); + Console.WriteLine("Группа обновлена."); + } + else + { + Console.WriteLine("Неверный индекс группы."); + } + Console.WriteLine("Нажмите любую клавишу для продолжения."); + Console.ReadKey(); + } + + static void DeleteGroupById() + { + Console.Clear(); + Console.Write("Введите индекс группы для удаления (начиная с 0): "); + if (int.TryParse(Console.ReadLine(), out int index) && index >= 0 && index < LocalStaticData.Groups.Count) + { + LocalStaticData.Groups.RemoveAt(index); + Console.WriteLine("Группа удалена."); + } + else + { + Console.WriteLine("Неверный индекс группы."); + } + Console.WriteLine("Нажмите любую клавишу для продолжения."); + Console.ReadKey(); + } + + static void FindGroupById() + { + Console.Clear(); + Console.Write("Введите индекс группы для поиска (начиная с 0): "); + if (int.TryParse(Console.ReadLine(), out int index) && index >= 0 && index < LocalStaticData.Groups.Count) + { + Console.WriteLine($"Группа: {LocalStaticData.Groups[index]}"); + } + else + { + Console.WriteLine("Группа не найдена."); + } + Console.WriteLine("Нажмите любую клавишу для продолжения."); + Console.ReadKey(); + } + } +} diff --git a/Demo1/UI/MainMenu.cs b/Demo1/UI/MainMenu.cs new file mode 100644 index 0000000..a4e5524 --- /dev/null +++ b/Demo1/UI/MainMenu.cs @@ -0,0 +1,13 @@ +namespace Demo +{ + public static class MainMenu + { + public static void DisplayMenu() // Метод для отображения меню + { + // Логика отображения меню + Console.WriteLine("1. Показать пользователей"); + Console.WriteLine("2. Показать группы"); + // Добавь остальные опции по необходимости + } + } +} diff --git a/Demo1/UI/UserConsole.cs b/Demo1/UI/UserConsole.cs new file mode 100644 index 0000000..5eaa2cd --- /dev/null +++ b/Demo1/UI/UserConsole.cs @@ -0,0 +1,20 @@ +using Demo.Domain.Models; + +namespace Demo.UI +{ + public class UserConsole + { + private readonly Demo.Domain.Models.User user; + + public UserConsole(Demo.Data.LocalData.Entity.LocalUser entityUser) // Принимаем Entity User + { + // Преобразуем entityUser в Domain User + this.user = (Demo.Domain.Models.User)entityUser; + } + + public void DisplayUserInfo() + { + Console.WriteLine($"Имя: {user.FullName}, ID: {user.Id}"); + } + } +} diff --git a/Demo1/bin/Debug/net8.0/Demo1.deps.json b/Demo1/bin/Debug/net8.0/Demo1.deps.json new file mode 100644 index 0000000..7dfa8f6 --- /dev/null +++ b/Demo1/bin/Debug/net8.0/Demo1.deps.json @@ -0,0 +1,23 @@ +{ + "runtimeTarget": { + "name": ".NETCoreApp,Version=v8.0", + "signature": "" + }, + "compilationOptions": {}, + "targets": { + ".NETCoreApp,Version=v8.0": { + "Demo1/1.0.0": { + "runtime": { + "Demo1.dll": {} + } + } + } + }, + "libraries": { + "Demo1/1.0.0": { + "type": "project", + "serviceable": false, + "sha512": "" + } + } +} \ No newline at end of file diff --git a/Demo1/bin/Debug/net8.0/Demo1.dll b/Demo1/bin/Debug/net8.0/Demo1.dll new file mode 100644 index 0000000..35f32ea Binary files /dev/null and b/Demo1/bin/Debug/net8.0/Demo1.dll differ diff --git a/Demo1/bin/Debug/net8.0/Demo1.exe b/Demo1/bin/Debug/net8.0/Demo1.exe new file mode 100644 index 0000000..3d9e9ee Binary files /dev/null and b/Demo1/bin/Debug/net8.0/Demo1.exe differ diff --git a/Demo1/bin/Debug/net8.0/Demo1.pdb b/Demo1/bin/Debug/net8.0/Demo1.pdb new file mode 100644 index 0000000..b891f9f Binary files /dev/null and b/Demo1/bin/Debug/net8.0/Demo1.pdb differ diff --git a/Demo1/bin/Debug/net8.0/Demo1.runtimeconfig.json b/Demo1/bin/Debug/net8.0/Demo1.runtimeconfig.json new file mode 100644 index 0000000..becfaea --- /dev/null +++ b/Demo1/bin/Debug/net8.0/Demo1.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/Demo1/obj/Debug/net8.0/.NETCoreApp,Version=v8.0.AssemblyAttributes.cs b/Demo1/obj/Debug/net8.0/.NETCoreApp,Version=v8.0.AssemblyAttributes.cs new file mode 100644 index 0000000..2217181 --- /dev/null +++ b/Demo1/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/Demo1/obj/Debug/net8.0/Demo1.AssemblyInfo.cs b/Demo1/obj/Debug/net8.0/Demo1.AssemblyInfo.cs new file mode 100644 index 0000000..48197e3 --- /dev/null +++ b/Demo1/obj/Debug/net8.0/Demo1.AssemblyInfo.cs @@ -0,0 +1,23 @@ +//------------------------------------------------------------------------------ +// +// Этот код создан программой. +// Исполняемая версия:4.0.30319.42000 +// +// Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае +// повторной генерации кода. +// +//------------------------------------------------------------------------------ + +using System; +using System.Reflection; + +[assembly: System.Reflection.AssemblyCompanyAttribute("Demo1")] +[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] +[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")] +[assembly: System.Reflection.AssemblyProductAttribute("Demo1")] +[assembly: System.Reflection.AssemblyTitleAttribute("Demo1")] +[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] + +// Создано классом WriteCodeFragment MSBuild. + diff --git a/Demo1/obj/Debug/net8.0/Demo1.AssemblyInfoInputs.cache b/Demo1/obj/Debug/net8.0/Demo1.AssemblyInfoInputs.cache new file mode 100644 index 0000000..72e3aea --- /dev/null +++ b/Demo1/obj/Debug/net8.0/Demo1.AssemblyInfoInputs.cache @@ -0,0 +1 @@ +5fbaf1fba7321e7781b2aa403ef801043346e052a9547caf8ba08c3ad840adff diff --git a/Demo1/obj/Debug/net8.0/Demo1.GeneratedMSBuildEditorConfig.editorconfig b/Demo1/obj/Debug/net8.0/Demo1.GeneratedMSBuildEditorConfig.editorconfig new file mode 100644 index 0000000..6d8bc22 --- /dev/null +++ b/Demo1/obj/Debug/net8.0/Demo1.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 = Demo1 +build_property.ProjectDir = C:\Users\Наиль\source\repos\Demo1\Demo1\ +build_property.EnableComHosting = +build_property.EnableGeneratedComInterfaceComImportInterop = diff --git a/Demo1/obj/Debug/net8.0/Demo1.GlobalUsings.g.cs b/Demo1/obj/Debug/net8.0/Demo1.GlobalUsings.g.cs new file mode 100644 index 0000000..8578f3d --- /dev/null +++ b/Demo1/obj/Debug/net8.0/Demo1.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/Demo1/obj/Debug/net8.0/Demo1.assets.cache b/Demo1/obj/Debug/net8.0/Demo1.assets.cache new file mode 100644 index 0000000..1b3cb63 Binary files /dev/null and b/Demo1/obj/Debug/net8.0/Demo1.assets.cache differ diff --git a/Demo1/obj/Debug/net8.0/Demo1.csproj.BuildWithSkipAnalyzers b/Demo1/obj/Debug/net8.0/Demo1.csproj.BuildWithSkipAnalyzers new file mode 100644 index 0000000..e69de29 diff --git a/Demo1/obj/Debug/net8.0/Demo1.csproj.CoreCompileInputs.cache b/Demo1/obj/Debug/net8.0/Demo1.csproj.CoreCompileInputs.cache new file mode 100644 index 0000000..59e8c5c --- /dev/null +++ b/Demo1/obj/Debug/net8.0/Demo1.csproj.CoreCompileInputs.cache @@ -0,0 +1 @@ +7e72cf7cbdf57e2c918583bbca5eac209a31da85ce462b230f074698e104f9b7 diff --git a/Demo1/obj/Debug/net8.0/Demo1.csproj.FileListAbsolute.txt b/Demo1/obj/Debug/net8.0/Demo1.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..7ec4321 --- /dev/null +++ b/Demo1/obj/Debug/net8.0/Demo1.csproj.FileListAbsolute.txt @@ -0,0 +1,14 @@ +C:\Users\Наиль\source\repos\Demo1\Demo1\obj\Debug\net8.0\Demo1.GeneratedMSBuildEditorConfig.editorconfig +C:\Users\Наиль\source\repos\Demo1\Demo1\obj\Debug\net8.0\Demo1.AssemblyInfoInputs.cache +C:\Users\Наиль\source\repos\Demo1\Demo1\obj\Debug\net8.0\Demo1.AssemblyInfo.cs +C:\Users\Наиль\source\repos\Demo1\Demo1\obj\Debug\net8.0\Demo1.csproj.CoreCompileInputs.cache +C:\Users\Наиль\source\repos\Demo1\Demo1\bin\Debug\net8.0\Demo1.exe +C:\Users\Наиль\source\repos\Demo1\Demo1\bin\Debug\net8.0\Demo1.deps.json +C:\Users\Наиль\source\repos\Demo1\Demo1\bin\Debug\net8.0\Demo1.runtimeconfig.json +C:\Users\Наиль\source\repos\Demo1\Demo1\bin\Debug\net8.0\Demo1.dll +C:\Users\Наиль\source\repos\Demo1\Demo1\bin\Debug\net8.0\Demo1.pdb +C:\Users\Наиль\source\repos\Demo1\Demo1\obj\Debug\net8.0\Demo1.dll +C:\Users\Наиль\source\repos\Demo1\Demo1\obj\Debug\net8.0\refint\Demo1.dll +C:\Users\Наиль\source\repos\Demo1\Demo1\obj\Debug\net8.0\Demo1.pdb +C:\Users\Наиль\source\repos\Demo1\Demo1\obj\Debug\net8.0\Demo1.genruntimeconfig.cache +C:\Users\Наиль\source\repos\Demo1\Demo1\obj\Debug\net8.0\ref\Demo1.dll diff --git a/Demo1/obj/Debug/net8.0/Demo1.dll b/Demo1/obj/Debug/net8.0/Demo1.dll new file mode 100644 index 0000000..35f32ea Binary files /dev/null and b/Demo1/obj/Debug/net8.0/Demo1.dll differ diff --git a/Demo1/obj/Debug/net8.0/Demo1.genruntimeconfig.cache b/Demo1/obj/Debug/net8.0/Demo1.genruntimeconfig.cache new file mode 100644 index 0000000..e29e56c --- /dev/null +++ b/Demo1/obj/Debug/net8.0/Demo1.genruntimeconfig.cache @@ -0,0 +1 @@ +c64df823fc400ff5eb349579152f2d629fb693f3d8cd5be1e9a479774d096f64 diff --git a/Demo1/obj/Debug/net8.0/Demo1.pdb b/Demo1/obj/Debug/net8.0/Demo1.pdb new file mode 100644 index 0000000..b891f9f Binary files /dev/null and b/Demo1/obj/Debug/net8.0/Demo1.pdb differ diff --git a/Demo1/obj/Debug/net8.0/apphost.exe b/Demo1/obj/Debug/net8.0/apphost.exe new file mode 100644 index 0000000..3d9e9ee Binary files /dev/null and b/Demo1/obj/Debug/net8.0/apphost.exe differ diff --git a/Demo1/obj/Debug/net8.0/ref/Demo1.dll b/Demo1/obj/Debug/net8.0/ref/Demo1.dll new file mode 100644 index 0000000..9fa4188 Binary files /dev/null and b/Demo1/obj/Debug/net8.0/ref/Demo1.dll differ diff --git a/Demo1/obj/Debug/net8.0/refint/Demo1.dll b/Demo1/obj/Debug/net8.0/refint/Demo1.dll new file mode 100644 index 0000000..9fa4188 Binary files /dev/null and b/Demo1/obj/Debug/net8.0/refint/Demo1.dll differ diff --git a/Demo1/obj/Demo1.csproj.nuget.dgspec.json b/Demo1/obj/Demo1.csproj.nuget.dgspec.json new file mode 100644 index 0000000..d1a9f0f --- /dev/null +++ b/Demo1/obj/Demo1.csproj.nuget.dgspec.json @@ -0,0 +1,72 @@ +{ + "format": 1, + "restore": { + "C:\\Users\\Наиль\\source\\repos\\Demo1\\Demo1\\Demo1.csproj": {} + }, + "projects": { + "C:\\Users\\Наиль\\source\\repos\\Demo1\\Demo1\\Demo1.csproj": { + "version": "1.0.0", + "restore": { + "projectUniqueName": "C:\\Users\\Наиль\\source\\repos\\Demo1\\Demo1\\Demo1.csproj", + "projectName": "Demo1", + "projectPath": "C:\\Users\\Наиль\\source\\repos\\Demo1\\Demo1\\Demo1.csproj", + "packagesPath": "C:\\Users\\Наиль\\.nuget\\packages\\", + "outputPath": "C:\\Users\\Наиль\\source\\repos\\Demo1\\Demo1\\obj\\", + "projectStyle": "PackageReference", + "fallbackFolders": [ + "C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages" + ], + "configFilePaths": [ + "C:\\Users\\Наиль\\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" + ], + "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.403/PortableRuntimeIdentifierGraph.json" + } + } + } + } +} \ No newline at end of file diff --git a/Demo1/obj/Demo1.csproj.nuget.g.props b/Demo1/obj/Demo1.csproj.nuget.g.props new file mode 100644 index 0000000..59f2cd3 --- /dev/null +++ b/Demo1/obj/Demo1.csproj.nuget.g.props @@ -0,0 +1,16 @@ + + + + True + NuGet + $(MSBuildThisFileDirectory)project.assets.json + $(UserProfile)\.nuget\packages\ + C:\Users\Наиль\.nuget\packages\;C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages + PackageReference + 6.11.1 + + + + + + \ No newline at end of file diff --git a/Demo1/obj/Demo1.csproj.nuget.g.targets b/Demo1/obj/Demo1.csproj.nuget.g.targets new file mode 100644 index 0000000..3dc06ef --- /dev/null +++ b/Demo1/obj/Demo1.csproj.nuget.g.targets @@ -0,0 +1,2 @@ + + \ No newline at end of file diff --git a/Demo1/obj/project.assets.json b/Demo1/obj/project.assets.json new file mode 100644 index 0000000..fa21512 --- /dev/null +++ b/Demo1/obj/project.assets.json @@ -0,0 +1,78 @@ +{ + "version": 3, + "targets": { + "net8.0": {} + }, + "libraries": {}, + "projectFileDependencyGroups": { + "net8.0": [] + }, + "packageFolders": { + "C:\\Users\\Наиль\\.nuget\\packages\\": {}, + "C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages": {} + }, + "project": { + "version": "1.0.0", + "restore": { + "projectUniqueName": "C:\\Users\\Наиль\\source\\repos\\Demo1\\Demo1\\Demo1.csproj", + "projectName": "Demo1", + "projectPath": "C:\\Users\\Наиль\\source\\repos\\Demo1\\Demo1\\Demo1.csproj", + "packagesPath": "C:\\Users\\Наиль\\.nuget\\packages\\", + "outputPath": "C:\\Users\\Наиль\\source\\repos\\Demo1\\Demo1\\obj\\", + "projectStyle": "PackageReference", + "fallbackFolders": [ + "C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages" + ], + "configFilePaths": [ + "C:\\Users\\Наиль\\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" + ], + "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.403/PortableRuntimeIdentifierGraph.json" + } + } + } +} \ No newline at end of file diff --git a/Demo1/obj/project.nuget.cache b/Demo1/obj/project.nuget.cache new file mode 100644 index 0000000..df966af --- /dev/null +++ b/Demo1/obj/project.nuget.cache @@ -0,0 +1,8 @@ +{ + "version": 2, + "dgSpecHash": "3rJkBUv8GeU=", + "success": true, + "projectFilePath": "C:\\Users\\Наиль\\source\\repos\\Demo1\\Demo1\\Demo1.csproj", + "expectedPackageFiles": [], + "logs": [] +} \ No newline at end of file