You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-12 13:20:55 +00:00
[.NET] Skip re-saving .csproj when TFM is unchanged
Avoids updating the platform-specific `TargetFramework` properties if they already match the minimum required version.
This commit is contained in:
@@ -191,6 +191,13 @@ namespace GodotTools.ProjectEditor
|
|||||||
// Otherwise, it can be removed.
|
// Otherwise, it can be removed.
|
||||||
if (mainTfmVersion > minTfmVersion)
|
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;
|
property.Value = minTfmValue;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user