diff --git a/almukhammetov_bulat_lab_2/Part1/.vs/Part1/DesignTimeBuild/.dtbcache.v2 b/almukhammetov_bulat_lab_2/Part1/.vs/Part1/DesignTimeBuild/.dtbcache.v2 new file mode 100644 index 0000000..81c58f7 Binary files /dev/null and b/almukhammetov_bulat_lab_2/Part1/.vs/Part1/DesignTimeBuild/.dtbcache.v2 differ diff --git a/almukhammetov_bulat_lab_2/Part1/.vs/Part1/v17/.futdcache.v2 b/almukhammetov_bulat_lab_2/Part1/.vs/Part1/v17/.futdcache.v2 new file mode 100644 index 0000000..b8869ce Binary files /dev/null and b/almukhammetov_bulat_lab_2/Part1/.vs/Part1/v17/.futdcache.v2 differ diff --git a/almukhammetov_bulat_lab_2/Part1/.vs/Part1/v17/.suo b/almukhammetov_bulat_lab_2/Part1/.vs/Part1/v17/.suo new file mode 100644 index 0000000..0be4bb7 Binary files /dev/null and b/almukhammetov_bulat_lab_2/Part1/.vs/Part1/v17/.suo differ diff --git a/almukhammetov_bulat_lab_2/Part1/.vs/ProjectEvaluation/part1.metadata.v7.bin b/almukhammetov_bulat_lab_2/Part1/.vs/ProjectEvaluation/part1.metadata.v7.bin new file mode 100644 index 0000000..50792e7 Binary files /dev/null and b/almukhammetov_bulat_lab_2/Part1/.vs/ProjectEvaluation/part1.metadata.v7.bin differ diff --git a/almukhammetov_bulat_lab_2/Part1/.vs/ProjectEvaluation/part1.projects.v7.bin b/almukhammetov_bulat_lab_2/Part1/.vs/ProjectEvaluation/part1.projects.v7.bin new file mode 100644 index 0000000..88457a5 Binary files /dev/null and b/almukhammetov_bulat_lab_2/Part1/.vs/ProjectEvaluation/part1.projects.v7.bin differ diff --git a/almukhammetov_bulat_lab_2/Part1/Dockerfile b/almukhammetov_bulat_lab_2/Part1/Dockerfile new file mode 100644 index 0000000..e88e2ef --- /dev/null +++ b/almukhammetov_bulat_lab_2/Part1/Dockerfile @@ -0,0 +1,32 @@ +# .NET Runtime +FROM mcr.microsoft.com/dotnet/runtime:6.0 AS base +# +WORKDIR /app + +# .NET SDK +FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build +# +WORKDIR /src +# +COPY ["Part1.csproj", "."] +RUN dotnet restore "./Part1.csproj" +# +COPY . . +# +WORKDIR "/src/." +# Release +RUN dotnet build "Part1.csproj" -c Release -o /app/build + +# +FROM build AS publish +# Release +RUN dotnet publish "Part1.csproj" -c Release -o /app/publish /p:UseAppHost=false + +# .NET Runtime +FROM base AS final +# +WORKDIR /app +# publish +COPY --from=publish /app/publish . +# +ENTRYPOINT ["dotnet", "Part1.dll"] diff --git a/almukhammetov_bulat_lab_2/Part1/Part1.csproj b/almukhammetov_bulat_lab_2/Part1/Part1.csproj new file mode 100644 index 0000000..4cbb247 --- /dev/null +++ b/almukhammetov_bulat_lab_2/Part1/Part1.csproj @@ -0,0 +1,16 @@ + + + + Exe + net6.0 + enable + enable + Linux + . + + + + + + + diff --git a/almukhammetov_bulat_lab_2/Part1/Part1.csproj.user b/almukhammetov_bulat_lab_2/Part1/Part1.csproj.user new file mode 100644 index 0000000..b759cb6 --- /dev/null +++ b/almukhammetov_bulat_lab_2/Part1/Part1.csproj.user @@ -0,0 +1,9 @@ + + + + Docker + + + ProjectDebugger + + \ No newline at end of file diff --git a/almukhammetov_bulat_lab_2/Part1/Part1.sln b/almukhammetov_bulat_lab_2/Part1/Part1.sln new file mode 100644 index 0000000..143e00a --- /dev/null +++ b/almukhammetov_bulat_lab_2/Part1/Part1.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.7.34018.315 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Part1", "Part1.csproj", "{580DE38F-6CC0-4B13-A1CA-10AFD2316A7E}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {580DE38F-6CC0-4B13-A1CA-10AFD2316A7E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {580DE38F-6CC0-4B13-A1CA-10AFD2316A7E}.Debug|Any CPU.Build.0 = Debug|Any CPU + {580DE38F-6CC0-4B13-A1CA-10AFD2316A7E}.Release|Any CPU.ActiveCfg = Release|Any CPU + {580DE38F-6CC0-4B13-A1CA-10AFD2316A7E}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {C15D9C92-B603-4D55-B53A-D42F2092B83B} + EndGlobalSection +EndGlobal diff --git a/almukhammetov_bulat_lab_2/Part1/Program.cs b/almukhammetov_bulat_lab_2/Part1/Program.cs new file mode 100644 index 0000000..314a061 --- /dev/null +++ b/almukhammetov_bulat_lab_2/Part1/Program.cs @@ -0,0 +1,55 @@ +var directoryPath = Environment.GetEnvironmentVariable("APP_DIR"); +if (directoryPath == null) +{ + Console.WriteLine("Не найден переменная среды адреса"); + return; +} + +var inputFilesPath = Path.Combine(directoryPath, "data"); +var outputFilePath = Path.Combine(directoryPath, "result"); + +Console.WriteLine($"Входная папка: {inputFilesPath}"); +Console.WriteLine($"Выходная папка: {outputFilePath}"); + +try +{ + if (Directory.Exists(inputFilesPath)) + { + var files = Directory.GetFiles(inputFilesPath); + + if (files.Length > 0) + { + var fileWithMostLines = files + .Select(filePath => new { FilePath = filePath, LineCount = File.ReadLines(filePath).Count() }) + .OrderByDescending(x => x.LineCount) + .First(); + + Console.WriteLine($"Файл с наибольшим количеством строк: {fileWithMostLines.FilePath}"); + Console.WriteLine($"Количество строк в файле: {fileWithMostLines.LineCount}"); + + string outputFileName = "inputFileFor2Program.txt"; + string outputFilePathWithFileName = Path.Combine(outputFilePath, outputFileName); + + if (File.Exists(outputFilePathWithFileName)) + { + Console.WriteLine($"Файл {outputFilePathWithFileName} уже существует удалим его"); + File.Delete(outputFilePathWithFileName); + } + File.Copy(fileWithMostLines.FilePath, outputFilePathWithFileName); + + Console.WriteLine($"Файл перемещен в {outputFilePathWithFileName}"); + } + else + { + Console.WriteLine("В директории нет файлов."); + } + } + else + { + Console.WriteLine("Указанной директории не существует."); + } +} +catch (Exception ex) +{ + Console.WriteLine(ex.ToString()); +} \ No newline at end of file diff --git a/almukhammetov_bulat_lab_2/Part1/Properties/launchSettings.json b/almukhammetov_bulat_lab_2/Part1/Properties/launchSettings.json new file mode 100644 index 0000000..9fdd729 --- /dev/null +++ b/almukhammetov_bulat_lab_2/Part1/Properties/launchSettings.json @@ -0,0 +1,10 @@ +{ + "profiles": { + "Part1": { + "commandName": "Project" + }, + "Docker": { + "commandName": "Docker" + } + } +} \ No newline at end of file diff --git a/almukhammetov_bulat_lab_2/Part1/bin/Debug/net6.0/Part1.deps.json b/almukhammetov_bulat_lab_2/Part1/bin/Debug/net6.0/Part1.deps.json new file mode 100644 index 0000000..41f1a97 --- /dev/null +++ b/almukhammetov_bulat_lab_2/Part1/bin/Debug/net6.0/Part1.deps.json @@ -0,0 +1,34 @@ +{ + "runtimeTarget": { + "name": ".NETCoreApp,Version=v6.0", + "signature": "" + }, + "compilationOptions": {}, + "targets": { + ".NETCoreApp,Version=v6.0": { + "Part1/1.0.0": { + "dependencies": { + "Microsoft.VisualStudio.Azure.Containers.Tools.Targets": "1.19.4" + }, + "runtime": { + "Part1.dll": {} + } + }, + "Microsoft.VisualStudio.Azure.Containers.Tools.Targets/1.19.4": {} + } + }, + "libraries": { + "Part1/1.0.0": { + "type": "project", + "serviceable": false, + "sha512": "" + }, + "Microsoft.VisualStudio.Azure.Containers.Tools.Targets/1.19.4": { + "type": "package", + "serviceable": true, + "sha512": "sha512-aKxpRAUIxDrnSnyr7xJWGixOBgsB7Z4oHpWRkpRzzq04kfze4mN7944gRc4X9H2U5KG3A/btF74kavkO8KXqCg==", + "path": "microsoft.visualstudio.azure.containers.tools.targets/1.19.4", + "hashPath": "microsoft.visualstudio.azure.containers.tools.targets.1.19.4.nupkg.sha512" + } + } +} \ No newline at end of file diff --git a/almukhammetov_bulat_lab_2/Part1/bin/Debug/net6.0/Part1.dll b/almukhammetov_bulat_lab_2/Part1/bin/Debug/net6.0/Part1.dll new file mode 100644 index 0000000..22e2878 Binary files /dev/null and b/almukhammetov_bulat_lab_2/Part1/bin/Debug/net6.0/Part1.dll differ diff --git a/almukhammetov_bulat_lab_2/Part1/bin/Debug/net6.0/Part1.exe b/almukhammetov_bulat_lab_2/Part1/bin/Debug/net6.0/Part1.exe new file mode 100644 index 0000000..17a5d11 Binary files /dev/null and b/almukhammetov_bulat_lab_2/Part1/bin/Debug/net6.0/Part1.exe differ diff --git a/almukhammetov_bulat_lab_2/Part1/bin/Debug/net6.0/Part1.pdb b/almukhammetov_bulat_lab_2/Part1/bin/Debug/net6.0/Part1.pdb new file mode 100644 index 0000000..c51dd2a Binary files /dev/null and b/almukhammetov_bulat_lab_2/Part1/bin/Debug/net6.0/Part1.pdb differ diff --git a/almukhammetov_bulat_lab_2/Part1/bin/Debug/net6.0/Part1.runtimeconfig.json b/almukhammetov_bulat_lab_2/Part1/bin/Debug/net6.0/Part1.runtimeconfig.json new file mode 100644 index 0000000..4986d16 --- /dev/null +++ b/almukhammetov_bulat_lab_2/Part1/bin/Debug/net6.0/Part1.runtimeconfig.json @@ -0,0 +1,9 @@ +{ + "runtimeOptions": { + "tfm": "net6.0", + "framework": { + "name": "Microsoft.NETCore.App", + "version": "6.0.0" + } + } +} \ No newline at end of file diff --git a/almukhammetov_bulat_lab_2/Part1/obj/Container/AbsoluteOutputAssemblyPath.cache b/almukhammetov_bulat_lab_2/Part1/obj/Container/AbsoluteOutputAssemblyPath.cache new file mode 100644 index 0000000..8e221a5 --- /dev/null +++ b/almukhammetov_bulat_lab_2/Part1/obj/Container/AbsoluteOutputAssemblyPath.cache @@ -0,0 +1 @@ +/app/bin/Debug/net6.0/Part1.dll \ No newline at end of file diff --git a/almukhammetov_bulat_lab_2/Part1/obj/Container/AdditionalProbingPaths.cache b/almukhammetov_bulat_lab_2/Part1/obj/Container/AdditionalProbingPaths.cache new file mode 100644 index 0000000..927f4f6 --- /dev/null +++ b/almukhammetov_bulat_lab_2/Part1/obj/Container/AdditionalProbingPaths.cache @@ -0,0 +1 @@ +--additionalProbingPath /.nuget/fallbackpackages \ No newline at end of file diff --git a/almukhammetov_bulat_lab_2/Part1/obj/Container/ContainerCreationResult.cache b/almukhammetov_bulat_lab_2/Part1/obj/Container/ContainerCreationResult.cache new file mode 100644 index 0000000..7822ebe --- /dev/null +++ b/almukhammetov_bulat_lab_2/Part1/obj/Container/ContainerCreationResult.cache @@ -0,0 +1 @@ +NoConflict \ No newline at end of file diff --git a/almukhammetov_bulat_lab_2/Part1/obj/Container/ContainerDevelopmentMode.cache b/almukhammetov_bulat_lab_2/Part1/obj/Container/ContainerDevelopmentMode.cache new file mode 100644 index 0000000..565a238 --- /dev/null +++ b/almukhammetov_bulat_lab_2/Part1/obj/Container/ContainerDevelopmentMode.cache @@ -0,0 +1 @@ +Fast \ No newline at end of file diff --git a/almukhammetov_bulat_lab_2/Part1/obj/Container/ContainerId.cache b/almukhammetov_bulat_lab_2/Part1/obj/Container/ContainerId.cache new file mode 100644 index 0000000..48332b1 --- /dev/null +++ b/almukhammetov_bulat_lab_2/Part1/obj/Container/ContainerId.cache @@ -0,0 +1 @@ +0e4a486e8d81d00f192d2816ae8892d1536fbf86ae98681bec683af12578939b \ No newline at end of file diff --git a/almukhammetov_bulat_lab_2/Part1/obj/Container/ContainerName.cache b/almukhammetov_bulat_lab_2/Part1/obj/Container/ContainerName.cache new file mode 100644 index 0000000..4b668a1 --- /dev/null +++ b/almukhammetov_bulat_lab_2/Part1/obj/Container/ContainerName.cache @@ -0,0 +1 @@ +Part1 \ No newline at end of file diff --git a/almukhammetov_bulat_lab_2/Part1/obj/Container/ContainerOperatingSystemFlavor.cache b/almukhammetov_bulat_lab_2/Part1/obj/Container/ContainerOperatingSystemFlavor.cache new file mode 100644 index 0000000..c486999 --- /dev/null +++ b/almukhammetov_bulat_lab_2/Part1/obj/Container/ContainerOperatingSystemFlavor.cache @@ -0,0 +1 @@ +Unknown \ No newline at end of file diff --git a/almukhammetov_bulat_lab_2/Part1/obj/Container/ContainerRunContext.cache b/almukhammetov_bulat_lab_2/Part1/obj/Container/ContainerRunContext.cache new file mode 100644 index 0000000..0cb10ab --- /dev/null +++ b/almukhammetov_bulat_lab_2/Part1/obj/Container/ContainerRunContext.cache @@ -0,0 +1 @@ +TTrD3JA/y3l0cS9dhrio/jKEUhxkBVsj/mloUOffZUA= \ No newline at end of file diff --git a/almukhammetov_bulat_lab_2/Part1/obj/Container/DebuggeeArguments.cache b/almukhammetov_bulat_lab_2/Part1/obj/Container/DebuggeeArguments.cache new file mode 100644 index 0000000..e69de29 diff --git a/almukhammetov_bulat_lab_2/Part1/obj/Container/DebuggeeKillProcessCommand.cache b/almukhammetov_bulat_lab_2/Part1/obj/Container/DebuggeeKillProcessCommand.cache new file mode 100644 index 0000000..e69de29 diff --git a/almukhammetov_bulat_lab_2/Part1/obj/Container/DebuggeeProgram.cache b/almukhammetov_bulat_lab_2/Part1/obj/Container/DebuggeeProgram.cache new file mode 100644 index 0000000..e69de29 diff --git a/almukhammetov_bulat_lab_2/Part1/obj/Container/DebuggeeWorkingDirectory.cache b/almukhammetov_bulat_lab_2/Part1/obj/Container/DebuggeeWorkingDirectory.cache new file mode 100644 index 0000000..e69de29 diff --git a/almukhammetov_bulat_lab_2/Part1/obj/Container/FastModeProjectMountDirectory.cache b/almukhammetov_bulat_lab_2/Part1/obj/Container/FastModeProjectMountDirectory.cache new file mode 100644 index 0000000..e69de29 diff --git a/almukhammetov_bulat_lab_2/Part1/obj/Container/ImageBuildContext.cache b/almukhammetov_bulat_lab_2/Part1/obj/Container/ImageBuildContext.cache new file mode 100644 index 0000000..8a3b021 --- /dev/null +++ b/almukhammetov_bulat_lab_2/Part1/obj/Container/ImageBuildContext.cache @@ -0,0 +1 @@ +sZOqnUMBAK57oEsGNoqXdIkxerNH1aGLv3IbvWssdAk= \ No newline at end of file diff --git a/almukhammetov_bulat_lab_2/Part1/obj/Container/ImageId.cache b/almukhammetov_bulat_lab_2/Part1/obj/Container/ImageId.cache new file mode 100644 index 0000000..1223876 --- /dev/null +++ b/almukhammetov_bulat_lab_2/Part1/obj/Container/ImageId.cache @@ -0,0 +1 @@ +sha256:dd0aa4847bd3e3b9d3970b1dd1e90ebd2e90e731873663167e3374c01b19fec1 \ No newline at end of file diff --git a/almukhammetov_bulat_lab_2/Part1/obj/Container/OperatingSystemName.cache b/almukhammetov_bulat_lab_2/Part1/obj/Container/OperatingSystemName.cache new file mode 100644 index 0000000..3ab1070 --- /dev/null +++ b/almukhammetov_bulat_lab_2/Part1/obj/Container/OperatingSystemName.cache @@ -0,0 +1 @@ +Linux \ No newline at end of file diff --git a/almukhammetov_bulat_lab_2/Part1/obj/Container/TargetFramework.cache b/almukhammetov_bulat_lab_2/Part1/obj/Container/TargetFramework.cache new file mode 100644 index 0000000..8d2863a --- /dev/null +++ b/almukhammetov_bulat_lab_2/Part1/obj/Container/TargetFramework.cache @@ -0,0 +1 @@ +DotNetCore \ No newline at end of file diff --git a/almukhammetov_bulat_lab_2/Part1/obj/Container/VolumeMappings.cache b/almukhammetov_bulat_lab_2/Part1/obj/Container/VolumeMappings.cache new file mode 100644 index 0000000..d276d10 --- /dev/null +++ b/almukhammetov_bulat_lab_2/Part1/obj/Container/VolumeMappings.cache @@ -0,0 +1 @@ +{"C:\\Users\\73bul\\vsdbg\\vs2017u5":"/remote_debugger","C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\MSBuild\\Sdks\\Microsoft.Docker.Sdk\\tools\\TokenService.Proxy\\linux-x64\\net6.0":"/TokenService.Proxy","C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\MSBuild\\Sdks\\Microsoft.Docker.Sdk\\tools\\HotReloadProxy\\linux-x64\\net6.0":"/HotReloadProxy","C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\Common7\\IDE\\CommonExtensions\\Microsoft\\HotReload":"/HotReloadAgent","D:\\Документы\\GitHub\\DAS_2023_1\\almukhammetov_bulat_lab_2\\Part1":"/src/","C:\\Users\\73bul\\.nuget\\packages\\":"/.nuget/fallbackpackages"} \ No newline at end of file diff --git a/almukhammetov_bulat_lab_2/Part1/obj/Container/VsDbgScript.cache b/almukhammetov_bulat_lab_2/Part1/obj/Container/VsDbgScript.cache new file mode 100644 index 0000000..1312b3f --- /dev/null +++ b/almukhammetov_bulat_lab_2/Part1/obj/Container/VsDbgScript.cache @@ -0,0 +1 @@ +ID=.; if [ -e /etc/os-release ]; then . /etc/os-release; fi; if [ $ID = alpine ] && [ -e /remote_debugger/linux-musl-x64/vsdbg ]; then VSDBGPATH=/remote_debugger/linux-musl-x64; else VSDBGPATH=/remote_debugger; fi; $VSDBGPATH/vsdbg --interpreter=vscode \ No newline at end of file diff --git a/almukhammetov_bulat_lab_2/Part1/obj/Debug/net6.0/.NETCoreApp,Version=v6.0.AssemblyAttributes.cs b/almukhammetov_bulat_lab_2/Part1/obj/Debug/net6.0/.NETCoreApp,Version=v6.0.AssemblyAttributes.cs new file mode 100644 index 0000000..ed92695 --- /dev/null +++ b/almukhammetov_bulat_lab_2/Part1/obj/Debug/net6.0/.NETCoreApp,Version=v6.0.AssemblyAttributes.cs @@ -0,0 +1,4 @@ +// +using System; +using System.Reflection; +[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v6.0", FrameworkDisplayName = ".NET 6.0")] diff --git a/almukhammetov_bulat_lab_2/Part1/obj/Debug/net6.0/Part1.AssemblyInfo.cs b/almukhammetov_bulat_lab_2/Part1/obj/Debug/net6.0/Part1.AssemblyInfo.cs new file mode 100644 index 0000000..00d18b1 --- /dev/null +++ b/almukhammetov_bulat_lab_2/Part1/obj/Debug/net6.0/Part1.AssemblyInfo.cs @@ -0,0 +1,23 @@ +//------------------------------------------------------------------------------ +// +// Этот код создан программой. +// Исполняемая версия:4.0.30319.42000 +// +// Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае +// повторной генерации кода. +// +//------------------------------------------------------------------------------ + +using System; +using System.Reflection; + +[assembly: System.Reflection.AssemblyCompanyAttribute("Part1")] +[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] +[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")] +[assembly: System.Reflection.AssemblyProductAttribute("Part1")] +[assembly: System.Reflection.AssemblyTitleAttribute("Part1")] +[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] + +// Создано классом WriteCodeFragment MSBuild. + diff --git a/almukhammetov_bulat_lab_2/Part1/obj/Debug/net6.0/Part1.AssemblyInfoInputs.cache b/almukhammetov_bulat_lab_2/Part1/obj/Debug/net6.0/Part1.AssemblyInfoInputs.cache new file mode 100644 index 0000000..419b7e6 --- /dev/null +++ b/almukhammetov_bulat_lab_2/Part1/obj/Debug/net6.0/Part1.AssemblyInfoInputs.cache @@ -0,0 +1 @@ +d43ff5423a16d15322b758e4b8a4a64d2ecac68213123491629720a8f32bfc9b diff --git a/almukhammetov_bulat_lab_2/Part1/obj/Debug/net6.0/Part1.GeneratedMSBuildEditorConfig.editorconfig b/almukhammetov_bulat_lab_2/Part1/obj/Debug/net6.0/Part1.GeneratedMSBuildEditorConfig.editorconfig new file mode 100644 index 0000000..b119013 --- /dev/null +++ b/almukhammetov_bulat_lab_2/Part1/obj/Debug/net6.0/Part1.GeneratedMSBuildEditorConfig.editorconfig @@ -0,0 +1,13 @@ +is_global = true +build_property.TargetFramework = net6.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 = Part1 +build_property.ProjectDir = D:\Документы\GitHub\DAS_2023_1\almukhammetov_bulat_lab_2\Part1\ +build_property.EnableComHosting = +build_property.EnableGeneratedComInterfaceComImportInterop = diff --git a/almukhammetov_bulat_lab_2/Part1/obj/Debug/net6.0/Part1.GlobalUsings.g.cs b/almukhammetov_bulat_lab_2/Part1/obj/Debug/net6.0/Part1.GlobalUsings.g.cs new file mode 100644 index 0000000..8578f3d --- /dev/null +++ b/almukhammetov_bulat_lab_2/Part1/obj/Debug/net6.0/Part1.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/almukhammetov_bulat_lab_2/Part1/obj/Debug/net6.0/Part1.assets.cache b/almukhammetov_bulat_lab_2/Part1/obj/Debug/net6.0/Part1.assets.cache new file mode 100644 index 0000000..54fcead Binary files /dev/null and b/almukhammetov_bulat_lab_2/Part1/obj/Debug/net6.0/Part1.assets.cache differ diff --git a/almukhammetov_bulat_lab_2/Part1/obj/Debug/net6.0/Part1.csproj.BuildWithSkipAnalyzers b/almukhammetov_bulat_lab_2/Part1/obj/Debug/net6.0/Part1.csproj.BuildWithSkipAnalyzers new file mode 100644 index 0000000..e69de29 diff --git a/almukhammetov_bulat_lab_2/Part1/obj/Debug/net6.0/Part1.csproj.CoreCompileInputs.cache b/almukhammetov_bulat_lab_2/Part1/obj/Debug/net6.0/Part1.csproj.CoreCompileInputs.cache new file mode 100644 index 0000000..4ae8e1f --- /dev/null +++ b/almukhammetov_bulat_lab_2/Part1/obj/Debug/net6.0/Part1.csproj.CoreCompileInputs.cache @@ -0,0 +1 @@ +85e76181036589b7b80e39219fc840736371361aec3e5d3ab435e7bccd4b3a70 diff --git a/almukhammetov_bulat_lab_2/Part1/obj/Debug/net6.0/Part1.csproj.FileListAbsolute.txt b/almukhammetov_bulat_lab_2/Part1/obj/Debug/net6.0/Part1.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..49ed41a --- /dev/null +++ b/almukhammetov_bulat_lab_2/Part1/obj/Debug/net6.0/Part1.csproj.FileListAbsolute.txt @@ -0,0 +1,14 @@ +D:\Документы\GitHub\DAS_2023_1\almukhammetov_bulat_lab_2\Part1\bin\Debug\net6.0\Part1.exe +D:\Документы\GitHub\DAS_2023_1\almukhammetov_bulat_lab_2\Part1\bin\Debug\net6.0\Part1.deps.json +D:\Документы\GitHub\DAS_2023_1\almukhammetov_bulat_lab_2\Part1\bin\Debug\net6.0\Part1.runtimeconfig.json +D:\Документы\GitHub\DAS_2023_1\almukhammetov_bulat_lab_2\Part1\bin\Debug\net6.0\Part1.dll +D:\Документы\GitHub\DAS_2023_1\almukhammetov_bulat_lab_2\Part1\bin\Debug\net6.0\Part1.pdb +D:\Документы\GitHub\DAS_2023_1\almukhammetov_bulat_lab_2\Part1\obj\Debug\net6.0\Part1.GeneratedMSBuildEditorConfig.editorconfig +D:\Документы\GitHub\DAS_2023_1\almukhammetov_bulat_lab_2\Part1\obj\Debug\net6.0\Part1.AssemblyInfoInputs.cache +D:\Документы\GitHub\DAS_2023_1\almukhammetov_bulat_lab_2\Part1\obj\Debug\net6.0\Part1.AssemblyInfo.cs +D:\Документы\GitHub\DAS_2023_1\almukhammetov_bulat_lab_2\Part1\obj\Debug\net6.0\Part1.csproj.CoreCompileInputs.cache +D:\Документы\GitHub\DAS_2023_1\almukhammetov_bulat_lab_2\Part1\obj\Debug\net6.0\Part1.dll +D:\Документы\GitHub\DAS_2023_1\almukhammetov_bulat_lab_2\Part1\obj\Debug\net6.0\refint\Part1.dll +D:\Документы\GitHub\DAS_2023_1\almukhammetov_bulat_lab_2\Part1\obj\Debug\net6.0\Part1.pdb +D:\Документы\GitHub\DAS_2023_1\almukhammetov_bulat_lab_2\Part1\obj\Debug\net6.0\Part1.genruntimeconfig.cache +D:\Документы\GitHub\DAS_2023_1\almukhammetov_bulat_lab_2\Part1\obj\Debug\net6.0\ref\Part1.dll diff --git a/almukhammetov_bulat_lab_2/Part1/obj/Debug/net6.0/Part1.dll b/almukhammetov_bulat_lab_2/Part1/obj/Debug/net6.0/Part1.dll new file mode 100644 index 0000000..22e2878 Binary files /dev/null and b/almukhammetov_bulat_lab_2/Part1/obj/Debug/net6.0/Part1.dll differ diff --git a/almukhammetov_bulat_lab_2/Part1/obj/Debug/net6.0/Part1.genruntimeconfig.cache b/almukhammetov_bulat_lab_2/Part1/obj/Debug/net6.0/Part1.genruntimeconfig.cache new file mode 100644 index 0000000..fdae080 --- /dev/null +++ b/almukhammetov_bulat_lab_2/Part1/obj/Debug/net6.0/Part1.genruntimeconfig.cache @@ -0,0 +1 @@ +e58803a5fe1e3b75ac9b204bdcc313077684139e3e7407db3e2e667ff77ba1c1 diff --git a/almukhammetov_bulat_lab_2/Part1/obj/Debug/net6.0/Part1.pdb b/almukhammetov_bulat_lab_2/Part1/obj/Debug/net6.0/Part1.pdb new file mode 100644 index 0000000..c51dd2a Binary files /dev/null and b/almukhammetov_bulat_lab_2/Part1/obj/Debug/net6.0/Part1.pdb differ diff --git a/almukhammetov_bulat_lab_2/Part1/obj/Debug/net6.0/apphost.exe b/almukhammetov_bulat_lab_2/Part1/obj/Debug/net6.0/apphost.exe new file mode 100644 index 0000000..17a5d11 Binary files /dev/null and b/almukhammetov_bulat_lab_2/Part1/obj/Debug/net6.0/apphost.exe differ diff --git a/almukhammetov_bulat_lab_2/Part1/obj/Debug/net6.0/ref/Part1.dll b/almukhammetov_bulat_lab_2/Part1/obj/Debug/net6.0/ref/Part1.dll new file mode 100644 index 0000000..b733b41 Binary files /dev/null and b/almukhammetov_bulat_lab_2/Part1/obj/Debug/net6.0/ref/Part1.dll differ diff --git a/almukhammetov_bulat_lab_2/Part1/obj/Debug/net6.0/refint/Part1.dll b/almukhammetov_bulat_lab_2/Part1/obj/Debug/net6.0/refint/Part1.dll new file mode 100644 index 0000000..b733b41 Binary files /dev/null and b/almukhammetov_bulat_lab_2/Part1/obj/Debug/net6.0/refint/Part1.dll differ diff --git a/almukhammetov_bulat_lab_2/Part1/obj/Part1.csproj.nuget.dgspec.json b/almukhammetov_bulat_lab_2/Part1/obj/Part1.csproj.nuget.dgspec.json new file mode 100644 index 0000000..e658f8c --- /dev/null +++ b/almukhammetov_bulat_lab_2/Part1/obj/Part1.csproj.nuget.dgspec.json @@ -0,0 +1,69 @@ +{ + "format": 1, + "restore": { + "D:\\Документы\\GitHub\\DAS_2023_1\\almukhammetov_bulat_lab_2\\Part1\\Part1.csproj": {} + }, + "projects": { + "D:\\Документы\\GitHub\\DAS_2023_1\\almukhammetov_bulat_lab_2\\Part1\\Part1.csproj": { + "version": "1.0.0", + "restore": { + "projectUniqueName": "D:\\Документы\\GitHub\\DAS_2023_1\\almukhammetov_bulat_lab_2\\Part1\\Part1.csproj", + "projectName": "Part1", + "projectPath": "D:\\Документы\\GitHub\\DAS_2023_1\\almukhammetov_bulat_lab_2\\Part1\\Part1.csproj", + "packagesPath": "C:\\Users\\73bul\\.nuget\\packages\\", + "outputPath": "D:\\Документы\\GitHub\\DAS_2023_1\\almukhammetov_bulat_lab_2\\Part1\\obj\\", + "projectStyle": "PackageReference", + "configFilePaths": [ + "C:\\Users\\73bul\\AppData\\Roaming\\NuGet\\NuGet.Config", + "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config" + ], + "originalTargetFrameworks": [ + "net6.0" + ], + "sources": { + "C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {}, + "https://api.nuget.org/v3/index.json": {} + }, + "frameworks": { + "net6.0": { + "targetAlias": "net6.0", + "projectReferences": {} + } + }, + "warningProperties": { + "warnAsError": [ + "NU1605" + ] + } + }, + "frameworks": { + "net6.0": { + "targetAlias": "net6.0", + "dependencies": { + "Microsoft.VisualStudio.Azure.Containers.Tools.Targets": { + "target": "Package", + "version": "[1.19.4, )" + } + }, + "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.100\\RuntimeIdentifierGraph.json" + } + } + } + } +} \ No newline at end of file diff --git a/almukhammetov_bulat_lab_2/Part1/obj/Part1.csproj.nuget.g.props b/almukhammetov_bulat_lab_2/Part1/obj/Part1.csproj.nuget.g.props new file mode 100644 index 0000000..46780a8 --- /dev/null +++ b/almukhammetov_bulat_lab_2/Part1/obj/Part1.csproj.nuget.g.props @@ -0,0 +1,21 @@ + + + + True + NuGet + $(MSBuildThisFileDirectory)project.assets.json + $(UserProfile)\.nuget\packages\ + C:\Users\73bul\.nuget\packages\ + PackageReference + 6.8.0 + + + + + + + + + C:\Users\73bul\.nuget\packages\microsoft.visualstudio.azure.containers.tools.targets\1.19.4 + + \ No newline at end of file diff --git a/almukhammetov_bulat_lab_2/Part1/obj/Part1.csproj.nuget.g.targets b/almukhammetov_bulat_lab_2/Part1/obj/Part1.csproj.nuget.g.targets new file mode 100644 index 0000000..b235905 --- /dev/null +++ b/almukhammetov_bulat_lab_2/Part1/obj/Part1.csproj.nuget.g.targets @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/almukhammetov_bulat_lab_2/Part1/obj/project.assets.json b/almukhammetov_bulat_lab_2/Part1/obj/project.assets.json new file mode 100644 index 0000000..c927f2a --- /dev/null +++ b/almukhammetov_bulat_lab_2/Part1/obj/project.assets.json @@ -0,0 +1,166 @@ +{ + "version": 3, + "targets": { + "net6.0": { + "Microsoft.VisualStudio.Azure.Containers.Tools.Targets/1.19.4": { + "type": "package", + "build": { + "build/Microsoft.VisualStudio.Azure.Containers.Tools.Targets.props": {}, + "build/Microsoft.VisualStudio.Azure.Containers.Tools.Targets.targets": {} + } + } + } + }, + "libraries": { + "Microsoft.VisualStudio.Azure.Containers.Tools.Targets/1.19.4": { + "sha512": "aKxpRAUIxDrnSnyr7xJWGixOBgsB7Z4oHpWRkpRzzq04kfze4mN7944gRc4X9H2U5KG3A/btF74kavkO8KXqCg==", + "type": "package", + "path": "microsoft.visualstudio.azure.containers.tools.targets/1.19.4", + "hasTools": true, + "files": [ + ".nupkg.metadata", + ".signature.p7s", + "CHANGELOG.md", + "EULA.md", + "ThirdPartyNotices.txt", + "build/Container.props", + "build/Container.targets", + "build/Microsoft.VisualStudio.Azure.Containers.Tools.Targets.props", + "build/Microsoft.VisualStudio.Azure.Containers.Tools.Targets.targets", + "build/Rules/GeneralBrowseObject.xaml", + "build/Rules/cs-CZ/GeneralBrowseObject.xaml", + "build/Rules/de-DE/GeneralBrowseObject.xaml", + "build/Rules/es-ES/GeneralBrowseObject.xaml", + "build/Rules/fr-FR/GeneralBrowseObject.xaml", + "build/Rules/it-IT/GeneralBrowseObject.xaml", + "build/Rules/ja-JP/GeneralBrowseObject.xaml", + "build/Rules/ko-KR/GeneralBrowseObject.xaml", + "build/Rules/pl-PL/GeneralBrowseObject.xaml", + "build/Rules/pt-BR/GeneralBrowseObject.xaml", + "build/Rules/ru-RU/GeneralBrowseObject.xaml", + "build/Rules/tr-TR/GeneralBrowseObject.xaml", + "build/Rules/zh-CN/GeneralBrowseObject.xaml", + "build/Rules/zh-TW/GeneralBrowseObject.xaml", + "build/ToolsTarget.props", + "build/ToolsTarget.targets", + "icon.png", + "microsoft.visualstudio.azure.containers.tools.targets.1.19.4.nupkg.sha512", + "microsoft.visualstudio.azure.containers.tools.targets.nuspec", + "tools/Microsoft.VisualStudio.Containers.Tools.Common.dll", + "tools/Microsoft.VisualStudio.Containers.Tools.Shared.dll", + "tools/Microsoft.VisualStudio.Containers.Tools.Tasks.dll", + "tools/Newtonsoft.Json.dll", + "tools/System.Security.Principal.Windows.dll", + "tools/cs/Microsoft.VisualStudio.Containers.Tools.Common.resources.dll", + "tools/cs/Microsoft.VisualStudio.Containers.Tools.Shared.resources.dll", + "tools/cs/Microsoft.VisualStudio.Containers.Tools.Tasks.resources.dll", + "tools/de/Microsoft.VisualStudio.Containers.Tools.Common.resources.dll", + "tools/de/Microsoft.VisualStudio.Containers.Tools.Shared.resources.dll", + "tools/de/Microsoft.VisualStudio.Containers.Tools.Tasks.resources.dll", + "tools/es/Microsoft.VisualStudio.Containers.Tools.Common.resources.dll", + "tools/es/Microsoft.VisualStudio.Containers.Tools.Shared.resources.dll", + "tools/es/Microsoft.VisualStudio.Containers.Tools.Tasks.resources.dll", + "tools/fr/Microsoft.VisualStudio.Containers.Tools.Common.resources.dll", + "tools/fr/Microsoft.VisualStudio.Containers.Tools.Shared.resources.dll", + "tools/fr/Microsoft.VisualStudio.Containers.Tools.Tasks.resources.dll", + "tools/it/Microsoft.VisualStudio.Containers.Tools.Common.resources.dll", + "tools/it/Microsoft.VisualStudio.Containers.Tools.Shared.resources.dll", + "tools/it/Microsoft.VisualStudio.Containers.Tools.Tasks.resources.dll", + "tools/ja/Microsoft.VisualStudio.Containers.Tools.Common.resources.dll", + "tools/ja/Microsoft.VisualStudio.Containers.Tools.Shared.resources.dll", + "tools/ja/Microsoft.VisualStudio.Containers.Tools.Tasks.resources.dll", + "tools/ko/Microsoft.VisualStudio.Containers.Tools.Common.resources.dll", + "tools/ko/Microsoft.VisualStudio.Containers.Tools.Shared.resources.dll", + "tools/ko/Microsoft.VisualStudio.Containers.Tools.Tasks.resources.dll", + "tools/pl/Microsoft.VisualStudio.Containers.Tools.Common.resources.dll", + "tools/pl/Microsoft.VisualStudio.Containers.Tools.Shared.resources.dll", + "tools/pl/Microsoft.VisualStudio.Containers.Tools.Tasks.resources.dll", + "tools/pt-BR/Microsoft.VisualStudio.Containers.Tools.Common.resources.dll", + "tools/pt-BR/Microsoft.VisualStudio.Containers.Tools.Shared.resources.dll", + "tools/pt-BR/Microsoft.VisualStudio.Containers.Tools.Tasks.resources.dll", + "tools/ru/Microsoft.VisualStudio.Containers.Tools.Common.resources.dll", + "tools/ru/Microsoft.VisualStudio.Containers.Tools.Shared.resources.dll", + "tools/ru/Microsoft.VisualStudio.Containers.Tools.Tasks.resources.dll", + "tools/tr/Microsoft.VisualStudio.Containers.Tools.Common.resources.dll", + "tools/tr/Microsoft.VisualStudio.Containers.Tools.Shared.resources.dll", + "tools/tr/Microsoft.VisualStudio.Containers.Tools.Tasks.resources.dll", + "tools/utils/KillProcess.exe", + "tools/zh-Hans/Microsoft.VisualStudio.Containers.Tools.Common.resources.dll", + "tools/zh-Hans/Microsoft.VisualStudio.Containers.Tools.Shared.resources.dll", + "tools/zh-Hans/Microsoft.VisualStudio.Containers.Tools.Tasks.resources.dll", + "tools/zh-Hant/Microsoft.VisualStudio.Containers.Tools.Common.resources.dll", + "tools/zh-Hant/Microsoft.VisualStudio.Containers.Tools.Shared.resources.dll", + "tools/zh-Hant/Microsoft.VisualStudio.Containers.Tools.Tasks.resources.dll" + ] + } + }, + "projectFileDependencyGroups": { + "net6.0": [ + "Microsoft.VisualStudio.Azure.Containers.Tools.Targets >= 1.19.4" + ] + }, + "packageFolders": { + "C:\\Users\\73bul\\.nuget\\packages\\": {} + }, + "project": { + "version": "1.0.0", + "restore": { + "projectUniqueName": "D:\\Документы\\GitHub\\DAS_2023_1\\almukhammetov_bulat_lab_2\\Part1\\Part1.csproj", + "projectName": "Part1", + "projectPath": "D:\\Документы\\GitHub\\DAS_2023_1\\almukhammetov_bulat_lab_2\\Part1\\Part1.csproj", + "packagesPath": "C:\\Users\\73bul\\.nuget\\packages\\", + "outputPath": "D:\\Документы\\GitHub\\DAS_2023_1\\almukhammetov_bulat_lab_2\\Part1\\obj\\", + "projectStyle": "PackageReference", + "configFilePaths": [ + "C:\\Users\\73bul\\AppData\\Roaming\\NuGet\\NuGet.Config", + "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config" + ], + "originalTargetFrameworks": [ + "net6.0" + ], + "sources": { + "C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {}, + "https://api.nuget.org/v3/index.json": {} + }, + "frameworks": { + "net6.0": { + "targetAlias": "net6.0", + "projectReferences": {} + } + }, + "warningProperties": { + "warnAsError": [ + "NU1605" + ] + } + }, + "frameworks": { + "net6.0": { + "targetAlias": "net6.0", + "dependencies": { + "Microsoft.VisualStudio.Azure.Containers.Tools.Targets": { + "target": "Package", + "version": "[1.19.4, )" + } + }, + "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.100\\RuntimeIdentifierGraph.json" + } + } + } +} \ No newline at end of file diff --git a/almukhammetov_bulat_lab_2/Part1/obj/project.nuget.cache b/almukhammetov_bulat_lab_2/Part1/obj/project.nuget.cache new file mode 100644 index 0000000..5676040 --- /dev/null +++ b/almukhammetov_bulat_lab_2/Part1/obj/project.nuget.cache @@ -0,0 +1,10 @@ +{ + "version": 2, + "dgSpecHash": "7dh4jTe7z/bzPj031BFBaN5wJQIUb8+xcjK/QcTHCHL00KdA9iUU9CGuqpy1J2k+tiVnyH85x0XwK2FaxOsqmg==", + "success": true, + "projectFilePath": "D:\\Документы\\GitHub\\DAS_2023_1\\almukhammetov_bulat_lab_2\\Part1\\Part1.csproj", + "expectedPackageFiles": [ + "C:\\Users\\73bul\\.nuget\\packages\\microsoft.visualstudio.azure.containers.tools.targets\\1.19.4\\microsoft.visualstudio.azure.containers.tools.targets.1.19.4.nupkg.sha512" + ], + "logs": [] +} \ No newline at end of file diff --git a/almukhammetov_bulat_lab_2/Part2/.vs/Part2/DesignTimeBuild/.dtbcache.v2 b/almukhammetov_bulat_lab_2/Part2/.vs/Part2/DesignTimeBuild/.dtbcache.v2 new file mode 100644 index 0000000..8b10ccc Binary files /dev/null and b/almukhammetov_bulat_lab_2/Part2/.vs/Part2/DesignTimeBuild/.dtbcache.v2 differ diff --git a/almukhammetov_bulat_lab_2/Part2/.vs/Part2/v17/.futdcache.v2 b/almukhammetov_bulat_lab_2/Part2/.vs/Part2/v17/.futdcache.v2 new file mode 100644 index 0000000..69c4b63 Binary files /dev/null and b/almukhammetov_bulat_lab_2/Part2/.vs/Part2/v17/.futdcache.v2 differ diff --git a/almukhammetov_bulat_lab_2/Part2/.vs/Part2/v17/.suo b/almukhammetov_bulat_lab_2/Part2/.vs/Part2/v17/.suo new file mode 100644 index 0000000..7008e31 Binary files /dev/null and b/almukhammetov_bulat_lab_2/Part2/.vs/Part2/v17/.suo differ diff --git a/almukhammetov_bulat_lab_2/Part2/.vs/ProjectEvaluation/part2.metadata.v7.bin b/almukhammetov_bulat_lab_2/Part2/.vs/ProjectEvaluation/part2.metadata.v7.bin new file mode 100644 index 0000000..29394d7 Binary files /dev/null and b/almukhammetov_bulat_lab_2/Part2/.vs/ProjectEvaluation/part2.metadata.v7.bin differ diff --git a/almukhammetov_bulat_lab_2/Part2/.vs/ProjectEvaluation/part2.projects.v7.bin b/almukhammetov_bulat_lab_2/Part2/.vs/ProjectEvaluation/part2.projects.v7.bin new file mode 100644 index 0000000..6045cd9 Binary files /dev/null and b/almukhammetov_bulat_lab_2/Part2/.vs/ProjectEvaluation/part2.projects.v7.bin differ diff --git a/almukhammetov_bulat_lab_2/Part2/Dockerfile b/almukhammetov_bulat_lab_2/Part2/Dockerfile new file mode 100644 index 0000000..0394d81 --- /dev/null +++ b/almukhammetov_bulat_lab_2/Part2/Dockerfile @@ -0,0 +1,20 @@ +#See https://aka.ms/customizecontainer to learn how to customize your debug container and how Visual Studio uses this Dockerfile to build your images for faster debugging. + +FROM mcr.microsoft.com/dotnet/runtime:6.0 AS base +WORKDIR /app + +FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build +WORKDIR /src +COPY ["Part2.csproj", "."] +RUN dotnet restore "./Part2.csproj" +COPY . . +WORKDIR "/src/." +RUN dotnet build "Part2.csproj" -c Release -o /app/build + +FROM build AS publish +RUN dotnet publish "Part2.csproj" -c Release -o /app/publish /p:UseAppHost=false + +FROM base AS final +WORKDIR /app +COPY --from=publish /app/publish . +ENTRYPOINT ["dotnet", "Part2.dll"] \ No newline at end of file diff --git a/almukhammetov_bulat_lab_2/Part2/Part2.csproj b/almukhammetov_bulat_lab_2/Part2/Part2.csproj new file mode 100644 index 0000000..4cbb247 --- /dev/null +++ b/almukhammetov_bulat_lab_2/Part2/Part2.csproj @@ -0,0 +1,16 @@ + + + + Exe + net6.0 + enable + enable + Linux + . + + + + + + + diff --git a/almukhammetov_bulat_lab_2/Part2/Part2.csproj.user b/almukhammetov_bulat_lab_2/Part2/Part2.csproj.user new file mode 100644 index 0000000..e681daf --- /dev/null +++ b/almukhammetov_bulat_lab_2/Part2/Part2.csproj.user @@ -0,0 +1,6 @@ + + + + Docker + + \ No newline at end of file diff --git a/almukhammetov_bulat_lab_2/Part2/Part2.sln b/almukhammetov_bulat_lab_2/Part2/Part2.sln new file mode 100644 index 0000000..bb49890 --- /dev/null +++ b/almukhammetov_bulat_lab_2/Part2/Part2.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.7.34018.315 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Part2", "Part2.csproj", "{9FC3CC84-848B-476A-9724-A216590556DC}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {9FC3CC84-848B-476A-9724-A216590556DC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {9FC3CC84-848B-476A-9724-A216590556DC}.Debug|Any CPU.Build.0 = Debug|Any CPU + {9FC3CC84-848B-476A-9724-A216590556DC}.Release|Any CPU.ActiveCfg = Release|Any CPU + {9FC3CC84-848B-476A-9724-A216590556DC}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {ED512BB2-49D3-4653-AADD-90FCCAD2C9BE} + EndGlobalSection +EndGlobal diff --git a/almukhammetov_bulat_lab_2/Part2/Program.cs b/almukhammetov_bulat_lab_2/Part2/Program.cs new file mode 100644 index 0000000..5a7dda7 --- /dev/null +++ b/almukhammetov_bulat_lab_2/Part2/Program.cs @@ -0,0 +1,43 @@ +var directoryPath = Environment.GetEnvironmentVariable("APP_DIR"); +if (directoryPath == null) +{ + Console.WriteLine("Не найден переменная среды адреса"); + return; +} + +var inputDataFilePath = Path.Combine(directoryPath, "result/inputFileFor2Program.txt"); +var outputResultFilePath = Path.Combine(directoryPath, "result/result.txt"); + +Console.WriteLine($"Входной файл для второй программы: {inputDataFilePath}"); +Console.WriteLine($"Выходной файл для второй программы {outputResultFilePath}"); + +if (File.Exists(inputDataFilePath)) +{ + // Чтение чисел из файла и поиск наибольшего числа + string[] lines = File.ReadAllLines(inputDataFilePath); + double largestNumber = double.MinValue; // Инициализируем наименьшим возможным значением + + foreach (string line in lines) + { + if (double.TryParse(line, out double number)) + { + if (number > largestNumber) + { + largestNumber = number; + } + } + } + + double result = Math.Pow(largestNumber, 2); + + // Сохраняем результат в файл + File.WriteAllText(outputResultFilePath, DateTime.Now.ToString() + "\nРезультат программы 2: " + result.ToString()); + + Console.WriteLine($"Наибольшее число в файле: {largestNumber}"); + Console.WriteLine($"Квадрат наибольшего числа: {result}"); + Console.WriteLine($"Результат сохранен в {outputResultFilePath}"); +} +else +{ + Console.WriteLine("Файл с данными не найден."); +} diff --git a/almukhammetov_bulat_lab_2/Part2/Properties/launchSettings.json b/almukhammetov_bulat_lab_2/Part2/Properties/launchSettings.json new file mode 100644 index 0000000..57bdd57 --- /dev/null +++ b/almukhammetov_bulat_lab_2/Part2/Properties/launchSettings.json @@ -0,0 +1,10 @@ +{ + "profiles": { + "Part2": { + "commandName": "Project" + }, + "Docker": { + "commandName": "Docker" + } + } +} \ No newline at end of file diff --git a/almukhammetov_bulat_lab_2/Part2/bin/Debug/net6.0/Part2.deps.json b/almukhammetov_bulat_lab_2/Part2/bin/Debug/net6.0/Part2.deps.json new file mode 100644 index 0000000..44f4ab5 --- /dev/null +++ b/almukhammetov_bulat_lab_2/Part2/bin/Debug/net6.0/Part2.deps.json @@ -0,0 +1,34 @@ +{ + "runtimeTarget": { + "name": ".NETCoreApp,Version=v6.0", + "signature": "" + }, + "compilationOptions": {}, + "targets": { + ".NETCoreApp,Version=v6.0": { + "Part2/1.0.0": { + "dependencies": { + "Microsoft.VisualStudio.Azure.Containers.Tools.Targets": "1.19.4" + }, + "runtime": { + "Part2.dll": {} + } + }, + "Microsoft.VisualStudio.Azure.Containers.Tools.Targets/1.19.4": {} + } + }, + "libraries": { + "Part2/1.0.0": { + "type": "project", + "serviceable": false, + "sha512": "" + }, + "Microsoft.VisualStudio.Azure.Containers.Tools.Targets/1.19.4": { + "type": "package", + "serviceable": true, + "sha512": "sha512-aKxpRAUIxDrnSnyr7xJWGixOBgsB7Z4oHpWRkpRzzq04kfze4mN7944gRc4X9H2U5KG3A/btF74kavkO8KXqCg==", + "path": "microsoft.visualstudio.azure.containers.tools.targets/1.19.4", + "hashPath": "microsoft.visualstudio.azure.containers.tools.targets.1.19.4.nupkg.sha512" + } + } +} \ No newline at end of file diff --git a/almukhammetov_bulat_lab_2/Part2/bin/Debug/net6.0/Part2.dll b/almukhammetov_bulat_lab_2/Part2/bin/Debug/net6.0/Part2.dll new file mode 100644 index 0000000..322a413 Binary files /dev/null and b/almukhammetov_bulat_lab_2/Part2/bin/Debug/net6.0/Part2.dll differ diff --git a/almukhammetov_bulat_lab_2/Part2/bin/Debug/net6.0/Part2.exe b/almukhammetov_bulat_lab_2/Part2/bin/Debug/net6.0/Part2.exe new file mode 100644 index 0000000..6c799c8 Binary files /dev/null and b/almukhammetov_bulat_lab_2/Part2/bin/Debug/net6.0/Part2.exe differ diff --git a/almukhammetov_bulat_lab_2/Part2/bin/Debug/net6.0/Part2.pdb b/almukhammetov_bulat_lab_2/Part2/bin/Debug/net6.0/Part2.pdb new file mode 100644 index 0000000..d19c9c6 Binary files /dev/null and b/almukhammetov_bulat_lab_2/Part2/bin/Debug/net6.0/Part2.pdb differ diff --git a/almukhammetov_bulat_lab_2/Part2/bin/Debug/net6.0/Part2.runtimeconfig.json b/almukhammetov_bulat_lab_2/Part2/bin/Debug/net6.0/Part2.runtimeconfig.json new file mode 100644 index 0000000..4986d16 --- /dev/null +++ b/almukhammetov_bulat_lab_2/Part2/bin/Debug/net6.0/Part2.runtimeconfig.json @@ -0,0 +1,9 @@ +{ + "runtimeOptions": { + "tfm": "net6.0", + "framework": { + "name": "Microsoft.NETCore.App", + "version": "6.0.0" + } + } +} \ No newline at end of file diff --git a/almukhammetov_bulat_lab_2/Part2/obj/Container/AbsoluteOutputAssemblyPath.cache b/almukhammetov_bulat_lab_2/Part2/obj/Container/AbsoluteOutputAssemblyPath.cache new file mode 100644 index 0000000..6d5c27c --- /dev/null +++ b/almukhammetov_bulat_lab_2/Part2/obj/Container/AbsoluteOutputAssemblyPath.cache @@ -0,0 +1 @@ +/app/bin/Debug/net6.0/Part2.dll \ No newline at end of file diff --git a/almukhammetov_bulat_lab_2/Part2/obj/Container/AdditionalProbingPaths.cache b/almukhammetov_bulat_lab_2/Part2/obj/Container/AdditionalProbingPaths.cache new file mode 100644 index 0000000..927f4f6 --- /dev/null +++ b/almukhammetov_bulat_lab_2/Part2/obj/Container/AdditionalProbingPaths.cache @@ -0,0 +1 @@ +--additionalProbingPath /.nuget/fallbackpackages \ No newline at end of file diff --git a/almukhammetov_bulat_lab_2/Part2/obj/Container/ContainerCreationResult.cache b/almukhammetov_bulat_lab_2/Part2/obj/Container/ContainerCreationResult.cache new file mode 100644 index 0000000..2adf810 --- /dev/null +++ b/almukhammetov_bulat_lab_2/Part2/obj/Container/ContainerCreationResult.cache @@ -0,0 +1 @@ +Skipped \ No newline at end of file diff --git a/almukhammetov_bulat_lab_2/Part2/obj/Container/ContainerDevelopmentMode.cache b/almukhammetov_bulat_lab_2/Part2/obj/Container/ContainerDevelopmentMode.cache new file mode 100644 index 0000000..565a238 --- /dev/null +++ b/almukhammetov_bulat_lab_2/Part2/obj/Container/ContainerDevelopmentMode.cache @@ -0,0 +1 @@ +Fast \ No newline at end of file diff --git a/almukhammetov_bulat_lab_2/Part2/obj/Container/ContainerId.cache b/almukhammetov_bulat_lab_2/Part2/obj/Container/ContainerId.cache new file mode 100644 index 0000000..1e95715 --- /dev/null +++ b/almukhammetov_bulat_lab_2/Part2/obj/Container/ContainerId.cache @@ -0,0 +1 @@ +1fe2d124ad6b2225a5f45fabeb3dd05dd90e633345ba8766d9cdca167467b2b5 \ No newline at end of file diff --git a/almukhammetov_bulat_lab_2/Part2/obj/Container/ContainerName.cache b/almukhammetov_bulat_lab_2/Part2/obj/Container/ContainerName.cache new file mode 100644 index 0000000..86dbe20 --- /dev/null +++ b/almukhammetov_bulat_lab_2/Part2/obj/Container/ContainerName.cache @@ -0,0 +1 @@ +Part2 \ No newline at end of file diff --git a/almukhammetov_bulat_lab_2/Part2/obj/Container/ContainerOperatingSystemFlavor.cache b/almukhammetov_bulat_lab_2/Part2/obj/Container/ContainerOperatingSystemFlavor.cache new file mode 100644 index 0000000..c486999 --- /dev/null +++ b/almukhammetov_bulat_lab_2/Part2/obj/Container/ContainerOperatingSystemFlavor.cache @@ -0,0 +1 @@ +Unknown \ No newline at end of file diff --git a/almukhammetov_bulat_lab_2/Part2/obj/Container/ContainerRunContext.cache b/almukhammetov_bulat_lab_2/Part2/obj/Container/ContainerRunContext.cache new file mode 100644 index 0000000..7c31ef4 --- /dev/null +++ b/almukhammetov_bulat_lab_2/Part2/obj/Container/ContainerRunContext.cache @@ -0,0 +1 @@ +FA/VqFTcNaa6LXURs2j5Sruk0BspG9P9VkmCwMqNC7Y= \ No newline at end of file diff --git a/almukhammetov_bulat_lab_2/Part2/obj/Container/DebuggeeArguments.cache b/almukhammetov_bulat_lab_2/Part2/obj/Container/DebuggeeArguments.cache new file mode 100644 index 0000000..e69de29 diff --git a/almukhammetov_bulat_lab_2/Part2/obj/Container/DebuggeeKillProcessCommand.cache b/almukhammetov_bulat_lab_2/Part2/obj/Container/DebuggeeKillProcessCommand.cache new file mode 100644 index 0000000..e69de29 diff --git a/almukhammetov_bulat_lab_2/Part2/obj/Container/DebuggeeProgram.cache b/almukhammetov_bulat_lab_2/Part2/obj/Container/DebuggeeProgram.cache new file mode 100644 index 0000000..e69de29 diff --git a/almukhammetov_bulat_lab_2/Part2/obj/Container/DebuggeeWorkingDirectory.cache b/almukhammetov_bulat_lab_2/Part2/obj/Container/DebuggeeWorkingDirectory.cache new file mode 100644 index 0000000..e69de29 diff --git a/almukhammetov_bulat_lab_2/Part2/obj/Container/FastModeProjectMountDirectory.cache b/almukhammetov_bulat_lab_2/Part2/obj/Container/FastModeProjectMountDirectory.cache new file mode 100644 index 0000000..e69de29 diff --git a/almukhammetov_bulat_lab_2/Part2/obj/Container/ImageBuildContext.cache b/almukhammetov_bulat_lab_2/Part2/obj/Container/ImageBuildContext.cache new file mode 100644 index 0000000..9a5ab8f --- /dev/null +++ b/almukhammetov_bulat_lab_2/Part2/obj/Container/ImageBuildContext.cache @@ -0,0 +1 @@ +WmQgrkIU3BZ0r0bqGVoACrCjY0+g6rpm1pggW68PCdw= \ No newline at end of file diff --git a/almukhammetov_bulat_lab_2/Part2/obj/Container/ImageId.cache b/almukhammetov_bulat_lab_2/Part2/obj/Container/ImageId.cache new file mode 100644 index 0000000..36cc445 --- /dev/null +++ b/almukhammetov_bulat_lab_2/Part2/obj/Container/ImageId.cache @@ -0,0 +1 @@ +sha256:3fc78879f41d1d402b233625c159287df4518c19e9f4e0aadfffa35e8e297cd4 \ No newline at end of file diff --git a/almukhammetov_bulat_lab_2/Part2/obj/Container/OperatingSystemName.cache b/almukhammetov_bulat_lab_2/Part2/obj/Container/OperatingSystemName.cache new file mode 100644 index 0000000..3ab1070 --- /dev/null +++ b/almukhammetov_bulat_lab_2/Part2/obj/Container/OperatingSystemName.cache @@ -0,0 +1 @@ +Linux \ No newline at end of file diff --git a/almukhammetov_bulat_lab_2/Part2/obj/Container/TargetFramework.cache b/almukhammetov_bulat_lab_2/Part2/obj/Container/TargetFramework.cache new file mode 100644 index 0000000..8d2863a --- /dev/null +++ b/almukhammetov_bulat_lab_2/Part2/obj/Container/TargetFramework.cache @@ -0,0 +1 @@ +DotNetCore \ No newline at end of file diff --git a/almukhammetov_bulat_lab_2/Part2/obj/Container/VolumeMappings.cache b/almukhammetov_bulat_lab_2/Part2/obj/Container/VolumeMappings.cache new file mode 100644 index 0000000..c5deb0a --- /dev/null +++ b/almukhammetov_bulat_lab_2/Part2/obj/Container/VolumeMappings.cache @@ -0,0 +1 @@ +{"C:\\Users\\73bul\\vsdbg\\vs2017u5":"/remote_debugger","C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\MSBuild\\Sdks\\Microsoft.Docker.Sdk\\tools\\TokenService.Proxy\\linux-x64\\net6.0":"/TokenService.Proxy","C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\MSBuild\\Sdks\\Microsoft.Docker.Sdk\\tools\\HotReloadProxy\\linux-x64\\net6.0":"/HotReloadProxy","C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\Common7\\IDE\\CommonExtensions\\Microsoft\\HotReload":"/HotReloadAgent","D:\\Документы\\GitHub\\DAS_2023_1\\almukhammetov_bulat_lab_2\\Part2":"/src/","C:\\Users\\73bul\\.nuget\\packages\\":"/.nuget/fallbackpackages"} \ No newline at end of file diff --git a/almukhammetov_bulat_lab_2/Part2/obj/Container/VsDbgScript.cache b/almukhammetov_bulat_lab_2/Part2/obj/Container/VsDbgScript.cache new file mode 100644 index 0000000..1312b3f --- /dev/null +++ b/almukhammetov_bulat_lab_2/Part2/obj/Container/VsDbgScript.cache @@ -0,0 +1 @@ +ID=.; if [ -e /etc/os-release ]; then . /etc/os-release; fi; if [ $ID = alpine ] && [ -e /remote_debugger/linux-musl-x64/vsdbg ]; then VSDBGPATH=/remote_debugger/linux-musl-x64; else VSDBGPATH=/remote_debugger; fi; $VSDBGPATH/vsdbg --interpreter=vscode \ No newline at end of file diff --git a/almukhammetov_bulat_lab_2/Part2/obj/Debug/net6.0/.NETCoreApp,Version=v6.0.AssemblyAttributes.cs b/almukhammetov_bulat_lab_2/Part2/obj/Debug/net6.0/.NETCoreApp,Version=v6.0.AssemblyAttributes.cs new file mode 100644 index 0000000..ed92695 --- /dev/null +++ b/almukhammetov_bulat_lab_2/Part2/obj/Debug/net6.0/.NETCoreApp,Version=v6.0.AssemblyAttributes.cs @@ -0,0 +1,4 @@ +// +using System; +using System.Reflection; +[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v6.0", FrameworkDisplayName = ".NET 6.0")] diff --git a/almukhammetov_bulat_lab_2/Part2/obj/Debug/net6.0/Part2.AssemblyInfo.cs b/almukhammetov_bulat_lab_2/Part2/obj/Debug/net6.0/Part2.AssemblyInfo.cs new file mode 100644 index 0000000..6fdccf5 --- /dev/null +++ b/almukhammetov_bulat_lab_2/Part2/obj/Debug/net6.0/Part2.AssemblyInfo.cs @@ -0,0 +1,23 @@ +//------------------------------------------------------------------------------ +// +// Этот код создан программой. +// Исполняемая версия:4.0.30319.42000 +// +// Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае +// повторной генерации кода. +// +//------------------------------------------------------------------------------ + +using System; +using System.Reflection; + +[assembly: System.Reflection.AssemblyCompanyAttribute("Part2")] +[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] +[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")] +[assembly: System.Reflection.AssemblyProductAttribute("Part2")] +[assembly: System.Reflection.AssemblyTitleAttribute("Part2")] +[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] + +// Создано классом WriteCodeFragment MSBuild. + diff --git a/almukhammetov_bulat_lab_2/Part2/obj/Debug/net6.0/Part2.AssemblyInfoInputs.cache b/almukhammetov_bulat_lab_2/Part2/obj/Debug/net6.0/Part2.AssemblyInfoInputs.cache new file mode 100644 index 0000000..1fd7221 --- /dev/null +++ b/almukhammetov_bulat_lab_2/Part2/obj/Debug/net6.0/Part2.AssemblyInfoInputs.cache @@ -0,0 +1 @@ +bdc1c8a5590f60140f8f67460d200cd0c5c31103852d78f7fda3a24e6942fb1b diff --git a/almukhammetov_bulat_lab_2/Part2/obj/Debug/net6.0/Part2.GeneratedMSBuildEditorConfig.editorconfig b/almukhammetov_bulat_lab_2/Part2/obj/Debug/net6.0/Part2.GeneratedMSBuildEditorConfig.editorconfig new file mode 100644 index 0000000..6b87567 --- /dev/null +++ b/almukhammetov_bulat_lab_2/Part2/obj/Debug/net6.0/Part2.GeneratedMSBuildEditorConfig.editorconfig @@ -0,0 +1,13 @@ +is_global = true +build_property.TargetFramework = net6.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 = Part2 +build_property.ProjectDir = D:\Документы\GitHub\DAS_2023_1\almukhammetov_bulat_lab_2\Part2\ +build_property.EnableComHosting = +build_property.EnableGeneratedComInterfaceComImportInterop = diff --git a/almukhammetov_bulat_lab_2/Part2/obj/Debug/net6.0/Part2.GlobalUsings.g.cs b/almukhammetov_bulat_lab_2/Part2/obj/Debug/net6.0/Part2.GlobalUsings.g.cs new file mode 100644 index 0000000..8578f3d --- /dev/null +++ b/almukhammetov_bulat_lab_2/Part2/obj/Debug/net6.0/Part2.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/almukhammetov_bulat_lab_2/Part2/obj/Debug/net6.0/Part2.assets.cache b/almukhammetov_bulat_lab_2/Part2/obj/Debug/net6.0/Part2.assets.cache new file mode 100644 index 0000000..12068d0 Binary files /dev/null and b/almukhammetov_bulat_lab_2/Part2/obj/Debug/net6.0/Part2.assets.cache differ diff --git a/almukhammetov_bulat_lab_2/Part2/obj/Debug/net6.0/Part2.csproj.BuildWithSkipAnalyzers b/almukhammetov_bulat_lab_2/Part2/obj/Debug/net6.0/Part2.csproj.BuildWithSkipAnalyzers new file mode 100644 index 0000000..e69de29 diff --git a/almukhammetov_bulat_lab_2/Part2/obj/Debug/net6.0/Part2.csproj.CoreCompileInputs.cache b/almukhammetov_bulat_lab_2/Part2/obj/Debug/net6.0/Part2.csproj.CoreCompileInputs.cache new file mode 100644 index 0000000..274c7dd --- /dev/null +++ b/almukhammetov_bulat_lab_2/Part2/obj/Debug/net6.0/Part2.csproj.CoreCompileInputs.cache @@ -0,0 +1 @@ +344148ec750b96c51da7163a5f5a5b97a8f5f90d diff --git a/almukhammetov_bulat_lab_2/Part2/obj/Debug/net6.0/Part2.csproj.FileListAbsolute.txt b/almukhammetov_bulat_lab_2/Part2/obj/Debug/net6.0/Part2.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..121ec0d --- /dev/null +++ b/almukhammetov_bulat_lab_2/Part2/obj/Debug/net6.0/Part2.csproj.FileListAbsolute.txt @@ -0,0 +1,14 @@ +D:\Документы\GitHub\DAS_2023_1\almukhammetov_bulat_lab_2\Part2\bin\Debug\net6.0\Part2.exe +D:\Документы\GitHub\DAS_2023_1\almukhammetov_bulat_lab_2\Part2\bin\Debug\net6.0\Part2.deps.json +D:\Документы\GitHub\DAS_2023_1\almukhammetov_bulat_lab_2\Part2\bin\Debug\net6.0\Part2.runtimeconfig.json +D:\Документы\GitHub\DAS_2023_1\almukhammetov_bulat_lab_2\Part2\bin\Debug\net6.0\Part2.dll +D:\Документы\GitHub\DAS_2023_1\almukhammetov_bulat_lab_2\Part2\bin\Debug\net6.0\Part2.pdb +D:\Документы\GitHub\DAS_2023_1\almukhammetov_bulat_lab_2\Part2\obj\Debug\net6.0\Part2.GeneratedMSBuildEditorConfig.editorconfig +D:\Документы\GitHub\DAS_2023_1\almukhammetov_bulat_lab_2\Part2\obj\Debug\net6.0\Part2.AssemblyInfoInputs.cache +D:\Документы\GitHub\DAS_2023_1\almukhammetov_bulat_lab_2\Part2\obj\Debug\net6.0\Part2.AssemblyInfo.cs +D:\Документы\GitHub\DAS_2023_1\almukhammetov_bulat_lab_2\Part2\obj\Debug\net6.0\Part2.csproj.CoreCompileInputs.cache +D:\Документы\GitHub\DAS_2023_1\almukhammetov_bulat_lab_2\Part2\obj\Debug\net6.0\Part2.dll +D:\Документы\GitHub\DAS_2023_1\almukhammetov_bulat_lab_2\Part2\obj\Debug\net6.0\refint\Part2.dll +D:\Документы\GitHub\DAS_2023_1\almukhammetov_bulat_lab_2\Part2\obj\Debug\net6.0\Part2.pdb +D:\Документы\GitHub\DAS_2023_1\almukhammetov_bulat_lab_2\Part2\obj\Debug\net6.0\Part2.genruntimeconfig.cache +D:\Документы\GitHub\DAS_2023_1\almukhammetov_bulat_lab_2\Part2\obj\Debug\net6.0\ref\Part2.dll diff --git a/almukhammetov_bulat_lab_2/Part2/obj/Debug/net6.0/Part2.dll b/almukhammetov_bulat_lab_2/Part2/obj/Debug/net6.0/Part2.dll new file mode 100644 index 0000000..322a413 Binary files /dev/null and b/almukhammetov_bulat_lab_2/Part2/obj/Debug/net6.0/Part2.dll differ diff --git a/almukhammetov_bulat_lab_2/Part2/obj/Debug/net6.0/Part2.genruntimeconfig.cache b/almukhammetov_bulat_lab_2/Part2/obj/Debug/net6.0/Part2.genruntimeconfig.cache new file mode 100644 index 0000000..757105f --- /dev/null +++ b/almukhammetov_bulat_lab_2/Part2/obj/Debug/net6.0/Part2.genruntimeconfig.cache @@ -0,0 +1 @@ +e3678a08a46357092ee20bc1a7b67ba25a8a31e1 diff --git a/almukhammetov_bulat_lab_2/Part2/obj/Debug/net6.0/Part2.pdb b/almukhammetov_bulat_lab_2/Part2/obj/Debug/net6.0/Part2.pdb new file mode 100644 index 0000000..d19c9c6 Binary files /dev/null and b/almukhammetov_bulat_lab_2/Part2/obj/Debug/net6.0/Part2.pdb differ diff --git a/almukhammetov_bulat_lab_2/Part2/obj/Debug/net6.0/apphost.exe b/almukhammetov_bulat_lab_2/Part2/obj/Debug/net6.0/apphost.exe new file mode 100644 index 0000000..1bc19ee Binary files /dev/null and b/almukhammetov_bulat_lab_2/Part2/obj/Debug/net6.0/apphost.exe differ diff --git a/almukhammetov_bulat_lab_2/Part2/obj/Debug/net6.0/ref/Part2.dll b/almukhammetov_bulat_lab_2/Part2/obj/Debug/net6.0/ref/Part2.dll new file mode 100644 index 0000000..2c11e21 Binary files /dev/null and b/almukhammetov_bulat_lab_2/Part2/obj/Debug/net6.0/ref/Part2.dll differ diff --git a/almukhammetov_bulat_lab_2/Part2/obj/Debug/net6.0/refint/Part2.dll b/almukhammetov_bulat_lab_2/Part2/obj/Debug/net6.0/refint/Part2.dll new file mode 100644 index 0000000..2c11e21 Binary files /dev/null and b/almukhammetov_bulat_lab_2/Part2/obj/Debug/net6.0/refint/Part2.dll differ diff --git a/almukhammetov_bulat_lab_2/Part2/obj/Part2.csproj.nuget.dgspec.json b/almukhammetov_bulat_lab_2/Part2/obj/Part2.csproj.nuget.dgspec.json new file mode 100644 index 0000000..3626b7f --- /dev/null +++ b/almukhammetov_bulat_lab_2/Part2/obj/Part2.csproj.nuget.dgspec.json @@ -0,0 +1,69 @@ +{ + "format": 1, + "restore": { + "D:\\Документы\\GitHub\\DAS_2023_1\\almukhammetov_bulat_lab_2\\Part2\\Part2.csproj": {} + }, + "projects": { + "D:\\Документы\\GitHub\\DAS_2023_1\\almukhammetov_bulat_lab_2\\Part2\\Part2.csproj": { + "version": "1.0.0", + "restore": { + "projectUniqueName": "D:\\Документы\\GitHub\\DAS_2023_1\\almukhammetov_bulat_lab_2\\Part2\\Part2.csproj", + "projectName": "Part2", + "projectPath": "D:\\Документы\\GitHub\\DAS_2023_1\\almukhammetov_bulat_lab_2\\Part2\\Part2.csproj", + "packagesPath": "C:\\Users\\73bul\\.nuget\\packages\\", + "outputPath": "D:\\Документы\\GitHub\\DAS_2023_1\\almukhammetov_bulat_lab_2\\Part2\\obj\\", + "projectStyle": "PackageReference", + "configFilePaths": [ + "C:\\Users\\73bul\\AppData\\Roaming\\NuGet\\NuGet.Config", + "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config" + ], + "originalTargetFrameworks": [ + "net6.0" + ], + "sources": { + "C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {}, + "https://api.nuget.org/v3/index.json": {} + }, + "frameworks": { + "net6.0": { + "targetAlias": "net6.0", + "projectReferences": {} + } + }, + "warningProperties": { + "warnAsError": [ + "NU1605" + ] + } + }, + "frameworks": { + "net6.0": { + "targetAlias": "net6.0", + "dependencies": { + "Microsoft.VisualStudio.Azure.Containers.Tools.Targets": { + "target": "Package", + "version": "[1.19.4, )" + } + }, + "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.100\\RuntimeIdentifierGraph.json" + } + } + } + } +} \ No newline at end of file diff --git a/almukhammetov_bulat_lab_2/Part2/obj/Part2.csproj.nuget.g.props b/almukhammetov_bulat_lab_2/Part2/obj/Part2.csproj.nuget.g.props new file mode 100644 index 0000000..46780a8 --- /dev/null +++ b/almukhammetov_bulat_lab_2/Part2/obj/Part2.csproj.nuget.g.props @@ -0,0 +1,21 @@ + + + + True + NuGet + $(MSBuildThisFileDirectory)project.assets.json + $(UserProfile)\.nuget\packages\ + C:\Users\73bul\.nuget\packages\ + PackageReference + 6.8.0 + + + + + + + + + C:\Users\73bul\.nuget\packages\microsoft.visualstudio.azure.containers.tools.targets\1.19.4 + + \ No newline at end of file diff --git a/almukhammetov_bulat_lab_2/Part2/obj/Part2.csproj.nuget.g.targets b/almukhammetov_bulat_lab_2/Part2/obj/Part2.csproj.nuget.g.targets new file mode 100644 index 0000000..b235905 --- /dev/null +++ b/almukhammetov_bulat_lab_2/Part2/obj/Part2.csproj.nuget.g.targets @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/almukhammetov_bulat_lab_2/Part2/obj/project.assets.json b/almukhammetov_bulat_lab_2/Part2/obj/project.assets.json new file mode 100644 index 0000000..8e84bd4 --- /dev/null +++ b/almukhammetov_bulat_lab_2/Part2/obj/project.assets.json @@ -0,0 +1,166 @@ +{ + "version": 3, + "targets": { + "net6.0": { + "Microsoft.VisualStudio.Azure.Containers.Tools.Targets/1.19.4": { + "type": "package", + "build": { + "build/Microsoft.VisualStudio.Azure.Containers.Tools.Targets.props": {}, + "build/Microsoft.VisualStudio.Azure.Containers.Tools.Targets.targets": {} + } + } + } + }, + "libraries": { + "Microsoft.VisualStudio.Azure.Containers.Tools.Targets/1.19.4": { + "sha512": "aKxpRAUIxDrnSnyr7xJWGixOBgsB7Z4oHpWRkpRzzq04kfze4mN7944gRc4X9H2U5KG3A/btF74kavkO8KXqCg==", + "type": "package", + "path": "microsoft.visualstudio.azure.containers.tools.targets/1.19.4", + "hasTools": true, + "files": [ + ".nupkg.metadata", + ".signature.p7s", + "CHANGELOG.md", + "EULA.md", + "ThirdPartyNotices.txt", + "build/Container.props", + "build/Container.targets", + "build/Microsoft.VisualStudio.Azure.Containers.Tools.Targets.props", + "build/Microsoft.VisualStudio.Azure.Containers.Tools.Targets.targets", + "build/Rules/GeneralBrowseObject.xaml", + "build/Rules/cs-CZ/GeneralBrowseObject.xaml", + "build/Rules/de-DE/GeneralBrowseObject.xaml", + "build/Rules/es-ES/GeneralBrowseObject.xaml", + "build/Rules/fr-FR/GeneralBrowseObject.xaml", + "build/Rules/it-IT/GeneralBrowseObject.xaml", + "build/Rules/ja-JP/GeneralBrowseObject.xaml", + "build/Rules/ko-KR/GeneralBrowseObject.xaml", + "build/Rules/pl-PL/GeneralBrowseObject.xaml", + "build/Rules/pt-BR/GeneralBrowseObject.xaml", + "build/Rules/ru-RU/GeneralBrowseObject.xaml", + "build/Rules/tr-TR/GeneralBrowseObject.xaml", + "build/Rules/zh-CN/GeneralBrowseObject.xaml", + "build/Rules/zh-TW/GeneralBrowseObject.xaml", + "build/ToolsTarget.props", + "build/ToolsTarget.targets", + "icon.png", + "microsoft.visualstudio.azure.containers.tools.targets.1.19.4.nupkg.sha512", + "microsoft.visualstudio.azure.containers.tools.targets.nuspec", + "tools/Microsoft.VisualStudio.Containers.Tools.Common.dll", + "tools/Microsoft.VisualStudio.Containers.Tools.Shared.dll", + "tools/Microsoft.VisualStudio.Containers.Tools.Tasks.dll", + "tools/Newtonsoft.Json.dll", + "tools/System.Security.Principal.Windows.dll", + "tools/cs/Microsoft.VisualStudio.Containers.Tools.Common.resources.dll", + "tools/cs/Microsoft.VisualStudio.Containers.Tools.Shared.resources.dll", + "tools/cs/Microsoft.VisualStudio.Containers.Tools.Tasks.resources.dll", + "tools/de/Microsoft.VisualStudio.Containers.Tools.Common.resources.dll", + "tools/de/Microsoft.VisualStudio.Containers.Tools.Shared.resources.dll", + "tools/de/Microsoft.VisualStudio.Containers.Tools.Tasks.resources.dll", + "tools/es/Microsoft.VisualStudio.Containers.Tools.Common.resources.dll", + "tools/es/Microsoft.VisualStudio.Containers.Tools.Shared.resources.dll", + "tools/es/Microsoft.VisualStudio.Containers.Tools.Tasks.resources.dll", + "tools/fr/Microsoft.VisualStudio.Containers.Tools.Common.resources.dll", + "tools/fr/Microsoft.VisualStudio.Containers.Tools.Shared.resources.dll", + "tools/fr/Microsoft.VisualStudio.Containers.Tools.Tasks.resources.dll", + "tools/it/Microsoft.VisualStudio.Containers.Tools.Common.resources.dll", + "tools/it/Microsoft.VisualStudio.Containers.Tools.Shared.resources.dll", + "tools/it/Microsoft.VisualStudio.Containers.Tools.Tasks.resources.dll", + "tools/ja/Microsoft.VisualStudio.Containers.Tools.Common.resources.dll", + "tools/ja/Microsoft.VisualStudio.Containers.Tools.Shared.resources.dll", + "tools/ja/Microsoft.VisualStudio.Containers.Tools.Tasks.resources.dll", + "tools/ko/Microsoft.VisualStudio.Containers.Tools.Common.resources.dll", + "tools/ko/Microsoft.VisualStudio.Containers.Tools.Shared.resources.dll", + "tools/ko/Microsoft.VisualStudio.Containers.Tools.Tasks.resources.dll", + "tools/pl/Microsoft.VisualStudio.Containers.Tools.Common.resources.dll", + "tools/pl/Microsoft.VisualStudio.Containers.Tools.Shared.resources.dll", + "tools/pl/Microsoft.VisualStudio.Containers.Tools.Tasks.resources.dll", + "tools/pt-BR/Microsoft.VisualStudio.Containers.Tools.Common.resources.dll", + "tools/pt-BR/Microsoft.VisualStudio.Containers.Tools.Shared.resources.dll", + "tools/pt-BR/Microsoft.VisualStudio.Containers.Tools.Tasks.resources.dll", + "tools/ru/Microsoft.VisualStudio.Containers.Tools.Common.resources.dll", + "tools/ru/Microsoft.VisualStudio.Containers.Tools.Shared.resources.dll", + "tools/ru/Microsoft.VisualStudio.Containers.Tools.Tasks.resources.dll", + "tools/tr/Microsoft.VisualStudio.Containers.Tools.Common.resources.dll", + "tools/tr/Microsoft.VisualStudio.Containers.Tools.Shared.resources.dll", + "tools/tr/Microsoft.VisualStudio.Containers.Tools.Tasks.resources.dll", + "tools/utils/KillProcess.exe", + "tools/zh-Hans/Microsoft.VisualStudio.Containers.Tools.Common.resources.dll", + "tools/zh-Hans/Microsoft.VisualStudio.Containers.Tools.Shared.resources.dll", + "tools/zh-Hans/Microsoft.VisualStudio.Containers.Tools.Tasks.resources.dll", + "tools/zh-Hant/Microsoft.VisualStudio.Containers.Tools.Common.resources.dll", + "tools/zh-Hant/Microsoft.VisualStudio.Containers.Tools.Shared.resources.dll", + "tools/zh-Hant/Microsoft.VisualStudio.Containers.Tools.Tasks.resources.dll" + ] + } + }, + "projectFileDependencyGroups": { + "net6.0": [ + "Microsoft.VisualStudio.Azure.Containers.Tools.Targets >= 1.19.4" + ] + }, + "packageFolders": { + "C:\\Users\\73bul\\.nuget\\packages\\": {} + }, + "project": { + "version": "1.0.0", + "restore": { + "projectUniqueName": "D:\\Документы\\GitHub\\DAS_2023_1\\almukhammetov_bulat_lab_2\\Part2\\Part2.csproj", + "projectName": "Part2", + "projectPath": "D:\\Документы\\GitHub\\DAS_2023_1\\almukhammetov_bulat_lab_2\\Part2\\Part2.csproj", + "packagesPath": "C:\\Users\\73bul\\.nuget\\packages\\", + "outputPath": "D:\\Документы\\GitHub\\DAS_2023_1\\almukhammetov_bulat_lab_2\\Part2\\obj\\", + "projectStyle": "PackageReference", + "configFilePaths": [ + "C:\\Users\\73bul\\AppData\\Roaming\\NuGet\\NuGet.Config", + "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config" + ], + "originalTargetFrameworks": [ + "net6.0" + ], + "sources": { + "C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {}, + "https://api.nuget.org/v3/index.json": {} + }, + "frameworks": { + "net6.0": { + "targetAlias": "net6.0", + "projectReferences": {} + } + }, + "warningProperties": { + "warnAsError": [ + "NU1605" + ] + } + }, + "frameworks": { + "net6.0": { + "targetAlias": "net6.0", + "dependencies": { + "Microsoft.VisualStudio.Azure.Containers.Tools.Targets": { + "target": "Package", + "version": "[1.19.4, )" + } + }, + "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.100\\RuntimeIdentifierGraph.json" + } + } + } +} \ No newline at end of file diff --git a/almukhammetov_bulat_lab_2/Part2/obj/project.nuget.cache b/almukhammetov_bulat_lab_2/Part2/obj/project.nuget.cache new file mode 100644 index 0000000..133ebfe --- /dev/null +++ b/almukhammetov_bulat_lab_2/Part2/obj/project.nuget.cache @@ -0,0 +1,10 @@ +{ + "version": 2, + "dgSpecHash": "tt75+UmYf5P82+w23qhEyWgjPHGt4SUT2O7jTHeMC1VGUzMY91Dr+irsBrcf1XvGvi21bQRzE63sOtQCPqIQPA==", + "success": true, + "projectFilePath": "D:\\Документы\\GitHub\\DAS_2023_1\\almukhammetov_bulat_lab_2\\Part2\\Part2.csproj", + "expectedPackageFiles": [ + "C:\\Users\\73bul\\.nuget\\packages\\microsoft.visualstudio.azure.containers.tools.targets\\1.19.4\\microsoft.visualstudio.azure.containers.tools.targets.1.19.4.nupkg.sha512" + ], + "logs": [] +} \ No newline at end of file diff --git a/almukhammetov_bulat_lab_2/README.md b/almukhammetov_bulat_lab_2/README.md new file mode 100644 index 0000000..94f2c12 --- /dev/null +++ b/almukhammetov_bulat_lab_2/README.md @@ -0,0 +1,25 @@ +Альмухамметов ПИбд-42 + +Было разработано два приложения: + +Первое приложение (Part1): +Ищет в каталоге /var/data файл с наибольшим количеством строк и перекладывает его в /var/result/data.txt. + +Второе приложение (Part2): +Ищет набольшее число из файла /var/data/data.txt и сохраняет его вторую степень в /var/result/result.txt. + +Созданы докер файлы для обоих приложений: + +Докер файл с комментариями для первого приложения добавил в репозиторий. + +Сформирован файл docker-compose.yml + +В файле присутствуют: + +1. Два сервиса. Каждый соответствует моим программам. +2. Объявлена директива build для каждого сервиса. +3. Была работа с монтированием папок. +4. Были описаны зависимости одного сервиса от другог + +Ссылка на видео: +https://vk.com/video228053206_456240780?list=ln-KA0f6r2AL1EO4fhVjm diff --git a/almukhammetov_bulat_lab_2/docker-compose.yml b/almukhammetov_bulat_lab_2/docker-compose.yml new file mode 100644 index 0000000..4e66ad2 --- /dev/null +++ b/almukhammetov_bulat_lab_2/docker-compose.yml @@ -0,0 +1,26 @@ +version: '3' +services: + lab2program1: + build: + context: /Part1 + dockerfile: Dockerfile + volumes: + - .\var\result:/app/result + - .\var\data:/app/data + working_dir: /app + environment: + - APP_DIR=/app + + lab2program2: + depends_on: + - lab2program1 + build: + context: /Part2 + dockerfile: Dockerfile + volumes: + - .\var\result:/app/result + - .\var\data:/app/data + working_dir: /app + environment: + - APP_DIR=/app + diff --git a/almukhammetov_bulat_lab_2/var/data/1.txt b/almukhammetov_bulat_lab_2/var/data/1.txt new file mode 100644 index 0000000..56a6051 --- /dev/null +++ b/almukhammetov_bulat_lab_2/var/data/1.txt @@ -0,0 +1 @@ +1 \ No newline at end of file diff --git a/almukhammetov_bulat_lab_2/var/data/2.txt b/almukhammetov_bulat_lab_2/var/data/2.txt new file mode 100644 index 0000000..451c1a5 --- /dev/null +++ b/almukhammetov_bulat_lab_2/var/data/2.txt @@ -0,0 +1,2 @@ +2 +2 \ No newline at end of file diff --git a/almukhammetov_bulat_lab_2/var/data/3.txt b/almukhammetov_bulat_lab_2/var/data/3.txt new file mode 100644 index 0000000..26c8f44 --- /dev/null +++ b/almukhammetov_bulat_lab_2/var/data/3.txt @@ -0,0 +1,3 @@ +3 +3 +3 \ No newline at end of file diff --git a/almukhammetov_bulat_lab_2/var/data/4.txt b/almukhammetov_bulat_lab_2/var/data/4.txt new file mode 100644 index 0000000..e43ad32 --- /dev/null +++ b/almukhammetov_bulat_lab_2/var/data/4.txt @@ -0,0 +1,4 @@ +4 +4 +4 +4 \ No newline at end of file diff --git a/almukhammetov_bulat_lab_2/var/data/5.txt b/almukhammetov_bulat_lab_2/var/data/5.txt new file mode 100644 index 0000000..0d96823 --- /dev/null +++ b/almukhammetov_bulat_lab_2/var/data/5.txt @@ -0,0 +1,5 @@ +5 +5 +5 +5 +5 \ No newline at end of file diff --git a/almukhammetov_bulat_lab_2/var/result/inputFileFor2Program.txt b/almukhammetov_bulat_lab_2/var/result/inputFileFor2Program.txt new file mode 100644 index 0000000..0d96823 --- /dev/null +++ b/almukhammetov_bulat_lab_2/var/result/inputFileFor2Program.txt @@ -0,0 +1,5 @@ +5 +5 +5 +5 +5 \ No newline at end of file diff --git a/almukhammetov_bulat_lab_2/var/result/result.txt b/almukhammetov_bulat_lab_2/var/result/result.txt new file mode 100644 index 0000000..1d7df37 --- /dev/null +++ b/almukhammetov_bulat_lab_2/var/result/result.txt @@ -0,0 +1,2 @@ +01/02/2024 09:27:53 +Результат программы 2: 25 \ No newline at end of file