mirror of
https://github.com/Stone-Red-Code/CuteUtils.git
synced 2026-09-04 08:56:13 +02:00
Update project to .NET 10
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
<!--
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user