SonarSource / sonar-scanner-msbuild

SonarScanner for .NET
http://redirect.sonarsource.com/doc/msbuild-sq-runner.html
GNU Lesser General Public License v3.0
364 stars 142 forks source link

Consolidate TFM and LangVersion for test projects #1167

Open andrei-epure-sonarsource opened 2 years ago

andrei-epure-sonarsource commented 2 years ago

Currently the TFM and LangVersion is duplicated across the test project csproj files. We should consolidate them into a common Properties file referenced by all projects.

pavel-mikula-sonarsource commented 2 years ago

This can be put here: https://github.com/SonarSource/sonar-scanner-msbuild/blob/master/Tests/Directory.Build.targets

While doing so, be aware that (only locally?) test files are dumped into /Tests/SonarScanner.MsBuild.*/**/bin/*/** so the changes can affect the content of the test cases as well.