Upgrade to .net 7

This commit is contained in:
Stepan Goremykin 2023-01-26 22:28:34 +01:00
parent a1c5166114
commit b25b86add2
3 changed files with 2 additions and 25 deletions

View File

@ -2,7 +2,7 @@
<PropertyGroup> <PropertyGroup>
<OutputType>Exe</OutputType> <OutputType>Exe</OutputType>
<TargetFramework>net5.0</TargetFramework> <TargetFramework>net7.0</TargetFramework>
<RootNamespace>DiIiS_NA</RootNamespace> <RootNamespace>DiIiS_NA</RootNamespace>
<Company>DiIiS Team</Company> <Company>DiIiS Team</Company>
<Copyright>iEvE</Copyright> <Copyright>iEvE</Copyright>

View File

@ -1,23 +0,0 @@
//Blizzless Project 2022
//Blizzless Project 2022
using System.Runtime.Serialization.Formatters.Binary;
//Blizzless Project 2022
using System.IO;
namespace DiIiS_NA.Core.Extensions
{
public static class DeepCopy
{
public static T DeepClone<T>(T obj)
{
using (var ms = new MemoryStream())
{
var formatter = new BinaryFormatter();
formatter.Serialize(ms, obj);
ms.Position = 0;
return (T)formatter.Deserialize(ms);
}
}
}
}

View File

@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk"> <Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup> <PropertyGroup>
<TargetFramework>net5.0</TargetFramework> <TargetFramework>net7.0</TargetFramework>
<Configurations>Debug;Release;github</Configurations> <Configurations>Debug;Release;github</Configurations>
</PropertyGroup> </PropertyGroup>