SAST scan in a C# project

We have a C# project and in the pipeline inside the security-code-scan-sast Job there is the next error

“error: Error while adding package ‘SecurityCodeScan.VS2019’ to project ‘’. The project does not support adding package references through the add package command.”

The job completes with the state “Job succeeded” but with no results for the sast

We need to know if the scan is really executed can you help?