1
0
mirror of https://github.com/godotengine/godot.git synced 2025-12-31 18:41:20 +00:00

Merge pull request #103714 from raulsntos/dotnet/skip-resaving-when-tfm-unchanged

[.NET] Skip re-saving `.csproj` when TFM is unchanged
This commit is contained in:
Thaddeus Crews
2025-03-06 16:36:08 -06:00

View File

@@ -191,6 +191,13 @@ namespace GodotTools.ProjectEditor
// Otherwise, it can be removed.
if (mainTfmVersion > minTfmVersion)
{
var propertyTfmVersion = NuGetFramework.Parse(property.Value).Version;
if (propertyTfmVersion == minTfmVersion)
{
// The 'TargetFramework' property already matches the minimum version.
continue;
}
property.Value = minTfmValue;
}
else