Skip to content

FileSystemInfo.LinkTarget property is not exposed (this was added in .NET 6) #789

Description

@BrianMcBrayer

Describe the bug
I think (?) this is a bug because this is a property on System.IO.FileSystemInfo that is not on System.IO.Abstractions.IFileSystemInfo. This property was added in .NET 6 to help working with symlinks. See https://docs.microsoft.com/en-us/dotnet/api/system.io.filesysteminfo.linktarget?view=net-6.0

To Reproduce

  1. Look at ApiParityTests.FileIno_.NET 6.0.snap
  2. See that "System.String LinkTarget" is marked as a missing member

or

  1. Write an app that needs to access LinkTarget

Expected behavior
I would expect IFileSystemInfo to have a LinkTarget property when this package is consumed by a .NET 6 app.

Note
I will be very happy to implement this. The only question I have is how does this project handle multitargetting? Any gotchas I need to know? Otherwise I'll add it and also add tests and such. I need this for something and want to help make it happen.

Activity

  1. BrianMcBrayer commented on Jan 7, 2022

    @BrianMcBrayer
    ContributorAuthor

    I've got the code almost ready to go. I need some guidance on adding to the test helpers--I'll put the PR up and we can discuss.

  2. fgreinacher commented on Jan 8, 2022

    @fgreinacher
    Contributor

    Thanks for bringing this up! I'll try to answer your questions in the PR!

  3. added
    area: coreIssues that address the core abstractions & the wrappers
    state: in workIssues that are currently worked on
    type: enhancementIssues that propose new functionality
    and removed
    type: bugIssues that describe misbehaving functionality
    on Jan 8, 2022
  4. github-actions commented on Jan 11, 2022

    @github-actions

    This is addressed in release v16.1.1.

  5. added a commit that references this issue on Nov 1, 2024
    ba59ebe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: coreIssues that address the core abstractions & the wrappersstate: in workIssues that are currently worked onstate: releasedIssues that are releasedtype: enhancementIssues that propose new functionality

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions