How can I fail Build if SOnarLINT issues are reported

Hi I want to Build normal Build in Visual Studio. I want to fail the Solution Build if any of the SonarLint is reporting an Issue.