Compare commits
77 Commits
degtyarev_
...
main
Author | SHA1 | Date | |
---|---|---|---|
60ef5724cd | |||
6827a64c4d | |||
7de577eadc | |||
2690438508 | |||
e3677ed302 | |||
|
f5bc94c4ec | ||
f4ec46b14d | |||
ac085099f4 | |||
|
46f2a8da94 | ||
|
84bd5277a9 | ||
|
bb78e6823b | ||
|
ea990fd848 | ||
a284e473a9 | |||
c7ccb94de9 | |||
0a6ce933c7 | |||
d867909883 | |||
|
b9d3eb249b | ||
|
934dd837ac | ||
|
36c429cb4f | ||
|
61c94a9155 | ||
8496ba5b3e | |||
4e177372a9 | |||
a311037d8d | |||
6fea07c73d | |||
3f6234209a | |||
b3c9d6a471 | |||
080efc8a4c | |||
6e86bdcc1e | |||
51c5bfa80a | |||
a901a2b306 | |||
ffdf6c9ab9 | |||
a44eb5cb56 | |||
2270fa67e4 | |||
8ed344819f | |||
426dcca1ec | |||
e7ba5e4e23 | |||
5bca0d2e6f | |||
992635f9e5 | |||
ec6f254f98 | |||
e1be77f193 | |||
|
a8df36581d | ||
|
e3972e8932 | ||
|
e617f9ebbb | ||
5e2305d3ac | |||
89b987e416 | |||
2de04f60a9 | |||
a2cd0cf527 | |||
219ce2acfe | |||
cf88b559cc | |||
8f7c563a25 | |||
259bcd07f0 | |||
e68c51b313 | |||
12523aabaf | |||
b0d3c4cc7a | |||
7205c6f8f0 | |||
82cab3fc1b | |||
a0e60b3699 | |||
993786b8ae | |||
|
66525b2d4b | ||
|
7328dcb134 | ||
08e44c25c3 | |||
2c61f815fa | |||
2bdf735b95 | |||
2ef1f65ed6 | |||
7dcce0138f | |||
427173d554 | |||
5104f74803 | |||
5341271f9e | |||
e582711076 | |||
|
0a5d8d6e02 | ||
|
4498245823 | ||
|
b06fb8f5c5 | ||
|
1ffed2075a | ||
|
f7b9e00012 | ||
|
6afc3b032f | ||
|
a07d49560a | ||
|
1cd0264117 |
Binary file not shown.
BIN
almukhammetov_bulat_lab_2/Part1/.vs/Part1/v17/.futdcache.v2
Normal file
BIN
almukhammetov_bulat_lab_2/Part1/.vs/Part1/v17/.futdcache.v2
Normal file
Binary file not shown.
BIN
almukhammetov_bulat_lab_2/Part1/.vs/Part1/v17/.suo
Normal file
BIN
almukhammetov_bulat_lab_2/Part1/.vs/Part1/v17/.suo
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
32
almukhammetov_bulat_lab_2/Part1/Dockerfile
Normal file
32
almukhammetov_bulat_lab_2/Part1/Dockerfile
Normal file
@ -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"]
|
16
almukhammetov_bulat_lab_2/Part1/Part1.csproj
Normal file
16
almukhammetov_bulat_lab_2/Part1/Part1.csproj
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
|
<PropertyGroup>
|
||||||
|
<OutputType>Exe</OutputType>
|
||||||
|
<TargetFramework>net6.0</TargetFramework>
|
||||||
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
|
<Nullable>enable</Nullable>
|
||||||
|
<DockerDefaultTargetOS>Linux</DockerDefaultTargetOS>
|
||||||
|
<DockerfileContext>.</DockerfileContext>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.19.4" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
|
</Project>
|
9
almukhammetov_bulat_lab_2/Part1/Part1.csproj.user
Normal file
9
almukhammetov_bulat_lab_2/Part1/Part1.csproj.user
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<PropertyGroup>
|
||||||
|
<ActiveDebugProfile>Docker</ActiveDebugProfile>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
|
||||||
|
<DebuggerFlavor>ProjectDebugger</DebuggerFlavor>
|
||||||
|
</PropertyGroup>
|
||||||
|
</Project>
|
25
almukhammetov_bulat_lab_2/Part1/Part1.sln
Normal file
25
almukhammetov_bulat_lab_2/Part1/Part1.sln
Normal file
@ -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
|
55
almukhammetov_bulat_lab_2/Part1/Program.cs
Normal file
55
almukhammetov_bulat_lab_2/Part1/Program.cs
Normal file
@ -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());
|
||||||
|
}
|
@ -0,0 +1,10 @@
|
|||||||
|
{
|
||||||
|
"profiles": {
|
||||||
|
"Part1": {
|
||||||
|
"commandName": "Project"
|
||||||
|
},
|
||||||
|
"Docker": {
|
||||||
|
"commandName": "Docker"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -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"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
BIN
almukhammetov_bulat_lab_2/Part1/bin/Debug/net6.0/Part1.dll
Normal file
BIN
almukhammetov_bulat_lab_2/Part1/bin/Debug/net6.0/Part1.dll
Normal file
Binary file not shown.
BIN
almukhammetov_bulat_lab_2/Part1/bin/Debug/net6.0/Part1.exe
Normal file
BIN
almukhammetov_bulat_lab_2/Part1/bin/Debug/net6.0/Part1.exe
Normal file
Binary file not shown.
BIN
almukhammetov_bulat_lab_2/Part1/bin/Debug/net6.0/Part1.pdb
Normal file
BIN
almukhammetov_bulat_lab_2/Part1/bin/Debug/net6.0/Part1.pdb
Normal file
Binary file not shown.
@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
"runtimeOptions": {
|
||||||
|
"tfm": "net6.0",
|
||||||
|
"framework": {
|
||||||
|
"name": "Microsoft.NETCore.App",
|
||||||
|
"version": "6.0.0"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1 @@
|
|||||||
|
/app/bin/Debug/net6.0/Part1.dll
|
@ -0,0 +1 @@
|
|||||||
|
--additionalProbingPath /.nuget/fallbackpackages
|
@ -0,0 +1 @@
|
|||||||
|
NoConflict
|
@ -0,0 +1 @@
|
|||||||
|
Fast
|
@ -0,0 +1 @@
|
|||||||
|
0e4a486e8d81d00f192d2816ae8892d1536fbf86ae98681bec683af12578939b
|
@ -0,0 +1 @@
|
|||||||
|
Part1
|
@ -0,0 +1 @@
|
|||||||
|
Unknown
|
@ -0,0 +1 @@
|
|||||||
|
TTrD3JA/y3l0cS9dhrio/jKEUhxkBVsj/mloUOffZUA=
|
@ -0,0 +1 @@
|
|||||||
|
sZOqnUMBAK57oEsGNoqXdIkxerNH1aGLv3IbvWssdAk=
|
@ -0,0 +1 @@
|
|||||||
|
sha256:dd0aa4847bd3e3b9d3970b1dd1e90ebd2e90e731873663167e3374c01b19fec1
|
@ -0,0 +1 @@
|
|||||||
|
Linux
|
@ -0,0 +1 @@
|
|||||||
|
DotNetCore
|
@ -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"}
|
@ -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
|
@ -0,0 +1,4 @@
|
|||||||
|
// <autogenerated />
|
||||||
|
using System;
|
||||||
|
using System.Reflection;
|
||||||
|
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v6.0", FrameworkDisplayName = ".NET 6.0")]
|
@ -0,0 +1,23 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <auto-generated>
|
||||||
|
// Этот код создан программой.
|
||||||
|
// Исполняемая версия:4.0.30319.42000
|
||||||
|
//
|
||||||
|
// Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
|
||||||
|
// повторной генерации кода.
|
||||||
|
// </auto-generated>
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
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.
|
||||||
|
|
@ -0,0 +1 @@
|
|||||||
|
d43ff5423a16d15322b758e4b8a4a64d2ecac68213123491629720a8f32bfc9b
|
@ -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 =
|
@ -0,0 +1,8 @@
|
|||||||
|
// <auto-generated/>
|
||||||
|
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;
|
Binary file not shown.
@ -0,0 +1 @@
|
|||||||
|
85e76181036589b7b80e39219fc840736371361aec3e5d3ab435e7bccd4b3a70
|
@ -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
|
BIN
almukhammetov_bulat_lab_2/Part1/obj/Debug/net6.0/Part1.dll
Normal file
BIN
almukhammetov_bulat_lab_2/Part1/obj/Debug/net6.0/Part1.dll
Normal file
Binary file not shown.
@ -0,0 +1 @@
|
|||||||
|
e58803a5fe1e3b75ac9b204bdcc313077684139e3e7407db3e2e667ff77ba1c1
|
BIN
almukhammetov_bulat_lab_2/Part1/obj/Debug/net6.0/Part1.pdb
Normal file
BIN
almukhammetov_bulat_lab_2/Part1/obj/Debug/net6.0/Part1.pdb
Normal file
Binary file not shown.
BIN
almukhammetov_bulat_lab_2/Part1/obj/Debug/net6.0/apphost.exe
Normal file
BIN
almukhammetov_bulat_lab_2/Part1/obj/Debug/net6.0/apphost.exe
Normal file
Binary file not shown.
BIN
almukhammetov_bulat_lab_2/Part1/obj/Debug/net6.0/ref/Part1.dll
Normal file
BIN
almukhammetov_bulat_lab_2/Part1/obj/Debug/net6.0/ref/Part1.dll
Normal file
Binary file not shown.
Binary file not shown.
@ -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"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,21 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8" standalone="no"?>
|
||||||
|
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
|
||||||
|
<RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
|
||||||
|
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
|
||||||
|
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
|
||||||
|
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
|
||||||
|
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\73bul\.nuget\packages\</NuGetPackageFolders>
|
||||||
|
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
|
||||||
|
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.8.0</NuGetToolVersion>
|
||||||
|
</PropertyGroup>
|
||||||
|
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
|
||||||
|
<SourceRoot Include="C:\Users\73bul\.nuget\packages\" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ImportGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
|
||||||
|
<Import Project="$(NuGetPackageRoot)microsoft.visualstudio.azure.containers.tools.targets\1.19.4\build\Microsoft.VisualStudio.Azure.Containers.Tools.Targets.props" Condition="Exists('$(NuGetPackageRoot)microsoft.visualstudio.azure.containers.tools.targets\1.19.4\build\Microsoft.VisualStudio.Azure.Containers.Tools.Targets.props')" />
|
||||||
|
</ImportGroup>
|
||||||
|
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
|
||||||
|
<PkgMicrosoft_VisualStudio_Azure_Containers_Tools_Targets Condition=" '$(PkgMicrosoft_VisualStudio_Azure_Containers_Tools_Targets)' == '' ">C:\Users\73bul\.nuget\packages\microsoft.visualstudio.azure.containers.tools.targets\1.19.4</PkgMicrosoft_VisualStudio_Azure_Containers_Tools_Targets>
|
||||||
|
</PropertyGroup>
|
||||||
|
</Project>
|
@ -0,0 +1,6 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8" standalone="no"?>
|
||||||
|
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<ImportGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
|
||||||
|
<Import Project="$(NuGetPackageRoot)microsoft.visualstudio.azure.containers.tools.targets\1.19.4\build\Microsoft.VisualStudio.Azure.Containers.Tools.Targets.targets" Condition="Exists('$(NuGetPackageRoot)microsoft.visualstudio.azure.containers.tools.targets\1.19.4\build\Microsoft.VisualStudio.Azure.Containers.Tools.Targets.targets')" />
|
||||||
|
</ImportGroup>
|
||||||
|
</Project>
|
166
almukhammetov_bulat_lab_2/Part1/obj/project.assets.json
Normal file
166
almukhammetov_bulat_lab_2/Part1/obj/project.assets.json
Normal file
@ -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"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
10
almukhammetov_bulat_lab_2/Part1/obj/project.nuget.cache
Normal file
10
almukhammetov_bulat_lab_2/Part1/obj/project.nuget.cache
Normal file
@ -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": []
|
||||||
|
}
|
Binary file not shown.
BIN
almukhammetov_bulat_lab_2/Part2/.vs/Part2/v17/.futdcache.v2
Normal file
BIN
almukhammetov_bulat_lab_2/Part2/.vs/Part2/v17/.futdcache.v2
Normal file
Binary file not shown.
BIN
almukhammetov_bulat_lab_2/Part2/.vs/Part2/v17/.suo
Normal file
BIN
almukhammetov_bulat_lab_2/Part2/.vs/Part2/v17/.suo
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
20
almukhammetov_bulat_lab_2/Part2/Dockerfile
Normal file
20
almukhammetov_bulat_lab_2/Part2/Dockerfile
Normal file
@ -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"]
|
16
almukhammetov_bulat_lab_2/Part2/Part2.csproj
Normal file
16
almukhammetov_bulat_lab_2/Part2/Part2.csproj
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
|
<PropertyGroup>
|
||||||
|
<OutputType>Exe</OutputType>
|
||||||
|
<TargetFramework>net6.0</TargetFramework>
|
||||||
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
|
<Nullable>enable</Nullable>
|
||||||
|
<DockerDefaultTargetOS>Linux</DockerDefaultTargetOS>
|
||||||
|
<DockerfileContext>.</DockerfileContext>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.19.4" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
|
</Project>
|
6
almukhammetov_bulat_lab_2/Part2/Part2.csproj.user
Normal file
6
almukhammetov_bulat_lab_2/Part2/Part2.csproj.user
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<PropertyGroup>
|
||||||
|
<ActiveDebugProfile>Docker</ActiveDebugProfile>
|
||||||
|
</PropertyGroup>
|
||||||
|
</Project>
|
25
almukhammetov_bulat_lab_2/Part2/Part2.sln
Normal file
25
almukhammetov_bulat_lab_2/Part2/Part2.sln
Normal file
@ -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
|
43
almukhammetov_bulat_lab_2/Part2/Program.cs
Normal file
43
almukhammetov_bulat_lab_2/Part2/Program.cs
Normal file
@ -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("Файл с данными не найден.");
|
||||||
|
}
|
@ -0,0 +1,10 @@
|
|||||||
|
{
|
||||||
|
"profiles": {
|
||||||
|
"Part2": {
|
||||||
|
"commandName": "Project"
|
||||||
|
},
|
||||||
|
"Docker": {
|
||||||
|
"commandName": "Docker"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -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"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
BIN
almukhammetov_bulat_lab_2/Part2/bin/Debug/net6.0/Part2.dll
Normal file
BIN
almukhammetov_bulat_lab_2/Part2/bin/Debug/net6.0/Part2.dll
Normal file
Binary file not shown.
BIN
almukhammetov_bulat_lab_2/Part2/bin/Debug/net6.0/Part2.exe
Normal file
BIN
almukhammetov_bulat_lab_2/Part2/bin/Debug/net6.0/Part2.exe
Normal file
Binary file not shown.
BIN
almukhammetov_bulat_lab_2/Part2/bin/Debug/net6.0/Part2.pdb
Normal file
BIN
almukhammetov_bulat_lab_2/Part2/bin/Debug/net6.0/Part2.pdb
Normal file
Binary file not shown.
@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
"runtimeOptions": {
|
||||||
|
"tfm": "net6.0",
|
||||||
|
"framework": {
|
||||||
|
"name": "Microsoft.NETCore.App",
|
||||||
|
"version": "6.0.0"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1 @@
|
|||||||
|
/app/bin/Debug/net6.0/Part2.dll
|
@ -0,0 +1 @@
|
|||||||
|
--additionalProbingPath /.nuget/fallbackpackages
|
@ -0,0 +1 @@
|
|||||||
|
Skipped
|
@ -0,0 +1 @@
|
|||||||
|
Fast
|
@ -0,0 +1 @@
|
|||||||
|
1fe2d124ad6b2225a5f45fabeb3dd05dd90e633345ba8766d9cdca167467b2b5
|
@ -0,0 +1 @@
|
|||||||
|
Part2
|
@ -0,0 +1 @@
|
|||||||
|
Unknown
|
@ -0,0 +1 @@
|
|||||||
|
FA/VqFTcNaa6LXURs2j5Sruk0BspG9P9VkmCwMqNC7Y=
|
@ -0,0 +1 @@
|
|||||||
|
WmQgrkIU3BZ0r0bqGVoACrCjY0+g6rpm1pggW68PCdw=
|
@ -0,0 +1 @@
|
|||||||
|
sha256:3fc78879f41d1d402b233625c159287df4518c19e9f4e0aadfffa35e8e297cd4
|
@ -0,0 +1 @@
|
|||||||
|
Linux
|
@ -0,0 +1 @@
|
|||||||
|
DotNetCore
|
@ -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"}
|
@ -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
|
@ -0,0 +1,4 @@
|
|||||||
|
// <autogenerated />
|
||||||
|
using System;
|
||||||
|
using System.Reflection;
|
||||||
|
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v6.0", FrameworkDisplayName = ".NET 6.0")]
|
@ -0,0 +1,23 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <auto-generated>
|
||||||
|
// Этот код создан программой.
|
||||||
|
// Исполняемая версия:4.0.30319.42000
|
||||||
|
//
|
||||||
|
// Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
|
||||||
|
// повторной генерации кода.
|
||||||
|
// </auto-generated>
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
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.
|
||||||
|
|
@ -0,0 +1 @@
|
|||||||
|
bdc1c8a5590f60140f8f67460d200cd0c5c31103852d78f7fda3a24e6942fb1b
|
@ -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 =
|
@ -0,0 +1,8 @@
|
|||||||
|
// <auto-generated/>
|
||||||
|
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;
|
Binary file not shown.
@ -0,0 +1 @@
|
|||||||
|
344148ec750b96c51da7163a5f5a5b97a8f5f90d
|
@ -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
|
BIN
almukhammetov_bulat_lab_2/Part2/obj/Debug/net6.0/Part2.dll
Normal file
BIN
almukhammetov_bulat_lab_2/Part2/obj/Debug/net6.0/Part2.dll
Normal file
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user