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

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