mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 07:53:26 +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:
parent
9f68a81659
commit
57d5b664d3
1 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue