Skip to content

Microsoft.PowerShell.LocalAccounts does not build #26238

@xtqqczze

Description

@xtqqczze
dotnet build src/Microsoft.PowerShell.LocalAccounts/Microsoft.PowerShell.LocalAccounts.csproj
./src/Microsoft.PowerShell.LocalAccounts/LocalAccounts/Exceptions.cs(88,88): error SYSLIB0051: 'Exception.Exception(SerializationInfo, StreamingContext)' is obsolete: 'This API supports obsolete formatter-based serialization. It should not be called or extended by application code.' (https://aka.ms/dotnet-warnings/SYSLIB0051) [./src/Microsoft.PowerShell.LocalAccounts/Microsoft.PowerShell.LocalAccounts.csproj]
./src/Microsoft.PowerShell.LocalAccounts/LocalAccounts/Extensions.cs(133,37): error SA1008: Opening parenthesis should not be preceded by a space. (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1008.md) [./src/Microsoft.PowerShell.LocalAccounts/Microsoft.PowerShell.LocalAccounts.csproj]
./src/Microsoft.PowerShell.LocalAccounts/LocalAccounts/Native.cs(172,12): error IDE0040: Accessibility modifiers required (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0040) [./src/Microsoft.PowerShell.LocalAccounts/Microsoft.PowerShell.LocalAccounts.csproj]
./src/Microsoft.PowerShell.LocalAccounts/LocalAccounts/NtStatus.cs(30,1): error SA1507: Code should not contain multiple blank lines in a row (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1507.md) [./src/Microsoft.PowerShell.LocalAccounts/Microsoft.PowerShell.LocalAccounts.csproj]
./src/Microsoft.PowerShell.LocalAccounts/LocalAccounts/Sam.cs(2137,16): error SA1008: Opening parenthesis should not be followed by a space. (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1008.md) [./src/Microsoft.PowerShell.LocalAccounts/Microsoft.PowerShell.LocalAccounts.csproj]
./src/Microsoft.PowerShell.LocalAccounts/LocalAccounts/SamApi.cs(193,24): error IDE0040: Accessibility modifiers required (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0040) [./src/Microsoft.PowerShell.LocalAccounts/Microsoft.PowerShell.LocalAccounts.csproj]
./src/Microsoft.PowerShell.LocalAccounts/LocalAccounts/StringUtil.cs(12,20): error CA1052: Type 'StringUtil' is a static holder type but is neither static nor NotInheritable (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1052) [./src/Microsoft.PowerShell.LocalAccounts/Microsoft.PowerShell.LocalAccounts.csproj]
./src/Microsoft.PowerShell.LocalAccounts/LocalAccounts/Sam.cs(495,85): error CA1416: This call site is reachable on all platforms. 'SecurityIdentifier.ToString()' is only supported on: 'windows'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416) [./src/Microsoft.PowerShell.LocalAccounts/Microsoft.PowerShell.LocalAccounts.csproj]
./src/Microsoft.PowerShell.LocalAccounts/LocalAccounts/LocalPrincipal.cs(96,28): error CA1416: This call site is reachable on all platforms. 'SecurityIdentifier.ToString()' is only supported on: 'windows'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416) [./src/Microsoft.PowerShell.LocalAccounts/Microsoft.PowerShell.LocalAccounts.csproj]
./src/Microsoft.PowerShell.LocalAccounts/LocalAccounts/LocalGroup.cs(62,28): error CA1416: This call site is reachable on all platforms. 'SecurityIdentifier.ToString()' is only supported on: 'windows'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416) [./src/Microsoft.PowerShell.LocalAccounts/Microsoft.PowerShell.LocalAccounts.csproj]
./src/Microsoft.PowerShell.LocalAccounts/LocalAccounts/Sam.cs(364,77): error CA1416: This call site is reachable on all platforms. 'WellKnownSidType.WorldSid' is only supported on: 'windows'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416) [./src/Microsoft.PowerShell.LocalAccounts/Microsoft.PowerShell.LocalAccounts.csproj]
./src/Microsoft.PowerShell.LocalAccounts/LocalAccounts/Sam.cs(535,85): error CA1416: This call site is reachable on all platforms. 'SecurityIdentifier.ToString()' is only supported on: 'windows'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416) [./src/Microsoft.PowerShell.LocalAccounts/Microsoft.PowerShell.LocalAccounts.csproj]
./src/Microsoft.PowerShell.LocalAccounts/LocalAccounts/Sam.cs(440,46): error CA1416: This call site is reachable on all platforms. 'SecurityIdentifier.ToString()' is only supported on: 'windows'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416) [./src/Microsoft.PowerShell.LocalAccounts/Microsoft.PowerShell.LocalAccounts.csproj]
./src/Microsoft.PowerShell.LocalAccounts/LocalAccounts/LocalUser.cs(127,28): error CA1416: This call site is reachable on all platforms. 'SecurityIdentifier.ToString()' is only supported on: 'windows'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416) [./src/Microsoft.PowerShell.LocalAccounts/Microsoft.PowerShell.LocalAccounts.csproj]
./src/Microsoft.PowerShell.LocalAccounts/LocalAccounts/Sam.cs(364,54): error CA1416: This call site is reachable on all platforms. 'SecurityIdentifier' is only supported on: 'windows'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416) [./src/Microsoft.PowerShell.LocalAccounts/Microsoft.PowerShell.LocalAccounts.csproj]
./src/Microsoft.PowerShell.LocalAccounts/LocalAccounts/Sam.cs(434,82): error CA1416: This call site is reachable on all platforms. 'SecurityIdentifier.ToString()' is only supported on: 'windows'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416) [./src/Microsoft.PowerShell.LocalAccounts/Microsoft.PowerShell.LocalAccounts.csproj]
./src/Microsoft.PowerShell.LocalAccounts/LocalAccounts/Commands/EnableLocalUserCommand.cs(179,48): error CA1416: This call site is reachable on all platforms. 'SecurityIdentifier.ToString()' is only supported on: 'windows'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416) [./src/Microsoft.PowerShell.LocalAccounts/Microsoft.PowerShell.LocalAccounts.csproj]
./src/Microsoft.PowerShell.LocalAccounts/LocalAccounts/Commands/DisableLocalUserCommand.cs(179,48): error CA1416: This call site is reachable on all platforms. 'SecurityIdentifier.ToString()' is only supported on: 'windows'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416) [./src/Microsoft.PowerShell.LocalAccounts/Microsoft.PowerShell.LocalAccounts.csproj]
./src/Microsoft.PowerShell.LocalAccounts/LocalAccounts/Commands/AddLocalGroupMemberCommand.cs(288,58): error CA1416: This call site is reachable on all platforms. 'SecurityIdentifier.ToString()' is only supported on: 'windows'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416) [./src/Microsoft.PowerShell.LocalAccounts/Microsoft.PowerShell.LocalAccounts.csproj]
./src/Microsoft.PowerShell.LocalAccounts/LocalAccounts/Commands/AddLocalGroupMemberCommand.cs(251,44): error CA1416: This call site is reachable on all platforms. 'SecurityIdentifier.ToString()' is only supported on: 'windows'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416) [./src/Microsoft.PowerShell.LocalAccounts/Microsoft.PowerShell.LocalAccounts.csproj]
./src/Microsoft.PowerShell.LocalAccounts/LocalAccounts/Extensions.cs(110,76): error SA1003: Operator '-' should be preceded by whitespace. (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1003.md) [./src/Microsoft.PowerShell.LocalAccounts/Microsoft.PowerShell.LocalAccounts.csproj]
./src/Microsoft.PowerShell.LocalAccounts/LocalAccounts/Extensions.cs(110,76): error SA1003: Operator '-' should be followed by whitespace. (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1003.md) [./src/Microsoft.PowerShell.LocalAccounts/Microsoft.PowerShell.LocalAccounts.csproj]
./src/Microsoft.PowerShell.LocalAccounts/LocalAccounts/Extensions.cs(107,41): error CA1416: This call site is reachable on all platforms. 'SecurityIdentifier.BinaryLength' is only supported on: 'windows'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416) [./src/Microsoft.PowerShell.LocalAccounts/Microsoft.PowerShell.LocalAccounts.csproj]
./src/Microsoft.PowerShell.LocalAccounts/LocalAccounts/Extensions.cs(108,13): error CA1416: This call site is reachable on all platforms. 'SecurityIdentifier.GetBinaryForm(byte[], int)' is only supported on: 'windows'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416) [./src/Microsoft.PowerShell.LocalAccounts/Microsoft.PowerShell.LocalAccounts.csproj]
./src/Microsoft.PowerShell.LocalAccounts/LocalAccounts/Commands/RemoveLocalGroupCommand.cs(172,48): error CA1416: This call site is reachable on all platforms. 'SecurityIdentifier.ToString()' is only supported on: 'windows'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416) [./src/Microsoft.PowerShell.LocalAccounts/Microsoft.PowerShell.LocalAccounts.csproj]
./src/Microsoft.PowerShell.LocalAccounts/LocalAccounts/Extensions.cs(133,35): error SA1003: Operator '(long)' should not be followed by whitespace. (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1003.md) [./src/Microsoft.PowerShell.LocalAccounts/Microsoft.PowerShell.LocalAccounts.csproj]
./src/Microsoft.PowerShell.LocalAccounts/LocalAccounts/Commands/RemoveLocalGroupMemberCommand.cs(287,58): error CA1416: This call site is reachable on all platforms. 'SecurityIdentifier.ToString()' is only supported on: 'windows'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416) [./src/Microsoft.PowerShell.LocalAccounts/Microsoft.PowerShell.LocalAccounts.csproj]
./src/Microsoft.PowerShell.LocalAccounts/LocalAccounts/Commands/RemoveLocalGroupMemberCommand.cs(250,44): error CA1416: This call site is reachable on all platforms. 'SecurityIdentifier.ToString()' is only supported on: 'windows'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416) [./src/Microsoft.PowerShell.LocalAccounts/Microsoft.PowerShell.LocalAccounts.csproj]
./src/Microsoft.PowerShell.LocalAccounts/LocalAccounts/Extensions.cs(43,23): error CA1416: This call site is reachable on all platforms. 'SecurityIdentifier' is only supported on: 'windows'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416) [./src/Microsoft.PowerShell.LocalAccounts/Microsoft.PowerShell.LocalAccounts.csproj]
./src/Microsoft.PowerShell.LocalAccounts/LocalAccounts/Extensions.cs(129,13): error CA1416: This call site is reachable on all platforms. 'SecurityIdentifier.GetBinaryForm(byte[], int)' is only supported on: 'windows'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416) [./src/Microsoft.PowerShell.LocalAccounts/Microsoft.PowerShell.LocalAccounts.csproj]
./src/Microsoft.PowerShell.LocalAccounts/LocalAccounts/Extensions.cs(127,41): error CA1416: This call site is reachable on all platforms. 'SecurityIdentifier.BinaryLength' is only supported on: 'windows'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416) [./src/Microsoft.PowerShell.LocalAccounts/Microsoft.PowerShell.LocalAccounts.csproj]
./src/Microsoft.PowerShell.LocalAccounts/LocalAccounts/Commands/RemoveLocalUserCommand.cs(173,48): error CA1416: This call site is reachable on all platforms. 'SecurityIdentifier.ToString()' is only supported on: 'windows'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416) [./src/Microsoft.PowerShell.LocalAccounts/Microsoft.PowerShell.LocalAccounts.csproj]
./src/Microsoft.PowerShell.LocalAccounts/LocalAccounts/Commands/RenameLocalUserCommand.cs(180,44): error CA1416: This call site is reachable on all platforms. 'SecurityIdentifier.ToString()' is only supported on: 'windows'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416) [./src/Microsoft.PowerShell.LocalAccounts/Microsoft.PowerShell.LocalAccounts.csproj]
./src/Microsoft.PowerShell.LocalAccounts/LocalAccounts/Commands/SetLocalGroupCommand.cs(140,45): error CA1416: This call site is reachable on all platforms. 'SecurityIdentifier.ToString()' is only supported on: 'windows'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416) [./src/Microsoft.PowerShell.LocalAccounts/Microsoft.PowerShell.LocalAccounts.csproj]
./src/Microsoft.PowerShell.LocalAccounts/LocalAccounts/Commands/RenameLocalGroupCommand.cs(180,44): error CA1416: This call site is reachable on all platforms. 'SecurityIdentifier.ToString()' is only supported on: 'windows'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416) [./src/Microsoft.PowerShell.LocalAccounts/Microsoft.PowerShell.LocalAccounts.csproj]
./src/Microsoft.PowerShell.LocalAccounts/LocalAccounts/Sam.cs(651,88): error CA1416: This call site is reachable on all platforms. 'SecurityIdentifier.ToString()' is only supported on: 'windows'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416) [./src/Microsoft.PowerShell.LocalAccounts/Microsoft.PowerShell.LocalAccounts.csproj]
./src/Microsoft.PowerShell.LocalAccounts/LocalAccounts/Sam.cs(690,88): error CA1416: This call site is reachable on all platforms. 'SecurityIdentifier.ToString()' is only supported on: 'windows'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416) [./src/Microsoft.PowerShell.LocalAccounts/Microsoft.PowerShell.LocalAccounts.csproj]
./src/Microsoft.PowerShell.LocalAccounts/LocalAccounts/Sam.cs(741,91): error CA1416: This call site is reachable on all platforms. 'SecurityIdentifier.ToString()' is only supported on: 'windows'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416) [./src/Microsoft.PowerShell.LocalAccounts/Microsoft.PowerShell.LocalAccounts.csproj]
./src/Microsoft.PowerShell.LocalAccounts/LocalAccounts/Commands/SetLocalUserCommand.cs(250,45): error CA1416: This call site is reachable on all platforms. 'SecurityIdentifier.ToString()' is only supported on: 'windows'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416) [./src/Microsoft.PowerShell.LocalAccounts/Microsoft.PowerShell.LocalAccounts.csproj]
./src/Microsoft.PowerShell.LocalAccounts/LocalAccounts/Sam.cs(834,84): error CA1416: This call site is reachable on all platforms. 'SecurityIdentifier.ToString()' is only supported on: 'windows'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416) [./src/Microsoft.PowerShell.LocalAccounts/Microsoft.PowerShell.LocalAccounts.csproj]
./src/Microsoft.PowerShell.LocalAccounts/LocalAccounts/Sam.cs(874,84): error CA1416: This call site is reachable on all platforms. 'SecurityIdentifier.ToString()' is only supported on: 'windows'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416) [./src/Microsoft.PowerShell.LocalAccounts/Microsoft.PowerShell.LocalAccounts.csproj]
./src/Microsoft.PowerShell.LocalAccounts/LocalAccounts/Sam.cs(791,45): error CA1416: This call site is reachable on all platforms. 'SecurityIdentifier.ToString()' is only supported on: 'windows'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416) [./src/Microsoft.PowerShell.LocalAccounts/Microsoft.PowerShell.LocalAccounts.csproj]
./src/Microsoft.PowerShell.LocalAccounts/LocalAccounts/Sam.cs(785,81): error CA1416: This call site is reachable on all platforms. 'SecurityIdentifier.ToString()' is only supported on: 'windows'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416) [./src/Microsoft.PowerShell.LocalAccounts/Microsoft.PowerShell.LocalAccounts.csproj]
./src/Microsoft.PowerShell.LocalAccounts/LocalAccounts/Sam.cs(1114,46): error CA1416: This call site is reachable on all platforms. 'SecurityIdentifier.ToString()' is only supported on: 'windows'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416) [./src/Microsoft.PowerShell.LocalAccounts/Microsoft.PowerShell.LocalAccounts.csproj]
./src/Microsoft.PowerShell.LocalAccounts/LocalAccounts/Sam.cs(1140,45): error CA1416: This call site is reachable on all platforms. 'SecurityIdentifier.ToString()' is only supported on: 'windows'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416) [./src/Microsoft.PowerShell.LocalAccounts/Microsoft.PowerShell.LocalAccounts.csproj]
./src/Microsoft.PowerShell.LocalAccounts/LocalAccounts/Sam.cs(1276,21): error SA1131: Constant values should appear on the right-hand side of comparisons (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1131.md) [./src/Microsoft.PowerShell.LocalAccounts/Microsoft.PowerShell.LocalAccounts.csproj]
./src/Microsoft.PowerShell.LocalAccounts/LocalAccounts/Sam.cs(1250,25): error SA1003: Operator '(int)' should not be followed by whitespace. (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1003.md) [./src/Microsoft.PowerShell.LocalAccounts/Microsoft.PowerShell.LocalAccounts.csproj]
./src/Microsoft.PowerShell.LocalAccounts/LocalAccounts/Sam.cs(1066,42): error CA1416: This call site is reachable on all platforms. 'SecurityIdentifier' is only supported on: 'windows'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416) [./src/Microsoft.PowerShell.LocalAccounts/Microsoft.PowerShell.LocalAccounts.csproj]
./src/Microsoft.PowerShell.LocalAccounts/LocalAccounts/Sam.cs(1067,40): error CA1416: This call site is reachable on all platforms. 'SecurityIdentifier.BinaryLength' is only supported on: 'windows'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416) [./src/Microsoft.PowerShell.LocalAccounts/Microsoft.PowerShell.LocalAccounts.csproj]
./src/Microsoft.PowerShell.LocalAccounts/LocalAccounts/Sam.cs(1072,17): error CA1416: This call site is reachable on all platforms. 'SecurityIdentifier.GetBinaryForm(byte[], int)' is only supported on: 'windows'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416) [./src/Microsoft.PowerShell.LocalAccounts/Microsoft.PowerShell.LocalAccounts.csproj]
./src/Microsoft.PowerShell.LocalAccounts/LocalAccounts/Sam.cs(1476,31): error SA1003: Operator '=' should be preceded by whitespace. (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1003.md) [./src/Microsoft.PowerShell.LocalAccounts/Microsoft.PowerShell.LocalAccounts.csproj]
./src/Microsoft.PowerShell.LocalAccounts/LocalAccounts/Sam.cs(1476,31): error SA1003: Operator '=' should be followed by whitespace. (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1003.md) [./src/Microsoft.PowerShell.LocalAccounts/Microsoft.PowerShell.LocalAccounts.csproj]
./src/Microsoft.PowerShell.LocalAccounts/LocalAccounts/Sam.cs(916,59): error CA1416: This call site is reachable on all platforms. 'SecurityIdentifier.ToString()' is only supported on: 'windows'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416) [./src/Microsoft.PowerShell.LocalAccounts/Microsoft.PowerShell.LocalAccounts.csproj]
./src/Microsoft.PowerShell.LocalAccounts/LocalAccounts/Sam.cs(1478,35): error CA1416: This call site is reachable on all platforms. 'SecurityIdentifier' is only supported on: 'windows'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416) [./src/Microsoft.PowerShell.LocalAccounts/Microsoft.PowerShell.LocalAccounts.csproj]
./src/Microsoft.PowerShell.LocalAccounts/LocalAccounts/Sam.cs(1417,17): error CA1416: This call site is reachable on all platforms. 'SecurityIdentifier.GetBinaryForm(byte[], int)' is only supported on: 'windows'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416) [./src/Microsoft.PowerShell.LocalAccounts/Microsoft.PowerShell.LocalAccounts.csproj]
./src/Microsoft.PowerShell.LocalAccounts/LocalAccounts/Sam.cs(1415,42): error CA1416: This call site is reachable on all platforms. 'SecurityIdentifier.BinaryLength' is only supported on: 'windows'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416) [./src/Microsoft.PowerShell.LocalAccounts/Microsoft.PowerShell.LocalAccounts.csproj]
./src/Microsoft.PowerShell.LocalAccounts/LocalAccounts/Sam.cs(1528,42): error CA1416: This call site is reachable on all platforms. 'SecurityIdentifier.BinaryLength' is only supported on: 'windows'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416) [./src/Microsoft.PowerShell.LocalAccounts/Microsoft.PowerShell.LocalAccounts.csproj]
./src/Microsoft.PowerShell.LocalAccounts/LocalAccounts/Sam.cs(1530,17): error CA1416: This call site is reachable on all platforms. 'SecurityIdentifier.GetBinaryForm(byte[], int)' is only supported on: 'windows'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416) [./src/Microsoft.PowerShell.LocalAccounts/Microsoft.PowerShell.LocalAccounts.csproj]
./src/Microsoft.PowerShell.LocalAccounts/LocalAccounts/Sam.cs(2472,25): error CA1416: This call site is reachable on all platforms. 'KnownAce.SecurityIdentifier' is only supported on: 'windows'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416) [./src/Microsoft.PowerShell.LocalAccounts/Microsoft.PowerShell.LocalAccounts.csproj]
./src/Microsoft.PowerShell.LocalAccounts/LocalAccounts/Sam.cs(2471,25): error CA1416: This call site is reachable on all platforms. 'KnownAce.SecurityIdentifier' is only supported on: 'windows'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416) [./src/Microsoft.PowerShell.LocalAccounts/Microsoft.PowerShell.LocalAccounts.csproj]
./src/Microsoft.PowerShell.LocalAccounts/LocalAccounts/Sam.cs(2474,30): error CA1416: This call site is reachable on all platforms. 'KnownAce.AccessMask' is only supported on: 'windows'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416) [./src/Microsoft.PowerShell.LocalAccounts/Microsoft.PowerShell.LocalAccounts.csproj]
./src/Microsoft.PowerShell.LocalAccounts/LocalAccounts/Sam.cs(2469,36): error CA1416: This call site is reachable on all platforms. 'GenericAce.AceType' is only supported on: 'windows'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416) [./src/Microsoft.PowerShell.LocalAccounts/Microsoft.PowerShell.LocalAccounts.csproj]
./src/Microsoft.PowerShell.LocalAccounts/LocalAccounts/Sam.cs(2517,29): error CA1416: This call site is reachable on all platforms. 'KnownAce.SecurityIdentifier' is only supported on: 'windows'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416) [./src/Microsoft.PowerShell.LocalAccounts/Microsoft.PowerShell.LocalAccounts.csproj]
./src/Microsoft.PowerShell.LocalAccounts/LocalAccounts/Sam.cs(2514,40): error CA1416: This call site is reachable on all platforms. 'GenericAce.AceType' is only supported on: 'windows'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416) [./src/Microsoft.PowerShell.LocalAccounts/Microsoft.PowerShell.LocalAccounts.csproj]
./src/Microsoft.PowerShell.LocalAccounts/LocalAccounts/Sam.cs(2520,33): error CA1416: This call site is reachable on all platforms. 'KnownAce.AccessMask' is only supported on: 'windows'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416) [./src/Microsoft.PowerShell.LocalAccounts/Microsoft.PowerShell.LocalAccounts.csproj]
./src/Microsoft.PowerShell.LocalAccounts/LocalAccounts/Sam.cs(2522,33): error CA1416: This call site is reachable on all platforms. 'KnownAce.AccessMask' is only supported on: 'windows'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416) [./src/Microsoft.PowerShell.LocalAccounts/Microsoft.PowerShell.LocalAccounts.csproj]
./src/Microsoft.PowerShell.LocalAccounts/LocalAccounts/Sam.cs(2516,29): error CA1416: This call site is reachable on all platforms. 'KnownAce.SecurityIdentifier' is only supported on: 'windows'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416) [./src/Microsoft.PowerShell.LocalAccounts/Microsoft.PowerShell.LocalAccounts.csproj]
./src/Microsoft.PowerShell.LocalAccounts/LocalAccounts/Sam.cs(2372,21): error SA1131: Constant values should appear on the right-hand side of comparisons (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1131.md) [./src/Microsoft.PowerShell.LocalAccounts/Microsoft.PowerShell.LocalAccounts.csproj]
./src/Microsoft.PowerShell.LocalAccounts/LocalAccounts/Sam.cs(2665,21): error SA1131: Constant values should appear on the right-hand side of comparisons (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1131.md) [./src/Microsoft.PowerShell.LocalAccounts/Microsoft.PowerShell.LocalAccounts.csproj]
./src/Microsoft.PowerShell.LocalAccounts/LocalAccounts/Sam.cs(2366,30): error CA1416: This call site is reachable on all platforms. 'RawAcl' is only supported on: 'windows'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416) [./src/Microsoft.PowerShell.LocalAccounts/Microsoft.PowerShell.LocalAccounts.csproj]
./src/Microsoft.PowerShell.LocalAccounts/LocalAccounts/Sam.cs(2795,27): error CA1416: This call site is reachable on all platforms. 'SecurityIdentifier' is only supported on: 'windows'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416) [./src/Microsoft.PowerShell.LocalAccounts/Microsoft.PowerShell.LocalAccounts.csproj]
./src/Microsoft.PowerShell.LocalAccounts/LocalAccounts/Sam.cs(2661,23): error CA1416: This call site is reachable on all platforms. 'SecurityIdentifier' is only supported on: 'windows'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416) [./src/Microsoft.PowerShell.LocalAccounts/Microsoft.PowerShell.LocalAccounts.csproj]
./src/Microsoft.PowerShell.LocalAccounts/LocalAccounts/Sam.cs(2907,13): error IDE0074: Use compound assignment (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0074) [./src/Microsoft.PowerShell.LocalAccounts/Microsoft.PowerShell.LocalAccounts.csproj]
./src/Microsoft.PowerShell.LocalAccounts/LocalAccounts/Sam.cs(2693,13): error CA1416: This call site is reachable on all platforms. 'SecurityIdentifier.GetBinaryForm(byte[], int)' is only supported on: 'windows'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416) [./src/Microsoft.PowerShell.LocalAccounts/Microsoft.PowerShell.LocalAccounts.csproj]
./src/Microsoft.PowerShell.LocalAccounts/LocalAccounts/Sam.cs(2691,34): error CA1416: This call site is reachable on all platforms. 'SecurityIdentifier.BinaryLength' is only supported on: 'windows'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416) [./src/Microsoft.PowerShell.LocalAccounts/Microsoft.PowerShell.LocalAccounts.csproj]
./src/Microsoft.PowerShell.LocalAccounts/LocalAccounts/Sam.cs(2402,39): error CA1416: This call site is reachable on all platforms. 'RawAcl.BinaryLength' is only supported on: 'windows'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416) [./src/Microsoft.PowerShell.LocalAccounts/Microsoft.PowerShell.LocalAccounts.csproj]
./src/Microsoft.PowerShell.LocalAccounts/LocalAccounts/Sam.cs(2409,21): error CA1416: This call site is reachable on all platforms. 'RawAcl.GetBinaryForm(byte[], int)' is only supported on: 'windows'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416) [./src/Microsoft.PowerShell.LocalAccounts/Microsoft.PowerShell.LocalAccounts.csproj]
./src/Microsoft.PowerShell.LocalAccounts/LocalAccounts/Sam.cs(2407,34): error CA1416: This call site is reachable on all platforms. 'RawAcl.BinaryLength' is only supported on: 'windows'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416) [./src/Microsoft.PowerShell.LocalAccounts/Microsoft.PowerShell.LocalAccounts.csproj]
./src/Microsoft.PowerShell.LocalAccounts/LocalAccounts/Sam.cs(3030,13): error CA1416: This call site is reachable on all platforms. 'SecurityIdentifier.GetBinaryForm(byte[], int)' is only supported on: 'windows'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416) [./src/Microsoft.PowerShell.LocalAccounts/Microsoft.PowerShell.LocalAccounts.csproj]
./src/Microsoft.PowerShell.LocalAccounts/LocalAccounts/Sam.cs(3028,33): error CA1416: This call site is reachable on all platforms. 'SecurityIdentifier.BinaryLength' is only supported on: 'windows'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416) [./src/Microsoft.PowerShell.LocalAccounts/Microsoft.PowerShell.LocalAccounts.csproj]
./src/Microsoft.PowerShell.LocalAccounts/LocalAccounts/Sam.cs(3192,33): error CA1822: Member 'GetOperatingSystem' does not access instance data and can be marked as static (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1822) [./src/Microsoft.PowerShell.LocalAccounts/Microsoft.PowerShell.LocalAccounts.csproj]

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-Metaan issue used to track multiple issuesResolution-By DesignThe reported behavior is by design.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions