在AssemblyInfo.cs中记录特定于程序集的信息是一种好习惯吗?

时间:2014-12-01 11:35:52

标签: c# .net .net-assembly

在我创建的大多数项目中,我都有项目或程序集特定的信息。对我来说合乎逻辑的地方似乎是将文档放入的AssemblyInfo.cs文件。我开始像这样转换AssemblyInfo.cs:

using System.Reflection;
using System.Runtime.InteropServices;

[assembly: AssemblyTitle("Woei")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("Woei")]
[assembly: AssemblyCopyright("Copyright © WoeiWare 2014")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
[assembly: ComVisible(false)]
[assembly: Guid("44daa4c8-14b5-48ef-b12d-abde36681df8")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]


namespace dStyle.Fields.Properties {
    /// Woei means the wind is blowing hard in The Netherlands
    internal static class Documentation { }
}

1 个答案:

答案 0 :(得分:0)

我说是的,你还能把它放在哪里?

一个选项是拥有一个master \ global assemblyInfo文件,并将所有公共程序集信息保存在与项目级别assemblyinfo合并的单个文件中。