Skip to content

Improve environment variable analyzer to catch dotnet configuration APIs #311

Description

PR #309 introduced a roslyn analyzer to prevent users from using environment variables.
But besides accessing it directly from System.Environment, users may still reference configuration through other APIs such as
IConfiguration, IOptions, IOptionsSnapshot and IOptionsMonitor. We could enhance the implementation to catch those cases too.

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions