What are the best practices for using Assembly Attributes?

后端 未结 8 1245
北荒
北荒 2020-12-12 09:16

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

8条回答
  •  粉色の甜心
    2020-12-12 09:42

    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.

提交回复
热议问题