The following is not supported, but should work well.
Add an XML file in you solution with name
SonarLint.xml and reference it in all of your projects as
<!-- Put this snippet as a child of the <Project /> element in your csproj files -->
<!-- do not forget to set the correct path here, it is csproj-relative -->
<Link>Properties\SonarLint.xml</Link> <!-- This is where VS will display the file in the Solution Explorer -->
Then in this file you could set the properties you want and the rules will be able to pick them up automatically.
Note: The name and the type of the file are important!
The properties are written in special format that is not documented. The easiest way to obtain such file is to execute the begin step of Scanner for MSBuild locally and then copy
.sonarqube directory should appear in the same directory where you executed the scanner command. You will have to use the same project key as when you connected the solution.
The problem with this approach is that every time you change the properties in SonarQube you will have to manually update the