Skip to content

CodeAnalysisRuleSet property should be added to an unconditional PropertyGroup in the msbuild project file #6774

@AArnott

Description

@AArnott

Roslyn will report compile warnings even though I have suppressed them in the IDE using the References -> Analyzers UI in Solution Explorer.

git clone https://github.com/AArnott/PCLCrypto.git
cd pclcrypto\src
git checkout fbd8c226de0
nuget restore
msbuild PCLCrypto.iOS-Unified\PCLCrypto.iOS-Unified.csproj

Expected
No SA1124 warnings. The PCLCrypto.iOS-Unified.ruleset file has this analyzer set to None.

Actual
Several SA1124 warnings:

C:\Users\andarno\git\PCLCrypto\src\PCLCrypto.Shared.Common\CryptoStream.cs(186,9): warning SA1124: Do not use regions [C:\Users\andarno\git\PCLCrypto\src\PCLCrypto.iOS-Unified\PCLCrypto.iOS-Unified.csproj]

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions