I am using SonarQube for the first time, and as a result of scanning my project, 38 errors were detected. 36 - the same error:
Provide the AssemblyVersion attribute for this assembly.
SonarQube says that to fix this error I need to add
[assembly: AssemblyTitle("MyAssembly")] [assembly: AssemblyVersionAttribute("1.2.125.0")]
in front of the namespace in each of the 36 files ...
However, when I add it to a single file (with the correct name and version number), I get these errors in Visual Studio:

I read this questions and the answers to them and are more confused than before. I read this article on the “Right Way to Version Your Assemblies” and transferred my AssemblyInfo.cs projects to the linked VersionInfo.cs file, such as the proposed article.
At this moment I am at a loss, how to fix these 36 errors? What is the best practice for providing a version of Assembly?
source share