I am using SonarQube for the first time and a scan of my project revealed 38 bugs. 36 are the same bug:
Provide an 'AssemblyVersion' attribute for this assembly.
SonarQube says to resolve this bug I need to add
[assembly: AssemblyTitle("MyAssembly")]
[assembly: AssemblyVersionAttribute("1.2.125.0")]
before the namespace in each of the 36 files...
However, when I add it to even one file (With the correct title and version number) I get these errors in Visual Studio:
I read this questions and its answers and am more confused than before.
I read this article about "The right way to version your assemblies" and moved my projects' AssemblyInfo.cs
into a linked VersionInfo.cs
file like the article suggested.
At this point I am at a loss, how do I fix these 36 bugs? What is the best practice for providing Assembly Version?