lab_7 #7
19
speed_Boat/speed_Boat/BoatNotFoundException.cs
Normal file
19
speed_Boat/speed_Boat/BoatNotFoundException.cs
Normal file
@ -0,0 +1,19 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Runtime.Serialization;
|
||||
|
||||
namespace speed_Boat.Exceptions
|
||||
{
|
||||
[Serializable]
|
||||
internal class BoatNotFoundException : ApplicationException
|
||||
{
|
||||
public BoatNotFoundException(int i) : base($"Не найден объект по позиции {i}") { }
|
||||
public BoatNotFoundException() : base() { }
|
||||
public BoatNotFoundException(string message) : base(message) { }
|
||||
public BoatNotFoundException(string message, Exception exception) : base(message, exception){ }
|
||||
protected BoatNotFoundException(SerializationInfo info, StreamingContext contex) : base(info, contex) { }
|
||||
}
|
||||
}
|
@ -6,7 +6,6 @@ using System.Threading.Tasks;
|
||||
using SpeedBoatLab.Drawings;
|
||||
using speed_Boat.MovementStrategy;
|
||||
using System.Drawing;
|
||||
using System.IO;
|
||||
|
||||
namespace speed_Boat.Generics
|
||||
{
|
||||
@ -53,13 +52,13 @@ namespace speed_Boat.Generics
|
||||
/// Перегрузка оператора сложения
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public static bool operator + (BoatsGenericCollection<T, U> collect, T? obj)
|
||||
public static int operator + (BoatsGenericCollection<T, U> collect, T? obj)
|
||||
{
|
||||
if (obj == null)
|
||||
if (obj != null)
|
||||
{
|
||||
return false;
|
||||
return collect?._collection.Insert(obj) ?? -1;
|
||||
}
|
||||
return collect?._collection.Insert(obj) ?? false;
|
||||
return 0;
|
||||
}
|
||||
/// <summary>
|
||||
/// Перегрузка оператора вычитания
|
||||
|
@ -1,4 +1,5 @@
|
||||
using speed_Boat.MovementStrategy;
|
||||
using speed_Boat.Exceptions;
|
||||
using speed_Boat.MovementStrategy;
|
||||
using SpeedBoatLab.Drawings;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
@ -52,7 +53,7 @@ namespace speed_Boat.Generics
|
||||
{
|
||||
_boatStorages = new Dictionary<string, BoatsGenericCollection<DrawingBoat, DrawingObjectBoat>>();
|
||||
_pictureWidth = pictureWidth;
|
||||
_pictureHeight = pictureHeight;
|
||||
_pictureHeight = pictureHeight;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -60,8 +61,11 @@ namespace speed_Boat.Generics
|
||||
/// </summary>
|
||||
/// <param name="filename">Путь и имя файла</param>
|
||||
/// <returns>true - сохранение прошло успешно, false - ошибка при сохранении данных</returns>
|
||||
public bool SaveData(string filename)
|
||||
public void SaveData(string filename)
|
||||
{
|
||||
if (_boatStorages.Count == 0)
|
||||
throw new InvalidOperationException("Невалидная операция: нет данных для сохранения");
|
||||
|
||||
if (File.Exists(filename))
|
||||
{
|
||||
File.Delete(filename);
|
||||
@ -76,41 +80,35 @@ namespace speed_Boat.Generics
|
||||
}
|
||||
data.AppendLine($"{record.Key}{_separatorForKeyValue}{records}");
|
||||
}
|
||||
if (data.Length == 0)
|
||||
if(data.Length == 0)
|
||||
{
|
||||
return false;
|
||||
throw new Exception("Невалидная операция, нет данных для сохранения");
|
||||
}
|
||||
|
||||
using (StreamWriter sw = new (filename))
|
||||
using (StreamWriter sw = new(filename))
|
||||
{
|
||||
sw.WriteLine($"BoatStorage{Environment.NewLine}{data}");
|
||||
}
|
||||
return true;
|
||||
}
|
||||
/// <summary>
|
||||
/// Загрузка информации по катерам в хранилище из файла
|
||||
/// </summary>
|
||||
/// <param name="filename">Путь и имя файла</param>
|
||||
/// <returns>true - загрузка прошла успешно, false - ошибка при загрузке данных</returns>
|
||||
public bool LoadData(string filename)
|
||||
public void LoadData(string filename)
|
||||
{
|
||||
if (!File.Exists(filename))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
string bufferTextFromFile = "";
|
||||
throw new FileNotFoundException("Файл не найден");
|
||||
|
||||
using (StreamReader sr = new(filename))
|
||||
{
|
||||
if (sr.ReadLine() != "BoatStorage")
|
||||
throw new FormatException("Неверный формат данных");
|
||||
|
||||
string str = sr.ReadLine();
|
||||
var strs = str.Split(new char[] { '\n', '\r' }, StringSplitOptions.RemoveEmptyEntries);
|
||||
if (strs == null || strs.Length == 0)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
if (!strs[0].StartsWith("BoatStorage"))
|
||||
{
|
||||
//если нет такой записи, то это не те данные
|
||||
return false;
|
||||
throw new Exception("Нет данных для загрузки");
|
||||
}
|
||||
_boatStorages.Clear();
|
||||
do
|
||||
@ -130,9 +128,14 @@ namespace speed_Boat.Generics
|
||||
DrawingBoat? boat = elem?.CreateDrawingBoat(_separatorForObject, _pictureWidth, _pictureHeight);
|
||||
if (boat != null)
|
||||
{
|
||||
if (!(collection + boat))
|
||||
try { _ = collection + boat; }
|
||||
catch (BoatNotFoundException e)
|
||||
{
|
||||
return false;
|
||||
throw e;
|
||||
}
|
||||
catch (StorageOverflowException e)
|
||||
{
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -140,7 +143,6 @@ namespace speed_Boat.Generics
|
||||
str = sr.ReadLine();
|
||||
} while (str != null);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@ -176,15 +178,15 @@ namespace speed_Boat.Generics
|
||||
/// </summary>
|
||||
/// <param name="ind"></param>
|
||||
/// <returns></returns>
|
||||
public BoatsGenericCollection<DrawingBoat, DrawingObjectBoat>?this[string ind]
|
||||
public BoatsGenericCollection<DrawingBoat, DrawingObjectBoat>? this[string ind]
|
||||
{
|
||||
get
|
||||
{
|
||||
BoatsGenericCollection<DrawingBoat, DrawingObjectBoat> boat;
|
||||
//проверка есть ли в словаре обьект с ключом ind
|
||||
if (_boatStorages.TryGetValue(ind, out boat))
|
||||
{
|
||||
return boat;
|
||||
{
|
||||
return boat;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
@ -11,6 +11,8 @@ using SpeedBoatLab.Drawings;
|
||||
using speed_Boat.Generics;
|
||||
using speed_Boat.MovementStrategy;
|
||||
using speed_Boat;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using speed_Boat.Exceptions;
|
||||
|
||||
namespace SpeedBoatLab
|
||||
{
|
||||
@ -20,13 +22,21 @@ namespace SpeedBoatLab
|
||||
/// Набор объектов
|
||||
/// </summary>
|
||||
private readonly BoatsGenericStorage _storage;
|
||||
|
||||
/// <summary>
|
||||
/// Логгер
|
||||
/// </summary>
|
||||
private readonly ILogger _logger;
|
||||
|
||||
/// <summary>
|
||||
/// Конструктор
|
||||
/// </summary>
|
||||
public FormBoatCollection()
|
||||
public FormBoatCollection(ILogger<FormBoatCollection> logger)
|
||||
{
|
||||
InitializeComponent();
|
||||
_storage = new BoatsGenericStorage(pictureBoxCollection.Width, pictureBoxCollection.Height);
|
||||
_logger = logger;
|
||||
|
||||
}
|
||||
///<summary>
|
||||
/// Заполнение collectionsListBox
|
||||
@ -64,10 +74,13 @@ namespace SpeedBoatLab
|
||||
{
|
||||
MessageBox.Show("Не все данные заполнены", "Ошибка",
|
||||
MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||
_logger.LogWarning("Пустое название набора");
|
||||
return;
|
||||
}
|
||||
_storage.AddSet(nameStorageTextBox.Text);
|
||||
ReloadObjects();
|
||||
_logger.LogInformation($"Добавлен набор:{nameStorageTextBox.Text}");
|
||||
|
||||
}
|
||||
///<summary>
|
||||
/// Выбор набора
|
||||
@ -84,13 +97,18 @@ namespace SpeedBoatLab
|
||||
{
|
||||
if (storagesListBox.SelectedIndex == -1)
|
||||
{
|
||||
_logger.LogWarning("Набор для удаления не выбран");
|
||||
return;
|
||||
}
|
||||
string name = storagesListBox.SelectedItem.ToString() ?? string.Empty;
|
||||
|
||||
if (MessageBox.Show($"Удалить объект {storagesListBox.SelectedItem}?",
|
||||
"Удаление", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
|
||||
{
|
||||
_storage.DelSet(storagesListBox.SelectedItem.ToString() ?? string.Empty);
|
||||
ReloadObjects();
|
||||
_logger.LogInformation($"Удален набор: {name}");
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@ -102,6 +120,11 @@ namespace SpeedBoatLab
|
||||
/// <param name="e"></param>
|
||||
private void ButtonAddBoat_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (storagesListBox.SelectedIndex == -1)
|
||||
{
|
||||
_logger.LogWarning("Набор для добавления обьекта не выбран");
|
||||
return;
|
||||
}
|
||||
var FormBoatConfig = new FormBoatConfig();
|
||||
FormBoatConfig.AddEvent(new(AddBoat));
|
||||
FormBoatConfig.Show();
|
||||
@ -111,23 +134,29 @@ namespace SpeedBoatLab
|
||||
{
|
||||
if (storagesListBox.SelectedIndex == -1)
|
||||
{
|
||||
_logger.LogWarning("Набор для удаления не выбран");
|
||||
return;
|
||||
}
|
||||
var obj = _storage[storagesListBox.SelectedItem.ToString() ?? string.Empty];
|
||||
if (obj == null)
|
||||
{
|
||||
_logger.LogWarning("Добавление пустого обьекта");
|
||||
return;
|
||||
}
|
||||
if (obj + boat)
|
||||
try
|
||||
{
|
||||
_ = obj + boat;
|
||||
MessageBox.Show("Объект добавлен");
|
||||
_logger.LogInformation($"Добавлен объект в набор {storagesListBox.SelectedItem.ToString()}");
|
||||
pictureBoxCollection.Image = obj.ShowBoats();
|
||||
}
|
||||
else
|
||||
catch(StorageOverflowException ex)
|
||||
{
|
||||
MessageBox.Show("Не удалось добавить объект");
|
||||
_logger.LogWarning($"{ex.Message} в наборе {storagesListBox.SelectedItem.ToString()}");
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Удаление объекта из набора
|
||||
/// </summary>
|
||||
@ -137,6 +166,7 @@ namespace SpeedBoatLab
|
||||
{
|
||||
if (storagesListBox.SelectedIndex == -1)
|
||||
{
|
||||
_logger.LogWarning("Удаление объекта из несуществующего набора");
|
||||
return;
|
||||
}
|
||||
var obj = _storage[storagesListBox.SelectedItem.ToString() ?? string.Empty];
|
||||
@ -155,21 +185,34 @@ namespace SpeedBoatLab
|
||||
{
|
||||
int.TryParse(insertPosition, out pos);
|
||||
if (pos < 0 || pos > obj._collection.Count - 1)
|
||||
MessageBox.Show("Неверный формат позиции");
|
||||
|
||||
if (obj - pos != null)
|
||||
{
|
||||
MessageBox.Show("Объект удален");
|
||||
pictureBoxCollection.Image = obj.ShowBoats();
|
||||
MessageBox.Show("Неверный формат позиции");
|
||||
_logger.LogWarning($"Неверный формат позиции:{pos}");
|
||||
}
|
||||
try
|
||||
{
|
||||
if (obj - pos != null)
|
||||
{
|
||||
MessageBox.Show("Объект удален");
|
||||
pictureBoxCollection.Image = obj.ShowBoats();
|
||||
_logger.LogInformation($"Удален объект из набора {storagesListBox.SelectedItem.ToString()}");
|
||||
}
|
||||
else
|
||||
{
|
||||
MessageBox.Show("Не удалось удалить объект");
|
||||
_logger.LogInformation($"Не удалось удалить объект из набора {storagesListBox.SelectedItem.ToString()}");
|
||||
}
|
||||
}
|
||||
catch(BoatNotFoundException ex)
|
||||
{
|
||||
MessageBox.Show(ex.Message);
|
||||
_logger.LogWarning($"{ex.Message} из набора {storagesListBox.SelectedItem.ToString()}");
|
||||
}
|
||||
}
|
||||
else if (insertPosition == string.Empty)
|
||||
else if(insertPosition == string.Empty)
|
||||
{
|
||||
MessageBox.Show("Неверный формат позиции");
|
||||
}
|
||||
else
|
||||
{
|
||||
MessageBox.Show("Не удалось удалить объект");
|
||||
_logger.LogWarning($"Неверный формат позиции:{insertPosition}");
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
@ -201,16 +244,21 @@ namespace SpeedBoatLab
|
||||
{
|
||||
if (saveFileDialog.ShowDialog() == DialogResult.OK)
|
||||
{
|
||||
if (_storage.SaveData(saveFileDialog.FileName))
|
||||
try
|
||||
{
|
||||
_storage.SaveData(saveFileDialog.FileName);
|
||||
MessageBox.Show("Сохранение прошло успешно",
|
||||
"Результат", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||
_logger.LogInformation($"Сохранение наборов в файл {saveFileDialog.FileName} прошло успешно:");
|
||||
|
||||
}
|
||||
else
|
||||
catch (Exception ex)
|
||||
{
|
||||
MessageBox.Show("Не сохранилось", "Результат",
|
||||
MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||
MessageBox.Show($"Не сохранилось: {ex.Message}",
|
||||
"Результат", MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||
_logger.LogWarning($"Не удалось сохранить наборы: {ex.Message}");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@ -219,16 +267,19 @@ namespace SpeedBoatLab
|
||||
{
|
||||
if (saveFileDialog.ShowDialog() == DialogResult.OK)
|
||||
{
|
||||
if (_storage.LoadData(saveFileDialog.FileName))
|
||||
try
|
||||
{
|
||||
_storage.LoadData(saveFileDialog.FileName);
|
||||
ReloadObjects();
|
||||
MessageBox.Show("Сохранение прошло успешно",
|
||||
MessageBox.Show("Загрузка прошла успешно",
|
||||
"Результат", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||
_logger.LogInformation($"Загрузились наборы из файла {openFileDialog.FileName}");
|
||||
}
|
||||
else
|
||||
catch (Exception ex)
|
||||
{
|
||||
MessageBox.Show("Не сохранилось", "Результат",
|
||||
MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||
MessageBox.Show($"Не удалось загрузить: {ex.Message}",
|
||||
"Результат", MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||
_logger.LogWarning($"Не удалось сохранить наборы с ошибкой: {ex.Message}");
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -5,6 +5,7 @@ using System.Reflection;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
using speed_Boat.Exceptions;
|
||||
|
||||
namespace speed_Boat.Generics
|
||||
{
|
||||
@ -34,12 +35,12 @@ namespace speed_Boat.Generics
|
||||
/// <summary>
|
||||
/// Добавление объекта в набор
|
||||
/// </summary>
|
||||
public bool Insert(T boat)
|
||||
public int Insert(T boat)
|
||||
{
|
||||
if(_places.Count == 0)
|
||||
{
|
||||
_places.Add(boat);
|
||||
return true;
|
||||
return 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -52,10 +53,13 @@ namespace speed_Boat.Generics
|
||||
_places[i] = _places[_places.Count - 1];
|
||||
_places[_places.Count - 1] = temp;
|
||||
}
|
||||
return true;
|
||||
return 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
throw new StorageOverflowException();
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
/// <summary>
|
||||
/// Добавление объекта в набор на конкретную позицию.
|
||||
@ -87,7 +91,10 @@ namespace speed_Boat.Generics
|
||||
}
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
else
|
||||
{
|
||||
throw new StorageOverflowException();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -96,8 +103,12 @@ namespace speed_Boat.Generics
|
||||
public bool Remove(int position)
|
||||
{
|
||||
if (position < 0 || position >= Count)
|
||||
{
|
||||
throw new BoatNotFoundException();
|
||||
}
|
||||
if (_places[position] == null)
|
||||
{
|
||||
return false;
|
||||
throw new BoatNotFoundException();
|
||||
}
|
||||
_places[position] = null;
|
||||
return true;
|
||||
|
@ -1,23 +1,46 @@
|
||||
using Microsoft.Extensions.Configuration;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using Serilog;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
using System.IO;
|
||||
|
||||
|
||||
namespace SpeedBoatLab
|
||||
{
|
||||
static class Program
|
||||
{
|
||||
/// <summary>
|
||||
/// The main entry point for the application.
|
||||
/// </summary>
|
||||
[STAThread]
|
||||
static void Main()
|
||||
{
|
||||
Application.SetHighDpiMode(HighDpiMode.SystemAware);
|
||||
Application.EnableVisualStyles();
|
||||
Application.SetCompatibleTextRenderingDefault(false);
|
||||
Application.Run(new FormBoatCollection());
|
||||
ApplicationConfiguration.Initialize();
|
||||
var services = new ServiceCollection();
|
||||
ConfigureServices(services);
|
||||
using (ServiceProvider serviceProvider = services.BuildServiceProvider())
|
||||
{
|
||||
Application.Run(serviceProvider.GetRequiredService<FormBoatCollection>());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private static void ConfigureServices(ServiceCollection services)
|
||||
{
|
||||
services.AddSingleton<FormBoatCollection>().AddLogging(option =>
|
||||
{
|
||||
string[] path = Directory.GetCurrentDirectory().Split('\\');
|
||||
string pathNeed = "";
|
||||
for (int i = 0; i < path.Length - 3; i++)
|
||||
{
|
||||
pathNeed += path[i] + "\\";
|
||||
}
|
||||
var configuration = new ConfigurationBuilder().SetBasePath(Directory.GetCurrentDirectory()).AddJsonFile(path: $"{pathNeed}appsettings.json", optional: false, reloadOnChange: true).Build();
|
||||
var logger = new LoggerConfiguration().ReadFrom.Configuration(configuration).CreateLogger();
|
||||
|
||||
option.SetMinimumLevel(LogLevel.Information);
|
||||
option.AddSerilog(logger);
|
||||
});
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
19
speed_Boat/speed_Boat/StorageOverflowException.cs
Normal file
19
speed_Boat/speed_Boat/StorageOverflowException.cs
Normal file
@ -0,0 +1,19 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Runtime.Serialization;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace speed_Boat.Exceptions
|
||||
{
|
||||
[Serializable]
|
||||
internal class StorageOverflowException : ApplicationException
|
||||
{
|
||||
public StorageOverflowException(int count) : base($"В наборе превышено допустимое количество элементов: { count}") { }
|
||||
public StorageOverflowException() : base() { }
|
||||
public StorageOverflowException(string message) : base(message) { }
|
||||
public StorageOverflowException(string message, Exception exception) : base(message, exception) { }
|
||||
protected StorageOverflowException(SerializationInfo info, StreamingContext contex) : base(info, contex) { }
|
||||
}
|
||||
}
|
20
speed_Boat/speed_Boat/appsettings.json
Normal file
20
speed_Boat/speed_Boat/appsettings.json
Normal file
@ -0,0 +1,20 @@
|
||||
{
|
||||
"Serilog": {
|
||||
"Using": [ "Serilog.Sinks.File" ],
|
||||
"MinimumLevel": "Information",
|
||||
"WriteTo": [
|
||||
{
|
||||
"Name": "File",
|
||||
"Args": {
|
||||
"path": "Logs/log_.log",
|
||||
"rollingInterval": "Day",
|
||||
"outputTemplate": "[{Timestamp:HH:mm:ss.fff}]{Level:u4}: {Message:lj}{NewLine}{Exception}"
|
||||
}
|
||||
}
|
||||
],
|
||||
"Enrich": [ "FromLogContext", "WithMachineName", "WithThreadId" ],
|
||||
"Properties": {
|
||||
"Application": "speed_Boat"
|
||||
}
|
||||
}
|
||||
}
|
13
speed_Boat/speed_Boat/nlog.config
Normal file
13
speed_Boat/speed_Boat/nlog.config
Normal file
@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
|
||||
<configuration>
|
||||
<nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
autoReload="true" internalLogLevel="Info">
|
||||
<targets>
|
||||
<target xsi:type="File" name="tofile" fileName="carlog-${shortdate}.log" />
|
||||
</targets>
|
||||
<rules>
|
||||
<logger name="*" minlevel="Debug" writeTo="tofile" />
|
||||
</rules>
|
||||
</nlog>
|
||||
</configuration>
|
@ -2,10 +2,22 @@
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>WinExe</OutputType>
|
||||
<TargetFramework>net5.0-windows</TargetFramework>
|
||||
<TargetFramework>net7.0-windows</TargetFramework>
|
||||
<UseWindowsForms>true</UseWindowsForms>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.Extensions.Configuration" Version="8.0.0" />
|
||||
<PackageReference Include="Microsoft.Extensions.Configuration.FileExtensions" Version="8.0.0" />
|
||||
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="8.0.0" />
|
||||
<PackageReference Include="Microsoft.Extensions.Logging" Version="8.0.0" />
|
||||
<PackageReference Include="NLog.Extensions.Logging" Version="5.3.5" />
|
||||
<PackageReference Include="Serilog" Version="3.1.1" />
|
||||
<PackageReference Include="Serilog.Extensions.Logging" Version="8.0.0" />
|
||||
<PackageReference Include="Serilog.Settings.Configuration" Version="8.0.0" />
|
||||
<PackageReference Include="Serilog.Sinks.File" Version="5.0.0" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Compile Update="Properties\Resources.Designer.cs">
|
||||
<DesignTime>True</DesignTime>
|
||||
|
Loading…
Reference in New Issue
Block a user
файл не используется