Update project to .NET 10

This commit is contained in:
Stone_Red
2025-11-25 19:19:41 +01:00
parent d588b6049b
commit b136dda50b
3 changed files with 138 additions and 123 deletions
+4 -4
View File
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>net10.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
@@ -14,9 +14,9 @@
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.13.0" />
<PackageReference Include="MSTest.TestAdapter" Version="3.8.3" />
<PackageReference Include="MSTest.TestFramework" Version="3.8.3" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.0.1" />
<PackageReference Include="MSTest.TestAdapter" Version="4.0.2" />
<PackageReference Include="MSTest.TestFramework" Version="4.0.2" />
</ItemGroup>
<ItemGroup>
+2 -2
View File
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>net10.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
@@ -29,7 +29,7 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="System.Reactive.Linq" Version="6.0.1" />
<PackageReference Include="System.Reactive.Linq" Version="6.1.0" />
</ItemGroup>
<!--
+15
View File
@@ -9,6 +9,8 @@ namespace CuteUtils.Misc;
/// <see cref="Console"/> Extensions
/// </summary>
public static class ConsoleExt
{
extension(Console)
{
/// <summary>
/// Writes the specified value to the console with the specified color.
@@ -26,6 +28,12 @@ public static class ConsoleExt
}
}
/// <inheritdoc cref="Write(object, ConsoleColor)"/>
public static void WriteColor(object value, ConsoleColor color)
{
Write(value, color);
}
/// <summary>
/// Writes the specified value to the console with the specified color and appends a new line.
/// </summary>
@@ -42,6 +50,12 @@ public static class ConsoleExt
}
}
/// <inheritdoc cref="WriteLine(object, ConsoleColor)"/>
public static void WriteLineColor(object value, ConsoleColor color)
{
WriteLine(value, color);
}
/// <summary>
/// Reads the next line of characters from the standard input stream and tries to convert it to the specified type.
/// </summary>
@@ -145,3 +159,4 @@ public static class ConsoleExt
_ = Console.ReadKey(true);
}
}
}