Support for File Security in .NET Core

后端 未结 3 2168
眼角桃花
眼角桃花 2021-02-14 10:10

We were porting a .NET 4.0 class Library to .NET Core 1.1 and struck with an issue of very limit support for file Security and permissions in .NET Core CLR.

We were tryin

3条回答
  •  囚心锁ツ
    2021-02-14 11:02

    These APIs haven't been included in .NET Standard due to low use and being Windows specific.

    See discussion here regarding its exclusion from .NET Standard: https://github.com/dotnet/standard/issues/15

    As a workaround there is a NuGet package which provides this functionality: https://www.nuget.org/packages/System.IO.FileSystem.AccessControl/

    Also a related question: How to modify file access control in .NET Core

提交回复
热议问题