msbuild icon indicating copy to clipboard operation
msbuild copied to clipboard

Remove `FEATURE_LEGACY_GETFULLPATH` and use `Microsoft.IO.Path.GetFullPath` in .NET Framework.

Open teo-tsirpanis opened this issue 6 months ago • 3 comments

Context

Extracted from #12231.

The use of Microsoft.IO.Path.GetFullPath in .NET Framework is expected to improve performance by forgoing path validation, and improve consistency with modern .NET.

Changes Made

Removed FileUtilities.GetFullPath and replaced its uses with NewPath.GetFullPath. Also removed other newly dead code.

Testing

Existing testing coverage. Some test code under #if FEATURE_LEGACY_GETFULLPATH was removed.

Notes

teo-tsirpanis avatar May 15 '26 02:05 teo-tsirpanis

This is ready for review. Let me know how you feel about this behavior change.

teo-tsirpanis avatar May 16 '26 02:05 teo-tsirpanis

I will run experimental VS insertion on this PR

OvesN avatar May 19 '26 13:05 OvesN

Insertion seems fine. https://dev.azure.com/devdiv/DevDiv/_git/VS/pullrequest/740089

@rainersigwald can you please take a look on this PR?

OvesN avatar May 20 '26 09:05 OvesN