Skip to content

Verify that the task analyzer understands and recommends the AbsolutePath.GetCanonicalForm API #14955

Closed

Description

@ViktorHofer

We should at minimum verify that the task analyzer sees the AbsolutePath.GetCanonicalForm API and understands its usages. The analyzer shouldn't recommend using a different API when that one is being used in the intended form.

Also, repos will likely need to polyfill it as it will only be available with MSBuild >= 18.12 so we should resolve it similar to the MT attribute.

Activity

  1. JanProvaznik commented on Sep 8, 2026

    @JanProvaznik
    Member
    1. the MSBuild provided one is recognized as safe by analyzer
    2. polyfilling the implementation as is would not be recognized as safe, hence PR
  2. added a commit that references this issue on Sep 8, 2026
    f5675f0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions