Compare commits

..

1 Commits

Author SHA1 Message Date
1e11f844d1 degtyarev_mikhail_lab_3 is ready 2024-01-21 19:06:12 +04:00
1057 changed files with 233 additions and 32443 deletions

View File

@ -1,32 +0,0 @@
# Используем образ .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"]

View File

@ -1,16 +0,0 @@
<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>

View File

@ -1,9 +0,0 @@
<?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>

View File

@ -1,25 +0,0 @@

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

View File

@ -1,55 +0,0 @@
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());
}

View File

@ -1,10 +0,0 @@
{
"profiles": {
"Part1": {
"commandName": "Project"
},
"Docker": {
"commandName": "Docker"
}
}
}

View File

@ -1,34 +0,0 @@
{
"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"
}
}
}

View File

@ -1,9 +0,0 @@
{
"runtimeOptions": {
"tfm": "net6.0",
"framework": {
"name": "Microsoft.NETCore.App",
"version": "6.0.0"
}
}
}

View File

@ -1 +0,0 @@
/app/bin/Debug/net6.0/Part1.dll

View File

@ -1 +0,0 @@
--additionalProbingPath /.nuget/fallbackpackages

View File

@ -1 +0,0 @@
0e4a486e8d81d00f192d2816ae8892d1536fbf86ae98681bec683af12578939b

View File

@ -1 +0,0 @@
TTrD3JA/y3l0cS9dhrio/jKEUhxkBVsj/mloUOffZUA=

View File

@ -1 +0,0 @@
sZOqnUMBAK57oEsGNoqXdIkxerNH1aGLv3IbvWssdAk=

View File

@ -1 +0,0 @@
sha256:dd0aa4847bd3e3b9d3970b1dd1e90ebd2e90e731873663167e3374c01b19fec1

View File

@ -1 +0,0 @@
{"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"}

View File

@ -1 +0,0 @@
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

View File

@ -1,4 +0,0 @@
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v6.0", FrameworkDisplayName = ".NET 6.0")]

View File

@ -1,23 +0,0 @@
//------------------------------------------------------------------------------
// <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.

View File

@ -1 +0,0 @@
d43ff5423a16d15322b758e4b8a4a64d2ecac68213123491629720a8f32bfc9b

View File

@ -1,13 +0,0 @@
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 =

View File

@ -1,8 +0,0 @@
// <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;

View File

@ -1 +0,0 @@
85e76181036589b7b80e39219fc840736371361aec3e5d3ab435e7bccd4b3a70

View File

@ -1,14 +0,0 @@
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

View File

@ -1 +0,0 @@
e58803a5fe1e3b75ac9b204bdcc313077684139e3e7407db3e2e667ff77ba1c1

View File

@ -1,69 +0,0 @@
{
"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"
}
}
}
}
}

View File

@ -1,21 +0,0 @@
<?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>

View File

@ -1,6 +0,0 @@
<?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>

View File

@ -1,166 +0,0 @@
{
"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"
}
}
}
}

View File

@ -1,10 +0,0 @@
{
"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": []
}

View File

@ -1,20 +0,0 @@
#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"]

View File

@ -1,16 +0,0 @@
<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>

View File

@ -1,6 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<ActiveDebugProfile>Docker</ActiveDebugProfile>
</PropertyGroup>
</Project>

View File

@ -1,25 +0,0 @@

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

View File

@ -1,43 +0,0 @@
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("Файл с данными не найден.");
}

View File

@ -1,10 +0,0 @@
{
"profiles": {
"Part2": {
"commandName": "Project"
},
"Docker": {
"commandName": "Docker"
}
}
}

View File

@ -1,34 +0,0 @@
{
"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"
}
}
}

View File

@ -1,9 +0,0 @@
{
"runtimeOptions": {
"tfm": "net6.0",
"framework": {
"name": "Microsoft.NETCore.App",
"version": "6.0.0"
}
}
}

View File

@ -1 +0,0 @@
/app/bin/Debug/net6.0/Part2.dll

View File

@ -1 +0,0 @@
--additionalProbingPath /.nuget/fallbackpackages

View File

@ -1 +0,0 @@
1fe2d124ad6b2225a5f45fabeb3dd05dd90e633345ba8766d9cdca167467b2b5

View File

@ -1 +0,0 @@
FA/VqFTcNaa6LXURs2j5Sruk0BspG9P9VkmCwMqNC7Y=

View File

@ -1 +0,0 @@
WmQgrkIU3BZ0r0bqGVoACrCjY0+g6rpm1pggW68PCdw=

View File

@ -1 +0,0 @@
sha256:3fc78879f41d1d402b233625c159287df4518c19e9f4e0aadfffa35e8e297cd4

View File

@ -1 +0,0 @@
{"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"}

View File

@ -1 +0,0 @@
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

View File

@ -1,4 +0,0 @@
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v6.0", FrameworkDisplayName = ".NET 6.0")]

View File

@ -1,23 +0,0 @@
//------------------------------------------------------------------------------
// <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.

View File

@ -1 +0,0 @@
bdc1c8a5590f60140f8f67460d200cd0c5c31103852d78f7fda3a24e6942fb1b

View File

@ -1,13 +0,0 @@
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 =

View File

@ -1,8 +0,0 @@
// <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;

View File

@ -1 +0,0 @@
344148ec750b96c51da7163a5f5a5b97a8f5f90d

View File

@ -1,14 +0,0 @@
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

Some files were not shown because too many files have changed in this diff Show More