Skip to content

armgit / godot

Public Imported from GitHub
0

Godot Engine – Multi-platform 2D and 3D game engine

.NET: Upgrade packages and minimum TFM required to `net10.0`

Raul Santos49f7e420efbe
diff --git a/.github/workflows/linux_builds.yml b/.github/workflows/linux_builds.yml
index df01a32e31e..ad916bb5bb7 100644
--- a/.github/workflows/linux_builds.yml
+++ b/.github/workflows/linux_builds.yml
@@ -167,7 +167,7 @@ jobs:
uses: actions/setup-dotnet@v5
with:
# Targeting the oldest version we want to support to ensure it still builds.
- dotnet-version: 8.0.100
+ dotnet-version: 10.0.100
- name: Download pre-built AccessKit
shell: sh
diff --git a/modules/mono/build_scripts/build_assemblies.py b/modules/mono/build_scripts/build_assemblies.py
index a789791697f..6aa68b5dc56 100755
--- a/modules/mono/build_scripts/build_assemblies.py
+++ b/modules/mono/build_scripts/build_assemblies.py
@@ -225,7 +225,7 @@ def build_godot_api(msbuild_tool, module_dir, output_dir, push_nupkgs_local, pre
core_src_dir = os.path.abspath(os.path.join(sln, os.pardir, "GodotSharp", "bin", build_config))
editor_src_dir = os.path.abspath(os.path.join(sln, os.pardir, "GodotSharpEditor", "bin", build_config))
- plugins_src_dir = os.path.abspath(os.path.join(sln, os.pardir, "GodotPlugins", "bin", build_config, "net8.0"))
+ plugins_src_dir = os.path.abspath(os.path.join(sln, os.pardir, "GodotPlugins", "bin", build_config, "net10.0"))
if not os.path.isdir(editor_api_dir):
assert not os.path.isfile(editor_api_dir)
diff --git a/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Sample/Godot.SourceGenerators.Sample.csproj b/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Sample/Godot.SourceGenerators.Sample.csproj
index bbb180914cc..22319bbb44d 100644
--- a/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Sample/Godot.SourceGenerators.Sample.csproj
+++ b/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Sample/Godot.SourceGenerators.Sample.csproj
@@ -1,8 +1,8 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <TargetFramework>net8.0</TargetFramework>
- <LangVersion>12</LangVersion>
+ <TargetFramework>net10.0</TargetFramework>
+ <LangVersion>14</LangVersion>
</PropertyGroup>
<PropertyGroup>
diff --git a/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/CSharpAnalyzerVerifier.cs b/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/CSharpAnalyzerVerifier.cs
index 3e26a8bf02c..4476fed5b0a 100644
--- a/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/CSharpAnalyzerVerifier.cs
+++ b/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/CSharpAnalyzerVerifier.cs
@@ -20,7 +20,7 @@ public static class CSharpAnalyzerVerifier<TAnalyzer>
{
public Test()
{
- ReferenceAssemblies = Constants.Net80;
+ ReferenceAssemblies = Constants.Net100;
SolutionTransforms.Add((Solution solution, ProjectId projectId) =>
{
diff --git a/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/CSharpCodeFixVerifier.cs b/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/CSharpCodeFixVerifier.cs
index 6e3b67a662a..fdbc0ca610a 100644
--- a/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/CSharpCodeFixVerifier.cs
+++ b/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/CSharpCodeFixVerifier.cs
@@ -16,7 +16,7 @@ public static class CSharpCodeFixVerifier<TCodeFix, TAnalyzer>
{
public Test()
{
- ReferenceAssemblies = Constants.Net80;
+ ReferenceAssemblies = Constants.Net100;
SolutionTransforms.Add((Solution solution, ProjectId projectId) =>
{
Project project = solution.GetProject(projectId)!
diff --git a/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/CSharpSourceGeneratorVerifier.cs b/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/CSharpSourceGeneratorVerifier.cs
index ae4e3d2047b..50c949972c8 100644
--- a/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/CSharpSourceGeneratorVerifier.cs
+++ b/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/CSharpSourceGeneratorVerifier.cs
@@ -17,7 +17,7 @@ where TSourceGenerator : ISourceGenerator, new()
{
public Test()
{
- ReferenceAssemblies = Constants.Net80;
+ ReferenceAssemblies = Constants.Net100;
SolutionTransforms.Add((Solution solution, ProjectId projectId) =>
{
diff --git a/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/Constants.cs b/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/Constants.cs
index bfd8fc73692..787e2ebc85d 100644
--- a/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/Constants.cs
+++ b/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/Constants.cs
@@ -8,11 +8,11 @@ public static class Constants
{
public static Assembly GodotSharpAssembly => typeof(GodotObject).Assembly;
- // Can't find what needs updating to be able to access ReferenceAssemblies.Net.Net80, so we're making our own one.
- public static ReferenceAssemblies Net80 => new ReferenceAssemblies(
- "net8.0",
- new PackageIdentity("Microsoft.NETCore.App.Ref", "8.0.0"),
- Path.Combine("ref", "net8.0")
+ // Can't find what needs updating to be able to access ReferenceAssemblies.Net.Net100, so we're making our own one.
+ public static ReferenceAssemblies Net100 => new ReferenceAssemblies(
+ "net10.0",
+ new PackageIdentity("Microsoft.NETCore.App.Ref", "10.0.0"),
+ Path.Combine("ref", "net10.0")
);
public static string ExecutingAssemblyPath { get; }
diff --git a/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/Godot.SourceGenerators.Tests.csproj b/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/Godot.SourceGenerators.Tests.csproj
index e5e50738b27..626e7d32122 100644
--- a/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/Godot.SourceGenerators.Tests.csproj
+++ b/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/Godot.SourceGenerators.Tests.csproj
@@ -1,8 +1,8 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <TargetFramework>net8.0</TargetFramework>
- <LangVersion>12</LangVersion>
+ <TargetFramework>net10.0</TargetFramework>
+ <LangVersion>14</LangVersion>
<Nullable>enable</Nullable>
<IsPackable>false</IsPackable>
diff --git a/modules/mono/editor/GodotTools/GodotTools.BuildLogger/GodotTools.BuildLogger.csproj b/modules/mono/editor/GodotTools/GodotTools.BuildLogger/GodotTools.BuildLogger.csproj
index eee61077b2f..8e27e2f6d79 100644
--- a/modules/mono/editor/GodotTools/GodotTools.BuildLogger/GodotTools.BuildLogger.csproj
+++ b/modules/mono/editor/GodotTools/GodotTools.BuildLogger/GodotTools.BuildLogger.csproj
@@ -1,8 +1,8 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<ProjectGuid>{6CE9A984-37B1-4F8A-8FE9-609F05F071B3}</ProjectGuid>
- <TargetFramework>net8.0</TargetFramework>
- <LangVersion>12</LangVersion>
+ <TargetFramework>net10.0</TargetFramework>
+ <LangVersion>14</LangVersion>
<Nullable>enable</Nullable>
</PropertyGroup>
<ItemGroup>
diff --git a/modules/mono/editor/GodotTools/GodotTools.Core/GodotTools.Core.csproj b/modules/mono/editor/GodotTools/GodotTools.Core/GodotTools.Core.csproj
index 833f6b269a6..f5057e1d8da 100644
--- a/modules/mono/editor/GodotTools/GodotTools.Core/GodotTools.Core.csproj
+++ b/modules/mono/editor/GodotTools/GodotTools.Core/GodotTools.Core.csproj
@@ -2,8 +2,8 @@
<PropertyGroup>
<ProjectGuid>{639E48BD-44E5-4091-8EDD-22D36DC0768D}</ProjectGuid>
- <TargetFramework>net8.0</TargetFramework>
- <LangVersion>12</LangVersion>
+ <TargetFramework>net10.0</TargetFramework>
+ <LangVersion>14</LangVersion>
<Nullable>enable</Nullable>
</PropertyGroup>
diff --git a/modules/mono/editor/GodotTools/GodotTools.IdeMessaging.CLI/GodotTools.IdeMessaging.CLI.csproj b/modules/mono/editor/GodotTools/GodotTools.IdeMessaging.CLI/GodotTools.IdeMessaging.CLI.csproj
index 1b86e58f9e2..bea7dceb684 100644
--- a/modules/mono/editor/GodotTools/GodotTools.IdeMessaging.CLI/GodotTools.IdeMessaging.CLI.csproj
+++ b/modules/mono/editor/GodotTools/GodotTools.IdeMessaging.CLI/GodotTools.IdeMessaging.CLI.csproj
@@ -2,8 +2,8 @@
<PropertyGroup>
<ProjectGuid>{B06C2951-C8E3-4F28-80B2-717CF327EB19}</ProjectGuid>
<OutputType>Exe</OutputType>
- <TargetFramework>net8.0</TargetFramework>
- <LangVersion>12</LangVersion>
+ <TargetFramework>net10.0</TargetFramework>
+ <LangVersion>14</LangVersion>
<Nullable>enable</Nullable>
</PropertyGroup>
<ItemGroup>
diff --git a/modules/mono/editor/GodotTools/GodotTools.OpenVisualStudio/GodotTools.OpenVisualStudio.csproj b/modules/mono/editor/GodotTools/GodotTools.OpenVisualStudio/GodotTools.OpenVisualStudio.csproj
index 406814bd2e5..d9cc6120da2 100644
--- a/modules/mono/editor/GodotTools/GodotTools.OpenVisualStudio/GodotTools.OpenVisualStudio.csproj
+++ b/modules/mono/editor/GodotTools/GodotTools.OpenVisualStudio/GodotTools.OpenVisualStudio.csproj
@@ -2,8 +2,8 @@
<PropertyGroup>
<ProjectGuid>{EAFFF236-FA96-4A4D-BD23-0E51EF988277}</ProjectGuid>
<OutputType>Exe</OutputType>
- <TargetFramework>net8.0-windows</TargetFramework>
- <LangVersion>12</LangVersion>
+ <TargetFramework>net10.0-windows</TargetFramework>
+ <LangVersion>14</LangVersion>
<Nullable>enable</Nullable>
<SelfContained>False</SelfContained>
<RollForward>LatestMajor</RollForward>
diff --git a/modules/mono/editor/GodotTools/GodotTools.ProjectEditor/GodotTools.ProjectEditor.csproj b/modules/mono/editor/GodotTools/GodotTools.ProjectEditor/GodotTools.ProjectEditor.csproj
index 157e2bac79c..97ed20a11f5 100644
--- a/modules/mono/editor/GodotTools/GodotTools.ProjectEditor/GodotTools.ProjectEditor.csproj
+++ b/modules/mono/editor/GodotTools/GodotTools.ProjectEditor/GodotTools.ProjectEditor.csproj
@@ -2,8 +2,8 @@
<PropertyGroup>
<ProjectGuid>{A8CDAD94-C6D4-4B19-A7E7-76C53CC92984}</ProjectGuid>
- <TargetFramework>net8.0</TargetFramework>
- <LangVersion>12</LangVersion>
+ <TargetFramework>net10.0</TargetFramework>
+ <LangVersion>14</LangVersion>
<Nullable>enable</Nullable>
</PropertyGroup>
diff --git a/modules/mono/editor/GodotTools/GodotTools.ProjectEditor/ProjectGenerator.cs b/modules/mono/editor/GodotTools/GodotTools.ProjectEditor/ProjectGenerator.cs
index b4992d0bf48..e7c9bf039ef 100644
--- a/modules/mono/editor/GodotTools/GodotTools.ProjectEditor/ProjectGenerator.cs
+++ b/modules/mono/editor/GodotTools/GodotTools.ProjectEditor/ProjectGenerator.cs
@@ -12,7 +12,7 @@ namespace GodotTools.ProjectEditor
{
public static string GodotSdkAttrValue => $"Godot.NET.Sdk/{GeneratedGodotNupkgsVersions.GodotNETSdk}";
- public static string GodotMinimumRequiredTfm => "net8.0";
+ public static string GodotMinimumRequiredTfm => "net10.0";
public static ProjectRootElement GenGameProject(string name)
{
@@ -26,9 +26,9 @@ namespace GodotTools.ProjectEditor
var mainGroup = root.AddPropertyGroup();
mainGroup.AddProperty("TargetFramework", GodotMinimumRequiredTfm);
- // Non-gradle builds require .NET 9 to match the jar libraries included in the export template.
- var net9 = mainGroup.AddProperty("TargetFramework", "net9.0");
- net9.Condition = " '$(GodotTargetPlatform)' == 'android' ";
+ // Non-gradle builds require .NET 10 to match the jar libraries included in the export template.
+ var net10 = mainGroup.AddProperty("TargetFramework", "net10.0");
+ net10.Condition = " '$(GodotTargetPlatform)' == 'android' ";
mainGroup.AddProperty("EnableDynamicLoading", "true");
diff --git a/modules/mono/editor/GodotTools/GodotTools.Shared/GodotTools.Shared.csproj b/modules/mono/editor/GodotTools/GodotTools.Shared/GodotTools.Shared.csproj
index a281853f682..198a34ddce1 100644
--- a/modules/mono/editor/GodotTools/GodotTools.Shared/GodotTools.Shared.csproj
+++ b/modules/mono/editor/GodotTools/GodotTools.Shared/GodotTools.Shared.csproj
@@ -1,8 +1,8 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <TargetFramework>net8.0</TargetFramework>
- <LangVersion>12</LangVersion>
+ <TargetFramework>net10.0</TargetFramework>
+ <LangVersion>14</LangVersion>
<!-- Specify compile items manually to avoid including dangling generated items. -->
<EnableDefaultCompileItems>false</EnableDefaultCompileItems>
</PropertyGroup>
diff --git a/modules/mono/editor/GodotTools/GodotTools/GodotTools.csproj b/modules/mono/editor/GodotTools/GodotTools/GodotTools.csproj
index 3a3d1277f94..d721782ff79 100644
--- a/modules/mono/editor/GodotTools/GodotTools/GodotTools.csproj
+++ b/modules/mono/editor/GodotTools/GodotTools/GodotTools.csproj
@@ -2,8 +2,8 @@
<PropertyGroup>
<ProjectGuid>{27B00618-A6F2-4828-B922-05CAEB08C286}</ProjectGuid>
- <TargetFramework>net8.0</TargetFramework>
- <LangVersion>12</LangVersion>
+ <TargetFramework>net10.0</TargetFramework>
+ <LangVersion>14</LangVersion>
<EnableDynamicLoading>true</EnableDynamicLoading>
<Nullable>enable</Nullable>
<!-- The Godot editor uses the Debug Godot API assemblies -->
diff --git a/modules/mono/glue/GodotSharp/GodotPlugins/GodotPlugins.csproj b/modules/mono/glue/GodotSharp/GodotPlugins/GodotPlugins.csproj
index 6d557c1eacf..4b7a24ffe7a 100644
--- a/modules/mono/glue/GodotSharp/GodotPlugins/GodotPlugins.csproj
+++ b/modules/mono/glue/GodotSharp/GodotPlugins/GodotPlugins.csproj
@@ -1,8 +1,8 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <TargetFramework>net8.0</TargetFramework>
- <LangVersion>12</LangVersion>
+ <TargetFramework>net10.0</TargetFramework>
+ <LangVersion>14</LangVersion>
<Nullable>enable</Nullable>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
diff --git a/modules/mono/glue/GodotSharp/GodotSharp/Core/NativeInterop/VariantUtils.cs b/modules/mono/glue/GodotSharp/GodotSharp/Core/NativeInterop/VariantUtils.cs
index 9e5df0fa5c3..ef51914860c 100644
--- a/modules/mono/glue/GodotSharp/GodotSharp/Core/NativeInterop/VariantUtils.cs
+++ b/modules/mono/glue/GodotSharp/GodotSharp/Core/NativeInterop/VariantUtils.cs
@@ -249,24 +249,30 @@ namespace Godot.NativeInterop
public static godot_variant CreateFromSystemArrayOfStringName(scoped Span<StringName> from)
{
+#pragma warning disable CA2265 // Comparing a span to 'null' might be redundant.
if (from == null)
return default;
+#pragma warning restore CA2265
using var fromGodot = new Collections.Array(from);
return CreateFromArray((godot_array)fromGodot.NativeValue);
}
public static godot_variant CreateFromSystemArrayOfNodePath(scoped Span<NodePath> from)
{
+#pragma warning disable CA2265 // Comparing a span to 'null' might be redundant.
if (from == null)
return default;
+#pragma warning restore CA2265
using var fromGodot = new Collections.Array(from);
return CreateFromArray((godot_array)fromGodot.NativeValue);
}
public static godot_variant CreateFromSystemArrayOfRid(scoped Span<Rid> from)
{
+#pragma warning disable CA2265 // Comparing a span to 'null' might be redundant.
if (from == null)
return default;
+#pragma warning restore CA2265
using var fromGodot = new Collections.Array(from);
return CreateFromArray((godot_array)fromGodot.NativeValue);
}
diff --git a/modules/mono/glue/GodotSharp/GodotSharp/Core/StringExtensions.cs b/modules/mono/glue/GodotSharp/GodotSharp/Core/StringExtensions.cs
index 42413eb5d88..59ec6cd54dc 100644
--- a/modules/mono/glue/GodotSharp/GodotSharp/Core/StringExtensions.cs
+++ b/modules/mono/glue/GodotSharp/GodotSharp/Core/StringExtensions.cs
@@ -1392,7 +1392,7 @@ namespace Godot
if (pos < 0)
return string.Empty;
- return instance.Substring(pos, instance.Length - pos);
+ return instance.Substring(pos);
}
/// <summary>
@@ -1728,7 +1728,7 @@ namespace Godot
/// <summary>
/// Decodes a string in URL encoded format. This is meant to
/// decode parameters in a URL when receiving an HTTP request.
- /// This mostly wraps around <see cref="Uri.UnescapeDataString"/>,
+ /// This mostly wraps around <see cref="Uri.UnescapeDataString(string)"/>,
/// but also handles <c>+</c>.
/// See <see cref="URIEncode"/> for encoding.
/// </summary>
@@ -1742,7 +1742,7 @@ namespace Godot
/// <summary>
/// Encodes a string to URL friendly format. This is meant to
/// encode parameters in a URL when sending an HTTP request.
- /// This wraps around <see cref="Uri.EscapeDataString"/>.
+ /// This wraps around <see cref="Uri.EscapeDataString(string)"/>.
/// See <see cref="URIDecode"/> for decoding.
/// </summary>
/// <param name="instance">The string to encode.</param>
diff --git a/modules/mono/glue/GodotSharp/GodotSharp/GodotSharp.csproj b/modules/mono/glue/GodotSharp/GodotSharp/GodotSharp.csproj
index cabcdea25b3..950c90e94af 100644
--- a/modules/mono/glue/GodotSharp/GodotSharp/GodotSharp.csproj
+++ b/modules/mono/glue/GodotSharp/GodotSharp/GodotSharp.csproj
@@ -2,8 +2,8 @@
<PropertyGroup>
<ProjectGuid>{AEBF0036-DA76-4341-B651-A3F2856AB2FA}</ProjectGuid>
- <TargetFramework>net8.0</TargetFramework>
- <LangVersion>12</LangVersion>
+ <TargetFramework>net10.0</TargetFramework>
+ <LangVersion>14</LangVersion>
<OutputPath>bin/$(Configuration)</OutputPath>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
<RootNamespace>Godot</RootNamespace>
diff --git a/modules/mono/glue/GodotSharp/GodotSharpEditor/GodotSharpEditor.csproj b/modules/mono/glue/GodotSharp/GodotSharpEditor/GodotSharpEditor.csproj
index c723531e1d8..d923638340a 100644
--- a/modules/mono/glue/GodotSharp/GodotSharpEditor/GodotSharpEditor.csproj
+++ b/modules/mono/glue/GodotSharp/GodotSharpEditor/GodotSharpEditor.csproj
@@ -1,8 +1,8 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<ProjectGuid>{8FBEC238-D944-4074-8548-B3B524305905}</ProjectGuid>
- <TargetFramework>net8.0</TargetFramework>
- <LangVersion>12</LangVersion>
+ <TargetFramework>net10.0</TargetFramework>
+ <LangVersion>14</LangVersion>
<OutputPath>bin/$(Configuration)</OutputPath>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
<RootNamespace>Godot</RootNamespace>
diff --git a/modules/mono/thirdparty/libSystem.Security.Cryptography.Native.Android.jar b/modules/mono/thirdparty/libSystem.Security.Cryptography.Native.Android.jar
index 7dd662be195..6315f7eba1d 100755
Binary files a/modules/mono/thirdparty/libSystem.Security.Cryptography.Native.Android.jar and b/modules/mono/thirdparty/libSystem.Security.Cryptography.Native.Android.jar differ
diff --git a/modules/mono/thirdparty/libSystem.Security.Cryptography.Native.Android.jar.source.txt b/modules/mono/thirdparty/libSystem.Security.Cryptography.Native.Android.jar.source.txt
index 188b63e09dd..086b6069cb1 100644
--- a/modules/mono/thirdparty/libSystem.Security.Cryptography.Native.Android.jar.source.txt
+++ b/modules/mono/thirdparty/libSystem.Security.Cryptography.Native.Android.jar.source.txt
@@ -1 +1 @@
-https://www.nuget.org/packages/Microsoft.NETCore.App.Runtime.Mono.android-arm64/9.0.4
+https://www.nuget.org/packages/Microsoft.NETCore.App.Runtime.Mono.android-arm64/10.0.11
diff --git a/platform/android/export/export_plugin.cpp b/platform/android/export/export_plugin.cpp
index 5010783f927..ceadf85ca33 100644
--- a/platform/android/export/export_plugin.cpp
+++ b/platform/android/export/export_plugin.cpp
@@ -2732,9 +2732,9 @@ bool EditorExportPlatformAndroid::has_valid_export_configuration(const Ref<Edito
err += TTR("Exporting to Android when using C#/.NET is experimental.") + "\n";
if (!gradle_build_enabled) {
- // For template exports we only support .NET 9 because the template
- // includes .jar dependencies that may only be compatible with .NET 9.
- if (!_validate_dotnet_tfm("net9.0", err)) {
+ // For template exports we only support .NET 10 because the template
+ // includes .jar dependencies that may only be compatible with .NET 10.
+ if (!_validate_dotnet_tfm("net10.0", err)) {
r_error = err;
return false;
}