Facing error while analyzing .Net Framework project: Reference issue

Please provide

  • Operating system: Win 10
  • Visual Studio version:2022
  • SonarLint plugin version:
  • Programming language you’re coding in: .Net Framework
  • Is connected mode used:
    • Connected to SonarCloud or SonarQube (and which version):8.9

And a thorough description of the problem / question:
I am doing the SonarQube analysis for .Net Framework project using CLI.
While doing so, I am getting the following error

Hey there.

It looks like you’re having a problem building your code overall – a problem you would still have even if you weren’t trying to integrate SonarQube analysis. You should resolve this before using the Scanner for .NET to analyze your code.

Your version is also past EOL. You should upgrade to either the latest version or the current LTA (long-term active version) at your earliest convenience. Your upgrade path is:

8.9 → 9.9.4 → 10.5.1 (last step optional)

You may find these resources helpful:

If you have questions about upgrading, feel free to open a new thread for that here.