Skip to content

Please consider exposing more of FileUtilities API #2747

@kkm000

Description

@kkm000

I am writing a compiler task, targeting both Windows and Linux, and, from looking at MSBuild sources, realize how many of very important path massaging APIs are internal. Only FileUtilities.GetFolderPath is in fact exposed as public. I have to essentially recreate (inefficiently) such functions as NormalizePath(), which is highly optimized, and a whole host of convenience helpers, such as IsTrailingSlash, DeleteNoThrow etc etc.

Please consider exposing as much of these as reasonable, and perhaps other utility API from Shared/, through the Microsoft.Build.Utilities.Core assembly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions