From 02bdd5f8623c902ca2ffb585a289c32a9701dffa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Albert=20Rag=C3=A1ny-N=C3=A9meth?= Date: Tue, 27 Jan 2026 19:25:21 +0100 Subject: [PATCH] Update to .NET 10 --- .../MaterialColorUtilities.Maui.Tests.csproj | 2 +- .../MaterialColorUtilities.Maui.csproj | 16 +++++++-------- .../MaterialColorUtilities.Tests.csproj | 2 +- .../MaterialColorUtilities.csproj | 6 +++--- MaterialColorUtilities/README.md | 2 +- .../Playground.Console.csproj | 2 +- .../Playground.Maui/Playground.Maui.csproj | 10 +++++----- .../Playground.Shared.csproj | 2 +- .../Playground.Wasm/Playground.Wasm.csproj | 2 +- .../Properties/launchSettings.json | 20 ++----------------- global.json | 2 +- 11 files changed, 25 insertions(+), 41 deletions(-) diff --git a/MaterialColorUtilities.Maui.Tests/MaterialColorUtilities.Maui.Tests.csproj b/MaterialColorUtilities.Maui.Tests/MaterialColorUtilities.Maui.Tests.csproj index c29820f..c98a709 100644 --- a/MaterialColorUtilities.Maui.Tests/MaterialColorUtilities.Maui.Tests.csproj +++ b/MaterialColorUtilities.Maui.Tests/MaterialColorUtilities.Maui.Tests.csproj @@ -1,7 +1,7 @@ - net7.0 + net10.0 enable enable false diff --git a/MaterialColorUtilities.Maui/MaterialColorUtilities.Maui.csproj b/MaterialColorUtilities.Maui/MaterialColorUtilities.Maui.csproj index 9e50495..47fb9a2 100644 --- a/MaterialColorUtilities.Maui/MaterialColorUtilities.Maui.csproj +++ b/MaterialColorUtilities.Maui/MaterialColorUtilities.Maui.csproj @@ -1,10 +1,10 @@  - net6.0;net6.0-android;net6.0-ios;net6.0-maccatalyst - $(TargetFrameworks);net6.0-windows10.0.19041.0 + net10.0;net10.0-android;net10.0-ios;net10.0-maccatalyst + $(TargetFrameworks);net10.0-windows10.0.19041.0 - + true true enable @@ -33,7 +33,7 @@ true - $(DefineConstants);PLATFORM + $(DefineConstants);PLATFORM @@ -46,15 +46,15 @@ - + - + - + @@ -62,7 +62,7 @@ - + diff --git a/MaterialColorUtilities.Tests/MaterialColorUtilities.Tests.csproj b/MaterialColorUtilities.Tests/MaterialColorUtilities.Tests.csproj index 3b60fc0..ef65734 100644 --- a/MaterialColorUtilities.Tests/MaterialColorUtilities.Tests.csproj +++ b/MaterialColorUtilities.Tests/MaterialColorUtilities.Tests.csproj @@ -1,7 +1,7 @@  - net7 + net10.0 disable false diff --git a/MaterialColorUtilities/MaterialColorUtilities.csproj b/MaterialColorUtilities/MaterialColorUtilities.csproj index 46e2dcb..d192b39 100644 --- a/MaterialColorUtilities/MaterialColorUtilities.csproj +++ b/MaterialColorUtilities/MaterialColorUtilities.csproj @@ -1,7 +1,7 @@  - netstandard2.0;netstandard2.1;net6.0 + netstandard2.0;netstandard2.1;net10.0 preview enable enable @@ -43,8 +43,8 @@ - - + + true diff --git a/MaterialColorUtilities/README.md b/MaterialColorUtilities/README.md index 97fae1a..811e107 100644 --- a/MaterialColorUtilities/README.md +++ b/MaterialColorUtilities/README.md @@ -120,7 +120,7 @@ public partial class MyScheme : Scheme ``` A source generator will generate new Convert methods automatically as another part of this class. Make sure to **mark the class `partial`** and don't nest it inside another class. -If you get warning `CS8032: An instance of analyzer MaterialColorUtilities.Schemes.SchemeConverterGenerator cannot be created...` your IDE/compiler doesn't have Roslyn 4.0, so the source generator won't work. Make sure you are using Visual Studio 2022, MSBuild 17 or .NET 6. +If you get warning `CS8032: An instance of analyzer MaterialColorUtilities.Schemes.SchemeConverterGenerator cannot be created...` your IDE/compiler doesn't have Roslyn 4.0, so the source generator won't work. Make sure you are using Visual Studio 2022+, MSBuild 17+ or .NET 6+. Finally, subclass the mappers, override the MapCore method and define how to map the core palette to the scheme: ```csharp diff --git a/Playground/Playground.Console/Playground.Console.csproj b/Playground/Playground.Console/Playground.Console.csproj index 7ec5eee..66e87df 100644 --- a/Playground/Playground.Console/Playground.Console.csproj +++ b/Playground/Playground.Console/Playground.Console.csproj @@ -2,7 +2,7 @@ Exe - net7.0 + net10.0 enable disable diff --git a/Playground/Playground.Maui/Playground.Maui.csproj b/Playground/Playground.Maui/Playground.Maui.csproj index a52068d..59a39d9 100644 --- a/Playground/Playground.Maui/Playground.Maui.csproj +++ b/Playground/Playground.Maui/Playground.Maui.csproj @@ -1,10 +1,10 @@  - net7.0-android;net7.0-ios;net7.0-maccatalyst - $(TargetFrameworks);net7.0-windows10.0.19041.0 + net10.0-android;net10.0-ios;net10.0-maccatalyst + $(TargetFrameworks);net10.0-windows10.0.19041.0 - + Exe Playground.Maui true @@ -61,14 +61,14 @@ - + - + diff --git a/Playground/Playground.Shared/Playground.Shared.csproj b/Playground/Playground.Shared/Playground.Shared.csproj index 9e54bdb..403b760 100644 --- a/Playground/Playground.Shared/Playground.Shared.csproj +++ b/Playground/Playground.Shared/Playground.Shared.csproj @@ -1,7 +1,7 @@ - net7.0 + net10.0 enable diff --git a/Playground/Playground.Wasm/Playground.Wasm.csproj b/Playground/Playground.Wasm/Playground.Wasm.csproj index fb3097a..5920506 100644 --- a/Playground/Playground.Wasm/Playground.Wasm.csproj +++ b/Playground/Playground.Wasm/Playground.Wasm.csproj @@ -1,7 +1,7 @@  - net7.0 + net10.0 enable true diff --git a/Playground/Playground.Wasm/Properties/launchSettings.json b/Playground/Playground.Wasm/Properties/launchSettings.json index b3ba7db..a793891 100644 --- a/Playground/Playground.Wasm/Properties/launchSettings.json +++ b/Playground/Playground.Wasm/Properties/launchSettings.json @@ -1,27 +1,11 @@ { - "iisSettings": { - "windowsAuthentication": false, - "anonymousAuthentication": true, - "iisExpress": { - "applicationUrl": "http://localhost:5178", - "sslPort": 44306 - } - }, "profiles": { "Playground.Wasm": { "commandName": "Project", "dotnetRunMessages": true, - "launchBrowser": true, - "inspectUri": "{wsProtocol}://{url.hostname}:{url.port}/_framework/debug/ws-proxy?browser={browserInspectUri}", - "applicationUrl": "https://localhost:7019;http://localhost:5019;http://192.168.0.5:5000", - "environmentVariables": { - "ASPNETCORE_ENVIRONMENT": "Development" - } - }, - "IIS Express": { - "commandName": "IISExpress", - "launchBrowser": true, + "launchBrowser": false, "inspectUri": "{wsProtocol}://{url.hostname}:{url.port}/_framework/debug/ws-proxy?browser={browserInspectUri}", + "applicationUrl": "http://localhost:7019", "environmentVariables": { "ASPNETCORE_ENVIRONMENT": "Development" } diff --git a/global.json b/global.json index 66bd202..b80e225 100644 --- a/global.json +++ b/global.json @@ -1,6 +1,6 @@ { "sdk": { - "version": "7", + "version": "10", "rollForward": "latestMajor", "allowPrerelease": false }