Skip to content

SCS0012 after upgrading from net6.0 to net7.0 #277

Description

@mhdejonge-tby

Environment:

  • Version: ?5.6.7?
  • Branch:
    • vs2019
    • vs2017
    • vs2015
  • Installation/Running method:
    • Visual Studio Extension
    • NuGet package
    • Standalone tool
      • DotNet Core Tool from NuGet
      • security-scan4x.zip from GitHub Release section
  • Operating System:
    • Windows
    • Linux
    • Mac

Describe the bug
My team recently upgraded from .NET 6 to .NET 7. After upgrading, we started getting false positive SCS0012 warnings.

Repro
Run dotnet tool restore, dotnet build, and then dotnet tool run security-scan Test.sln.
Example.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions