I have a solution with multiple project. I am trying to optimize AssemblyInfo.cs files by linking one solution wide assembly info file. What are the best practices for doing
Using a single AseemblyInfo.cs file for multiple projects is not recommended.
The AssemblyInfo file includes information that might be relevant only for that specific assembly. The two most obvious pieces of information are the AssemblyTitle
and AssemblyVersion
.
A better solution might be to use targets
file, which are handled by the MSBuild, in order to "inject" assembly attributes to more than one project.