Skip to content

VS 17.6.2 many errors started to appear for Security Code Scan 5.6.7 #282

@AdaskoTheBeAsT

Description

@AdaskoTheBeAsT

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
Security code scan is referenced in Directory.Build.props for all projects within solution
It started to throw multiple errors when trying to load different types of analyzers
One of it

Severity Code Description Project File Line Suppression State
Warning CS8032 An instance of analyzer SecurityCodeScan.Analyzers.UnsafeDeserializationAnalyzerCSharp cannot be created from C:\Users<removed>.nuget\packages\securitycodescan.vs2019\5.6.7\analyzers\dotnet\SecurityCodeScan.VS2019.dll: Exception has been thrown by the target of an invocation.. EY.MMP.Calculators.Abstractions (net7.0) C:\Users<removed>.nuget\packages\securitycodescan.vs2019\5.6.7\analyzers\dotnet\SecurityCodeScan.VS2019.dll 1 Active

Repro
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions