mirror of
https://github.com/Stone-Red-Code/CuteUtils.git
synced 2026-09-08 07:46:11 +02:00
Update project to .NET 10
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFramework>net8.0</TargetFramework>
|
<TargetFramework>net10.0</TargetFramework>
|
||||||
<ImplicitUsings>enable</ImplicitUsings>
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
<Nullable>enable</Nullable>
|
<Nullable>enable</Nullable>
|
||||||
|
|
||||||
@@ -14,9 +14,9 @@
|
|||||||
<PrivateAssets>all</PrivateAssets>
|
<PrivateAssets>all</PrivateAssets>
|
||||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||||
</PackageReference>
|
</PackageReference>
|
||||||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.13.0" />
|
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.0.1" />
|
||||||
<PackageReference Include="MSTest.TestAdapter" Version="3.8.3" />
|
<PackageReference Include="MSTest.TestAdapter" Version="4.0.2" />
|
||||||
<PackageReference Include="MSTest.TestFramework" Version="3.8.3" />
|
<PackageReference Include="MSTest.TestFramework" Version="4.0.2" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFramework>net8.0</TargetFramework>
|
<TargetFramework>net10.0</TargetFramework>
|
||||||
<ImplicitUsings>enable</ImplicitUsings>
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
<Nullable>enable</Nullable>
|
<Nullable>enable</Nullable>
|
||||||
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
|
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
|
||||||
@@ -29,7 +29,7 @@
|
|||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="System.Reactive.Linq" Version="6.0.1" />
|
<PackageReference Include="System.Reactive.Linq" Version="6.1.0" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
|
|||||||
@@ -9,6 +9,8 @@ namespace CuteUtils.Misc;
|
|||||||
/// <see cref="Console"/> Extensions
|
/// <see cref="Console"/> Extensions
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static class ConsoleExt
|
public static class ConsoleExt
|
||||||
|
{
|
||||||
|
extension(Console)
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Writes the specified value to the console with the specified color.
|
/// 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>
|
/// <summary>
|
||||||
/// Writes the specified value to the console with the specified color and appends a new line.
|
/// Writes the specified value to the console with the specified color and appends a new line.
|
||||||
/// </summary>
|
/// </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>
|
/// <summary>
|
||||||
/// Reads the next line of characters from the standard input stream and tries to convert it to the specified type.
|
/// Reads the next line of characters from the standard input stream and tries to convert it to the specified type.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@@ -145,3 +159,4 @@ public static class ConsoleExt
|
|||||||
_ = Console.ReadKey(true);
|
_ = Console.ReadKey(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user