1
Answer

.NET CORE System.Security API...Type Name could not be found

The type name 'DirectorySecurity' could not be found in the namespace 'System.Security.AccessControl'. This type has been forwarded to assembly 'System.IO.FileSystem.AccessControl, Version=4.0.4.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Consider adding a reference to that assembly.
 
Working with the .NET 3 core sdk and I have had this compiler error twice now in my windows service application. Once in the System.Security.Permissions namespace and another for a type in the System.Security.AccessControl space. I asked this question on StackOverflow already and I have yet to recieve anyone willing to answer or make any attempt to answer for what seems like a simple dependency problem.
 
I myself have made multiple attempts to reference System.Security(.Permissions and .AccessControl) through nuget and locally on my machine in the - I can't figure out what is causing this compiler headache. Dotnet Sdks are on my environment path and Nuget doesn't even list a version of 4.0.4.0 for the assemblage.........I am lost.

Answers (1)