我有一个.NET 4.0 ASP.NET Web应用程序项目,其中包含以下AssemblyInfo.cs:
#if(Development)
[assembly: AssemblyDescription("Development")]
#elif(Test)
[assembly: AssemblyDescription("Test")]
#elif(Production)
[assembly: AssemblyDescription("Production")]
#endif
在Visual Studio 2012中编译项目后,我在Windows属性对话框的详细信息选项卡中检查了某个文件的“文件描述”属性,但该属性为空。如何设置文件描述?
2条答案
按热度按时间vql8enpb1#
您需要应用
[AssemblyTitle]
attribute。qnyhuwrf2#
对于.NET项目,您可以使用相同的
AssemblyTitle
属性,但使用另一种方法MsBuild将自动在生成的
AssemblyInfo.cs
文件中添加此属性