Merge pull request '[Л/Р 1,2] Клементьева Жанна' (#38) from klementeva/distributed-computing:klementeva-ja-lab-2 into main

Reviewed-on: http://student.git.athene.tech/v.moiseev/distributed-computing/pulls/38
This commit is contained in:
Vladislav Moiseev 2023-12-17 22:03:59 +04:00
commit a16e0f20c5
77 changed files with 1540 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 74 KiB

View File

@ -0,0 +1,158 @@
# Отчёт по лабораторной работе №1
Выполнил: студент гр. ИСЭБД-41 Клементьева Жанна.
## Разворачивание сервера Wordpress
Содержимое файла `docker-compose.yml`:
```yaml
version: '3'
services: # Описание контейнеров
db: # База данных
image: mysql:5.7 # Образ базы данных и версия
volumes: # Тома для хранения данных, для контейнеров
- db_data:/var/lib/mysql
restart: always # Параметр перезапуска БД
environment: # Переменные среды для контейнера
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: wordpress
MYSQL_USER: wordpress
MYSQL_PASSWORD: wordpress
networks: # Параметры сети
- wpsite
wordpress: # Контейнер с Wordpress
depends_on: # Параметр зависимости от работы базы данных (в данном случае)
- db
image: wordpress:latest # Образ Wordpress (последняя версия)
ports: # Порт, проложенный из контейнера в хост
- '8000:80'
restart: always # Параметр перезапуска
volumes: ['./:/var/www/html'] # Тома для хранения данных, для контейнеров
environment: # Переменные среды для контейнера
WORDPRESS_DB_HOST: db:3306
WORDPRESS_DB_USER: wordpress
WORDPRESS_DB_PASSWORD: wordpress
networks: # Параметры сети
- wpsite
networks:
wpsite:
volumes:
db_data:
```
Разворачивается командой `docker-compose up`.
Убеждаемся, что всё работает, прописываем в браузере "localhost:8000", так как docker-compose.yaml мы указали порт 8000:
![port8000](port8000.png)
![localhost:8000](localhost8000.png)
Открывается стартовое окно Wordpress, где мы можем выбрать язык и приступить к работе, если это потребуется:
![WPLanguage](WPLanguage.png)
![WPSettings](WPSettings.png)
Удаляется всё командой `docker-compose down` или `docker-compose down -v`.
## Разворачивание сервера Gitea
Содержимое файла `docker-compose.yml`:
```yaml
version: "3"
networks:
gitea:
external: false
services: # Описание служб (контейнеров).
server: # Сервер
image: gitea/gitea:1.20.4 # Образ базы данных и версия
container_name: gitea # Наименование контейнера
environment: # Переменные среды для контейнера
- USER_UID=1000
- USER_GID=1000
- GITEA__database__DB_TYPE=mysql
- GITEA__database__HOST=db:3306
- GITEA__database__NAME=gitea
- GITEA__database__USER=gitea
- GITEA__database__PASSWD=gitea
restart: always # Параметр перезапуска
networks: # Параметры сети
- gitea
volumes: # Тома для хранения данных, для контейнеров
- ./gitea:/data
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
ports: # Порты, проложенные из контейнера в хост
- "3000:80"
- "222:22"
depends_on: # Параметр зависимости от работы базы данных (в данном случае)
- db
db: # База данных
image: mysql:8 # Образ базы данных и версия
restart: always # Параметр перезапуска БД
environment: # Переменные среды для контейнера
- MYSQL_ROOT_PASSWORD=gitea
- MYSQL_USER=gitea
- MYSQL_PASSWORD=gitea
- MYSQL_DATABASE=gitea
networks: # Параметры сети
- gitea
volumes: # Тома для хранения данных, для контейнеров
- ./mysql:/var/lib/mysql
```
Разворачивается командой `docker-compose up`.
Убеждаемся, что всё работает, прописываем в браузере "localhost:3000", так как docker-compose.yaml мы указали порт 3000. Открывается стартовое окно Gitea, где мы можем настроить систему и приступить к работе, если это потребуется:
![localhost:3000](localhost3000.png)
Удаляется всё командой `docker-compose down` или `docker-compose down -v`.
## Разворачивание сервера Mediawiki
Содержимое файла `docker-compose.yml`:
```yaml
version: '3.2'
services: # Описание контейнеров
web: # Контейнер с Mediawiki
image: mediawiki:lts # Образ Mediawiki
ports: # Порт, проложенный из контейнера в хост
- 9999:80
links: # Ссылка на контейнер "database"
- database
restart: unless-stopped # Параметр перезапуска
volumes: # Тома для хранения данных, для контейнеров
- ./images:/var/www/html/images
database: # База данных
image: mariadb # Образ базы данных
environment: # Переменные среды для контейнера
MYSQL_DATABASE: 'wiki'
MYSQL_USER: 'wikiuser234234'
MYSQL_PASSWORD: 'YOUR_SECURE_PASSWORD'
MYSQL_RANDOM_ROOT_PASSWORD: 'yes'
volumes: # Тома для хранения данных, для контейнеров
- ./database:/var/lib/mysql
restart: unless-stopped # Параметр перезапуска
```
Разворачивается командой `docker-compose up`.
Убеждаемся, что всё работает, прописываем в браузере "localhost:9999", так как docker-compose.yaml мы указали порт 9999. Открывается стартовое окно Mediawiki, где мы можем настроить систему и приступить к работе, если это потребуется:
![Mediawiki](Mediawiki.png)
Удаляется всё командой `docker-compose down` или `docker-compose down -v`.

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 60 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 71 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.3 KiB

477
tasks/klementeva-ja/lab_2/.gitignore vendored Normal file
View File

@ -0,0 +1,477 @@
## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.
##
## Get latest from https://github.com/github/gitignore/blob/main/VisualStudio.gitignore
# User-specific files
*.rsuser
*.suo
*.user
*.userosscache
*.sln.docstates
# User-specific files (MonoDevelop/Xamarin Studio)
*.userprefs
# Mono auto generated files
mono_crash.*
# Build results
[Dd]ebug/
[Dd]ebugPublic/
[Rr]elease/
[Rr]eleases/
x64/
x86/
[Ww][Ii][Nn]32/
[Aa][Rr][Mm]/
[Aa][Rr][Mm]64/
bld/
[Bb]in/
[Oo]bj/
[Ll]og/
[Ll]ogs/
# Visual Studio 2015/2017 cache/options directory
.vs/
# Uncomment if you have tasks that create the project's static files in wwwroot
#wwwroot/
# Visual Studio 2017 auto generated files
Generated\ Files/
# MSTest test Results
[Tt]est[Rr]esult*/
[Bb]uild[Ll]og.*
# NUnit
*.VisualState.xml
TestResult.xml
nunit-*.xml
# Build Results of an ATL Project
[Dd]ebugPS/
[Rr]eleasePS/
dlldata.c
# Benchmark Results
BenchmarkDotNet.Artifacts/
# .NET
project.lock.json
project.fragment.lock.json
artifacts/
# Tye
.tye/
# ASP.NET Scaffolding
ScaffoldingReadMe.txt
# StyleCop
StyleCopReport.xml
# Files built by Visual Studio
*_i.c
*_p.c
*_h.h
*.ilk
*.meta
*.obj
*.iobj
*.pch
*.pdb
*.ipdb
*.pgc
*.pgd
*.rsp
*.sbr
*.tlb
*.tli
*.tlh
*.tmp
*.tmp_proj
*_wpftmp.csproj
*.log
*.tlog
*.vspscc
*.vssscc
.builds
*.pidb
*.svclog
*.scc
# Chutzpah Test files
_Chutzpah*
# Visual C++ cache files
ipch/
*.aps
*.ncb
*.opendb
*.opensdf
*.sdf
*.cachefile
*.VC.db
*.VC.VC.opendb
# Visual Studio profiler
*.psess
*.vsp
*.vspx
*.sap
# Visual Studio Trace Files
*.e2e
# TFS 2012 Local Workspace
$tf/
# Guidance Automation Toolkit
*.gpState
# ReSharper is a .NET coding add-in
_ReSharper*/
*.[Rr]e[Ss]harper
*.DotSettings.user
# TeamCity is a build add-in
_TeamCity*
# DotCover is a Code Coverage Tool
*.dotCover
# AxoCover is a Code Coverage Tool
.axoCover/*
!.axoCover/settings.json
# Coverlet is a free, cross platform Code Coverage Tool
coverage*.json
coverage*.xml
coverage*.info
# Visual Studio code coverage results
*.coverage
*.coveragexml
# NCrunch
_NCrunch_*
.*crunch*.local.xml
nCrunchTemp_*
# MightyMoose
*.mm.*
AutoTest.Net/
# Web workbench (sass)
.sass-cache/
# Installshield output folder
[Ee]xpress/
# DocProject is a documentation generator add-in
DocProject/buildhelp/
DocProject/Help/*.HxT
DocProject/Help/*.HxC
DocProject/Help/*.hhc
DocProject/Help/*.hhk
DocProject/Help/*.hhp
DocProject/Help/Html2
DocProject/Help/html
# Click-Once directory
publish/
# Publish Web Output
*.[Pp]ublish.xml
*.azurePubxml
# Note: Comment the next line if you want to checkin your web deploy settings,
# but database connection strings (with potential passwords) will be unencrypted
*.pubxml
*.publishproj
# Microsoft Azure Web App publish settings. Comment the next line if you want to
# checkin your Azure Web App publish settings, but sensitive information contained
# in these scripts will be unencrypted
PublishScripts/
# NuGet Packages
*.nupkg
# NuGet Symbol Packages
*.snupkg
# The packages folder can be ignored because of Package Restore
**/[Pp]ackages/*
# except build/, which is used as an MSBuild target.
!**/[Pp]ackages/build/
# Uncomment if necessary however generally it will be regenerated when needed
#!**/[Pp]ackages/repositories.config
# NuGet v3's project.json files produces more ignorable files
*.nuget.props
*.nuget.targets
# Microsoft Azure Build Output
csx/
*.build.csdef
# Microsoft Azure Emulator
ecf/
rcf/
# Windows Store app package directories and files
AppPackages/
BundleArtifacts/
Package.StoreAssociation.xml
_pkginfo.txt
*.appx
*.appxbundle
*.appxupload
# Visual Studio cache files
# files ending in .cache can be ignored
*.[Cc]ache
# but keep track of directories ending in .cache
!?*.[Cc]ache/
# Others
ClientBin/
~$*
*~
*.dbmdl
*.dbproj.schemaview
*.jfm
*.pfx
*.publishsettings
orleans.codegen.cs
# Including strong name files can present a security risk
# (https://github.com/github/gitignore/pull/2483#issue-259490424)
#*.snk
# Since there are multiple workflows, uncomment next line to ignore bower_components
# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622)
#bower_components/
# RIA/Silverlight projects
Generated_Code/
# Backup & report files from converting an old project file
# to a newer Visual Studio version. Backup files are not needed,
# because we have git ;-)
_UpgradeReport_Files/
Backup*/
UpgradeLog*.XML
UpgradeLog*.htm
ServiceFabricBackup/
*.rptproj.bak
# SQL Server files
*.mdf
*.ldf
*.ndf
# Business Intelligence projects
*.rdl.data
*.bim.layout
*.bim_*.settings
*.rptproj.rsuser
*- [Bb]ackup.rdl
*- [Bb]ackup ([0-9]).rdl
*- [Bb]ackup ([0-9][0-9]).rdl
# Microsoft Fakes
FakesAssemblies/
# GhostDoc plugin setting file
*.GhostDoc.xml
# Node.js Tools for Visual Studio
.ntvs_analysis.dat
node_modules/
# Visual Studio 6 build log
*.plg
# Visual Studio 6 workspace options file
*.opt
# Visual Studio 6 auto-generated workspace file (contains which files were open etc.)
*.vbw
# Visual Studio 6 auto-generated project file (contains which files were open etc.)
*.vbp
# Visual Studio 6 workspace and project file (working project files containing files to include in project)
*.dsw
*.dsp
# Visual Studio 6 technical files
*.ncb
*.aps
# Visual Studio LightSwitch build output
**/*.HTMLClient/GeneratedArtifacts
**/*.DesktopClient/GeneratedArtifacts
**/*.DesktopClient/ModelManifest.xml
**/*.Server/GeneratedArtifacts
**/*.Server/ModelManifest.xml
_Pvt_Extensions
# Paket dependency manager
.paket/paket.exe
paket-files/
# FAKE - F# Make
.fake/
# CodeRush personal settings
.cr/personal
# Python Tools for Visual Studio (PTVS)
__pycache__/
*.pyc
# Cake - Uncomment if you are using it
# tools/**
# !tools/packages.config
# Tabs Studio
*.tss
# Telerik's JustMock configuration file
*.jmconfig
# BizTalk build output
*.btp.cs
*.btm.cs
*.odx.cs
*.xsd.cs
# OpenCover UI analysis results
OpenCover/
# Azure Stream Analytics local run output
ASALocalRun/
# MSBuild Binary and Structured Log
*.binlog
# NVidia Nsight GPU debugger configuration file
*.nvuser
# MFractors (Xamarin productivity tool) working folder
.mfractor/
# Local History for Visual Studio
.localhistory/
# Visual Studio History (VSHistory) files
.vshistory/
# BeatPulse healthcheck temp database
healthchecksdb
# Backup folder for Package Reference Convert tool in Visual Studio 2017
MigrationBackup/
# Ionide (cross platform F# VS Code tools) working folder
.ionide/
# Fody - auto-generated XML schema
FodyWeavers.xsd
# VS Code files for those working on multiple tools
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
*.code-workspace
# Local History for Visual Studio Code
.history/
# Windows Installer files from build outputs
*.cab
*.msi
*.msix
*.msm
*.msp
# JetBrains Rider
*.sln.iml
##
## Visual studio for Mac
##
# globs
Makefile.in
*.userprefs
*.usertasks
config.make
config.status
aclocal.m4
install-sh
autom4te.cache/
*.tar.gz
tarballs/
test-results/
# Mac bundle stuff
*.dmg
*.app
# content below from: https://github.com/github/gitignore/blob/master/Global/macOS.gitignore
# General
.DS_Store
.AppleDouble
.LSOverride
# Icon must end with two \r
Icon
# Thumbnails
._*
# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
.com.apple.timemachine.donotpresent
# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk
# content below from: https://github.com/github/gitignore/blob/master/Global/Windows.gitignore
# Windows thumbnail cache files
Thumbs.db
ehthumbs.db
ehthumbs_vista.db
# Dump file
*.stackdump
# Folder config file
[Dd]esktop.ini
# Recycle Bin used on file shares
$RECYCLE.BIN/
# Windows Installer files
*.cab
*.msi
*.msix
*.msm
*.msp
# Windows shortcuts
*.lnk

View File

@ -0,0 +1,75 @@
# Отчёт по лабораторной работе №2
Выполнил: студентка гр. ИСЭбд-41 Клементьева Жанна.
Вариант программы 1: Ищет в каталоге `/var/data` файл с наибольшим количеством строк и перекладывает его в `/var/result/data.txt`.
Вариант программы 2: Ищет наименьшее число из файла `/var/data/data.txt` и сохраняет количество таких чисел из последовательности в `/var/result/result.txt`.
## Создание приложений
Создадим 2 приложения.
Был выбран язык C# и технология .NET 6, потому что потому.
Для создания обычных консольных приложений воспользуемся командами:
```sh
dotnet new console -o worker-1
dotnet new console -o worker-2
```
Согласно варианту программа 1 ищет в каталоге `/var/data` файл с наибольшим количеством строк и перекладывает его в `/var/result/data.txt`.
[Исходный текст программы worker-1](worker-1/Program.cs)
Согласно варианту программа 2 ищет наименьшее число из файла `/var/data/data.txt` и сохраняет количество таких чисел из последовательности в `/var/result/result.txt`.
[Исходный текст программы worker-2](worker-2/Program.cs)
Дополнительно создан файл [.gitignore](.gitignore) для того, чтобы не закоммитить в git ничего лишнего.
## Настройка окружения
Для связи двух приложений воспользуемся следующей схемой:
1. Каталог `./data` должен быть примонтирован в каталог `/var/data` для программы 1.
Оттуда будут браться исходные данные.
2. Каталог `./result-1` должен быть примонтирован в каталог `/var/result` для программы 2.
Туда будут складываться промежуточные данные.
3. Каталог `./result-1` также должен быть примонтирован в каталог `/var/data` для программы 2.
Оттуда будут браться промежуточные результаты.
4. Каталог `./result` должен быть примонтирован в каталог `/var/result` для программы 2.
Туда будут складывать результаты финальной обработки.
Для каждой программы были созданы файлы Dockerfile ([программа 1](worker-1/Dockerfile.yml), [программа 2](worker-1/Dockerfile.yml)) с подробным описанием процесса сборки.
Был создан файл [docker-compose.yml](docker-compose.yml), в котором указан манифест для запуска распределённого приложения.
Дополнительно был создан файл [.gitignore](.gitignore), чтобы исключить для сборки и коммита всё лишнее.
## Сборка и запуск
В каталог `./data` помещены 2 файла.
В первом файле были числа 1 2 3, во втором 1 1 7 5 3 1.
Для запуска приложения необходимо ввести команду `docker compose up ---build`.
Результат запуска после сборки:
```
[+] Running 2/0
- Container lab_2-worker-1-1 Created
- Container lab_2-worker-2-1 Created
Attaching to lab_2-worker-1-1, lab_2-worker-2-1
lab_2-worker-1-1 | Начало обработки файла /var/data/another data.txt
lab_2-worker-1-1 | Начало обработки файла /var/data/data.txt
lab_2-worker-1-1 exited with code 0
lab_2-worker-2-1 | Чисел для обработки: 8
lab_2-worker-2-1 exited with code 0
```
В результате в каталоге `./result` создался файл `result.txt` с содержимым `3`, что соответствует входным данным.
Изменение значений в файлах из каталога `./data` также изменяет содержимое в файлах из каталогов `./result-1` и `./result`.
![resultat](resultat.png)

View File

@ -0,0 +1,16 @@
version: "3.1"
services:
worker-1:
build: ./worker-1
volumes:
#монтируем локальную папку в запущенный образ контейнера
- ./data:/var/data
- ./result-1:/var/result
worker-2:
build: ./worker-2
volumes:
- ./result-1:/var/data
- ./result:/var/result
#добавляется зависимость, так как по условию второе приложение зависит от первого
depends_on:
- worker-1

View File

@ -0,0 +1,72 @@
{
"version": 3,
"targets": {
"net6.0": {}
},
"libraries": {},
"projectFileDependencyGroups": {
"net6.0": []
},
"packageFolders": {
"C:\\Users\\Angelina\\.nuget\\packages\\": {},
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages": {}
},
"project": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "C:\\Users\\Angelina\\source\\repos\\rvip_j2\\rvip_j2.csproj",
"projectName": "rvip_j2",
"projectPath": "C:\\Users\\Angelina\\source\\repos\\rvip_j2\\rvip_j2.csproj",
"packagesPath": "C:\\Users\\Angelina\\.nuget\\packages\\",
"outputPath": "C:\\Users\\Angelina\\source\\repos\\rvip_j2\\obj\\",
"projectStyle": "PackageReference",
"fallbackFolders": [
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
],
"configFilePaths": [
"C:\\Users\\Angelina\\AppData\\Roaming\\NuGet\\NuGet.Config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
],
"originalTargetFrameworks": [
"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",
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48"
],
"assetTargetFallback": true,
"warn": true,
"frameworkReferences": {
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\6.0.302\\RuntimeIdentifierGraph.json"
}
}
}
}

View File

@ -0,0 +1,8 @@
{
"version": 2,
"dgSpecHash": "hiebTXlxthjXc1QJSKY3S0IQRu5qUGAH0gSd/Nco/5iDafnuAWzESuqJHEv4balZJHuPkpIs5zlfPwaMVwwrWw==",
"success": true,
"projectFilePath": "C:\\Users\\Angelina\\source\\repos\\rvip_j2\\rvip_j2.csproj",
"expectedPackageFiles": [],
"logs": []
}

View File

@ -0,0 +1,66 @@
{
"format": 1,
"restore": {
"C:\\Users\\Angelina\\source\\repos\\rvip_j2\\rvip_j2.csproj": {}
},
"projects": {
"C:\\Users\\Angelina\\source\\repos\\rvip_j2\\rvip_j2.csproj": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "C:\\Users\\Angelina\\source\\repos\\rvip_j2\\rvip_j2.csproj",
"projectName": "rvip_j2",
"projectPath": "C:\\Users\\Angelina\\source\\repos\\rvip_j2\\rvip_j2.csproj",
"packagesPath": "C:\\Users\\Angelina\\.nuget\\packages\\",
"outputPath": "C:\\Users\\Angelina\\source\\repos\\rvip_j2\\obj\\",
"projectStyle": "PackageReference",
"fallbackFolders": [
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
],
"configFilePaths": [
"C:\\Users\\Angelina\\AppData\\Roaming\\NuGet\\NuGet.Config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
],
"originalTargetFrameworks": [
"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",
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48"
],
"assetTargetFallback": true,
"warn": true,
"frameworkReferences": {
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\6.0.302\\RuntimeIdentifierGraph.json"
}
}
}
}
}

View File

@ -0,0 +1,16 @@
<?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\Angelina\.nuget\packages\;C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages</NuGetPackageFolders>
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.2.1</NuGetToolVersion>
</PropertyGroup>
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<SourceRoot Include="C:\Users\Angelina\.nuget\packages\" />
<SourceRoot Include="C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages\" />
</ItemGroup>
</Project>

View File

@ -0,0 +1,2 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" />

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

View File

@ -0,0 +1,31 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.5.002.0
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "worker-1", "worker-1\worker-1.csproj", "{F6B29C3F-FC5C-4B48-A594-4B9316A21F56}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "worker-2", "worker-2\worker-2.csproj", "{B18DF6BB-6783-4F53-A5EE-140D07BF447C}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{F6B29C3F-FC5C-4B48-A594-4B9316A21F56}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{F6B29C3F-FC5C-4B48-A594-4B9316A21F56}.Debug|Any CPU.Build.0 = Debug|Any CPU
{F6B29C3F-FC5C-4B48-A594-4B9316A21F56}.Release|Any CPU.ActiveCfg = Release|Any CPU
{F6B29C3F-FC5C-4B48-A594-4B9316A21F56}.Release|Any CPU.Build.0 = Release|Any CPU
{B18DF6BB-6783-4F53-A5EE-140D07BF447C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{B18DF6BB-6783-4F53-A5EE-140D07BF447C}.Debug|Any CPU.Build.0 = Debug|Any CPU
{B18DF6BB-6783-4F53-A5EE-140D07BF447C}.Release|Any CPU.ActiveCfg = Release|Any CPU
{B18DF6BB-6783-4F53-A5EE-140D07BF447C}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {D0BD68D2-E574-457E-B29C-4A1167DE76D6}
EndGlobalSection
EndGlobal

View File

@ -0,0 +1,3 @@
1
2
3

View File

@ -0,0 +1,6 @@
1
1
7
5
3
1

View File

@ -0,0 +1,5 @@
1
2
3
4
5

View File

@ -0,0 +1 @@
3147483647

View File

@ -0,0 +1,15 @@
#указываем образ из которого будем брать все слои
FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build-env
#папка, с которой мы будем работать
WORKDIR /App
#копируем файл в рабочую дерикторию
COPY . ./
#запускаем команду
RUN dotnet restore
RUN dotnet publish -c Release -o out
FROM mcr.microsoft.com/dotnet/aspnet:6.0
WORKDIR /App
#копирует не из файловой системы хоста, а из того, что собрали на прерыдущей стадии
COPY --from=build-env /App/out .
ENTRYPOINT ["dotnet", "worker-1.dll"]

View File

@ -0,0 +1,13 @@
var files = Directory.GetFiles("/var/data");
int maxCount = 0;
string lagrestFile = "";
foreach(var file in files){
var lines = File.ReadAllLines(file);
if(lines.Count() > maxCount){
maxCount = lines.Count();
lagrestFile = file;
}
}
if(File.Exists("/var/result/data.txt"))
File.Delete("/var/result/data.txt");
File.Move(lagrestFile, "/var/result/data.txt");

View File

@ -0,0 +1,23 @@
{
"runtimeTarget": {
"name": ".NETCoreApp,Version=v6.0",
"signature": ""
},
"compilationOptions": {},
"targets": {
".NETCoreApp,Version=v6.0": {
"worker-1/1.0.0": {
"runtime": {
"worker-1.dll": {}
}
}
}
},
"libraries": {
"worker-1/1.0.0": {
"type": "project",
"serviceable": false,
"sha512": ""
}
}
}

View File

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

View File

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

View File

@ -0,0 +1,22 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
using System;
using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("worker-1")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")]
[assembly: System.Reflection.AssemblyProductAttribute("worker-1")]
[assembly: System.Reflection.AssemblyTitleAttribute("worker-1")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
// Создано классом WriteCodeFragment MSBuild.

View File

@ -0,0 +1 @@
9b423a53481895e7341de7e28fe8c945c03908af

View File

@ -0,0 +1,10 @@
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._SupportedPlatformList = Linux,macOS,Windows
build_property.RootNamespace = worker_1
build_property.ProjectDir = C:\Users\Angelina\source\repos\rvip_j2\worker-1\

View File

@ -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;

View File

@ -0,0 +1 @@
2ce983111ab3dfd18d5a764821ca2badebb59785

View File

@ -0,0 +1,15 @@
C:\Users\Angelina\source\repos\rvip_j2\worker-1\bin\Debug\net6.0\worker-1.exe
C:\Users\Angelina\source\repos\rvip_j2\worker-1\bin\Debug\net6.0\worker-1.deps.json
C:\Users\Angelina\source\repos\rvip_j2\worker-1\bin\Debug\net6.0\worker-1.runtimeconfig.json
C:\Users\Angelina\source\repos\rvip_j2\worker-1\bin\Debug\net6.0\worker-1.dll
C:\Users\Angelina\source\repos\rvip_j2\worker-1\bin\Debug\net6.0\worker-1.pdb
C:\Users\Angelina\source\repos\rvip_j2\worker-1\obj\Debug\net6.0\worker-1.csproj.AssemblyReference.cache
C:\Users\Angelina\source\repos\rvip_j2\worker-1\obj\Debug\net6.0\worker-1.GeneratedMSBuildEditorConfig.editorconfig
C:\Users\Angelina\source\repos\rvip_j2\worker-1\obj\Debug\net6.0\worker-1.AssemblyInfoInputs.cache
C:\Users\Angelina\source\repos\rvip_j2\worker-1\obj\Debug\net6.0\worker-1.AssemblyInfo.cs
C:\Users\Angelina\source\repos\rvip_j2\worker-1\obj\Debug\net6.0\worker-1.csproj.CoreCompileInputs.cache
C:\Users\Angelina\source\repos\rvip_j2\worker-1\obj\Debug\net6.0\worker-1.dll
C:\Users\Angelina\source\repos\rvip_j2\worker-1\obj\Debug\net6.0\refint\worker-1.dll
C:\Users\Angelina\source\repos\rvip_j2\worker-1\obj\Debug\net6.0\worker-1.pdb
C:\Users\Angelina\source\repos\rvip_j2\worker-1\obj\Debug\net6.0\worker-1.genruntimeconfig.cache
C:\Users\Angelina\source\repos\rvip_j2\worker-1\obj\Debug\net6.0\ref\worker-1.dll

View File

@ -0,0 +1 @@
09fd2cb6c9c353226ef9a0fc0e4386552dffb164

View File

@ -0,0 +1,72 @@
{
"version": 3,
"targets": {
"net6.0": {}
},
"libraries": {},
"projectFileDependencyGroups": {
"net6.0": []
},
"packageFolders": {
"C:\\Users\\Angelina\\.nuget\\packages\\": {},
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages": {}
},
"project": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "C:\\Users\\Angelina\\source\\repos\\rvip_j2\\worker-1\\worker-1.csproj",
"projectName": "worker-1",
"projectPath": "C:\\Users\\Angelina\\source\\repos\\rvip_j2\\worker-1\\worker-1.csproj",
"packagesPath": "C:\\Users\\Angelina\\.nuget\\packages\\",
"outputPath": "C:\\Users\\Angelina\\source\\repos\\rvip_j2\\worker-1\\obj\\",
"projectStyle": "PackageReference",
"fallbackFolders": [
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
],
"configFilePaths": [
"C:\\Users\\Angelina\\AppData\\Roaming\\NuGet\\NuGet.Config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
],
"originalTargetFrameworks": [
"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",
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48"
],
"assetTargetFallback": true,
"warn": true,
"frameworkReferences": {
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\6.0.302\\RuntimeIdentifierGraph.json"
}
}
}
}

View File

@ -0,0 +1,8 @@
{
"version": 2,
"dgSpecHash": "C2anyFjtRK0Epm22JYF/qjf/rPQav2nfpkocjB7jwVD+lUPaShv6REMOWux8v/WiQkOsZJDmvzWFBToAD24j9g==",
"success": true,
"projectFilePath": "C:\\Users\\Angelina\\source\\repos\\rvip_j2\\worker-1\\worker-1.csproj",
"expectedPackageFiles": [],
"logs": []
}

View File

@ -0,0 +1,66 @@
{
"format": 1,
"restore": {
"C:\\Users\\Angelina\\source\\repos\\rvip_j2\\worker-1\\worker-1.csproj": {}
},
"projects": {
"C:\\Users\\Angelina\\source\\repos\\rvip_j2\\worker-1\\worker-1.csproj": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "C:\\Users\\Angelina\\source\\repos\\rvip_j2\\worker-1\\worker-1.csproj",
"projectName": "worker-1",
"projectPath": "C:\\Users\\Angelina\\source\\repos\\rvip_j2\\worker-1\\worker-1.csproj",
"packagesPath": "C:\\Users\\Angelina\\.nuget\\packages\\",
"outputPath": "C:\\Users\\Angelina\\source\\repos\\rvip_j2\\worker-1\\obj\\",
"projectStyle": "PackageReference",
"fallbackFolders": [
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
],
"configFilePaths": [
"C:\\Users\\Angelina\\AppData\\Roaming\\NuGet\\NuGet.Config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
],
"originalTargetFrameworks": [
"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",
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48"
],
"assetTargetFallback": true,
"warn": true,
"frameworkReferences": {
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\6.0.302\\RuntimeIdentifierGraph.json"
}
}
}
}
}

View File

@ -0,0 +1,16 @@
<?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\Angelina\.nuget\packages\;C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages</NuGetPackageFolders>
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.2.1</NuGetToolVersion>
</PropertyGroup>
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<SourceRoot Include="C:\Users\Angelina\.nuget\packages\" />
<SourceRoot Include="C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages\" />
</ItemGroup>
</Project>

View File

@ -0,0 +1,2 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" />

View File

@ -0,0 +1,11 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<RootNamespace>worker_1</RootNamespace>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
</Project>

View File

@ -0,0 +1,15 @@
#указываем образ из которого будем брать все слои
FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build-env
#папка, с которой мы будем работать
WORKDIR /App
#копируем файл в рабочую дерикторию
COPY . ./
#запускаем команду
RUN dotnet restore
RUN dotnet publish -c Release -o out
FROM mcr.microsoft.com/dotnet/aspnet:6.0
WORKDIR /App
#копирует не из файловой системы хоста, а из того, что собрали на прерыдущей стадии
COPY --from=build-env /App/out .
ENTRYPOINT ["dotnet", "worker-2.dll"]

View File

@ -0,0 +1,23 @@
using System.Text;
int[] numbers = File.ReadAllLines("/var/data/data.txt").Select(x=> int.Parse(x)).ToArray();
int minNumber = int.MaxValue;
int minNumberCount = 0;
foreach(var number in numbers){
if(number > minNumber){
continue;
}
if(number == minNumber){
minNumberCount++;
continue;
}
if(number < minNumber){
minNumber = number;
minNumberCount = 1;
}
}
using(FileStream fstream = new FileStream("/var/result/result.txt", FileMode.OpenOrCreate)){
byte[] buffer = Encoding.Default.GetBytes(minNumberCount.ToString());
await fstream.WriteAsync(buffer, 0, buffer.Length);
}
Console.WriteLine(minNumberCount);

View File

@ -0,0 +1,23 @@
{
"runtimeTarget": {
"name": ".NETCoreApp,Version=v6.0",
"signature": ""
},
"compilationOptions": {},
"targets": {
".NETCoreApp,Version=v6.0": {
"worker-2/1.0.0": {
"runtime": {
"worker-2.dll": {}
}
}
}
},
"libraries": {
"worker-2/1.0.0": {
"type": "project",
"serviceable": false,
"sha512": ""
}
}
}

View File

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

View File

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

View File

@ -0,0 +1,22 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
using System;
using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("worker-2")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")]
[assembly: System.Reflection.AssemblyProductAttribute("worker-2")]
[assembly: System.Reflection.AssemblyTitleAttribute("worker-2")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
// Создано классом WriteCodeFragment MSBuild.

View File

@ -0,0 +1 @@
643bd591d6cbf6f32b3a54c41a97b5a36f4e7d08

View File

@ -0,0 +1,10 @@
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._SupportedPlatformList = Linux,macOS,Windows
build_property.RootNamespace = worker_2
build_property.ProjectDir = C:\Users\Angelina\source\repos\rvip_j2\worker-2\

View File

@ -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;

View File

@ -0,0 +1 @@
54c8c991314c63255ce51a9987c7a47af1851b61

View File

@ -0,0 +1,15 @@
C:\Users\Angelina\source\repos\rvip_j2\worker-2\bin\Debug\net6.0\worker-2.exe
C:\Users\Angelina\source\repos\rvip_j2\worker-2\bin\Debug\net6.0\worker-2.deps.json
C:\Users\Angelina\source\repos\rvip_j2\worker-2\bin\Debug\net6.0\worker-2.runtimeconfig.json
C:\Users\Angelina\source\repos\rvip_j2\worker-2\bin\Debug\net6.0\worker-2.dll
C:\Users\Angelina\source\repos\rvip_j2\worker-2\bin\Debug\net6.0\worker-2.pdb
C:\Users\Angelina\source\repos\rvip_j2\worker-2\obj\Debug\net6.0\worker-2.csproj.AssemblyReference.cache
C:\Users\Angelina\source\repos\rvip_j2\worker-2\obj\Debug\net6.0\worker-2.GeneratedMSBuildEditorConfig.editorconfig
C:\Users\Angelina\source\repos\rvip_j2\worker-2\obj\Debug\net6.0\worker-2.AssemblyInfoInputs.cache
C:\Users\Angelina\source\repos\rvip_j2\worker-2\obj\Debug\net6.0\worker-2.AssemblyInfo.cs
C:\Users\Angelina\source\repos\rvip_j2\worker-2\obj\Debug\net6.0\worker-2.csproj.CoreCompileInputs.cache
C:\Users\Angelina\source\repos\rvip_j2\worker-2\obj\Debug\net6.0\worker-2.dll
C:\Users\Angelina\source\repos\rvip_j2\worker-2\obj\Debug\net6.0\refint\worker-2.dll
C:\Users\Angelina\source\repos\rvip_j2\worker-2\obj\Debug\net6.0\worker-2.pdb
C:\Users\Angelina\source\repos\rvip_j2\worker-2\obj\Debug\net6.0\worker-2.genruntimeconfig.cache
C:\Users\Angelina\source\repos\rvip_j2\worker-2\obj\Debug\net6.0\ref\worker-2.dll

View File

@ -0,0 +1 @@
caad38d25e12a3a0db3d3cf805a9a40b1b91fcfb

View File

@ -0,0 +1,72 @@
{
"version": 3,
"targets": {
"net6.0": {}
},
"libraries": {},
"projectFileDependencyGroups": {
"net6.0": []
},
"packageFolders": {
"C:\\Users\\Angelina\\.nuget\\packages\\": {},
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages": {}
},
"project": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "C:\\Users\\Angelina\\source\\repos\\rvip_j2\\worker-2\\worker-2.csproj",
"projectName": "worker-2",
"projectPath": "C:\\Users\\Angelina\\source\\repos\\rvip_j2\\worker-2\\worker-2.csproj",
"packagesPath": "C:\\Users\\Angelina\\.nuget\\packages\\",
"outputPath": "C:\\Users\\Angelina\\source\\repos\\rvip_j2\\worker-2\\obj\\",
"projectStyle": "PackageReference",
"fallbackFolders": [
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
],
"configFilePaths": [
"C:\\Users\\Angelina\\AppData\\Roaming\\NuGet\\NuGet.Config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
],
"originalTargetFrameworks": [
"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",
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48"
],
"assetTargetFallback": true,
"warn": true,
"frameworkReferences": {
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\6.0.302\\RuntimeIdentifierGraph.json"
}
}
}
}

View File

@ -0,0 +1,8 @@
{
"version": 2,
"dgSpecHash": "wYIsdvPg4RwdU+jlKSXlZS7arFd51dWDos+biLAT6ep3sLL46XF1K/YmWYLWFaVsuqdW2jYpoSBn/Bir3GgdAw==",
"success": true,
"projectFilePath": "C:\\Users\\Angelina\\source\\repos\\rvip_j2\\worker-2\\worker-2.csproj",
"expectedPackageFiles": [],
"logs": []
}

View File

@ -0,0 +1,66 @@
{
"format": 1,
"restore": {
"C:\\Users\\Angelina\\source\\repos\\rvip_j2\\worker-2\\worker-2.csproj": {}
},
"projects": {
"C:\\Users\\Angelina\\source\\repos\\rvip_j2\\worker-2\\worker-2.csproj": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "C:\\Users\\Angelina\\source\\repos\\rvip_j2\\worker-2\\worker-2.csproj",
"projectName": "worker-2",
"projectPath": "C:\\Users\\Angelina\\source\\repos\\rvip_j2\\worker-2\\worker-2.csproj",
"packagesPath": "C:\\Users\\Angelina\\.nuget\\packages\\",
"outputPath": "C:\\Users\\Angelina\\source\\repos\\rvip_j2\\worker-2\\obj\\",
"projectStyle": "PackageReference",
"fallbackFolders": [
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
],
"configFilePaths": [
"C:\\Users\\Angelina\\AppData\\Roaming\\NuGet\\NuGet.Config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
],
"originalTargetFrameworks": [
"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",
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48"
],
"assetTargetFallback": true,
"warn": true,
"frameworkReferences": {
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\6.0.302\\RuntimeIdentifierGraph.json"
}
}
}
}
}

View File

@ -0,0 +1,16 @@
<?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\Angelina\.nuget\packages\;C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages</NuGetPackageFolders>
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.2.1</NuGetToolVersion>
</PropertyGroup>
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<SourceRoot Include="C:\Users\Angelina\.nuget\packages\" />
<SourceRoot Include="C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages\" />
</ItemGroup>
</Project>

View File

@ -0,0 +1,2 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" />

View File

@ -0,0 +1,11 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<RootNamespace>worker_2</RootNamespace>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
</Project>