Visual Studio编译-更改DLL文件说明

iyr7buue  于 2023-01-21  发布在  其他
关注(0)|答案(2)|浏览(305)

我有一个.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属性对话框的详细信息选项卡中检查了某个文件的“文件描述”属性,但该属性为空。如何设置文件描述?

qnyhuwrf

qnyhuwrf2#

对于.NET项目,您可以使用相同的AssemblyTitle属性,但使用另一种方法

<PropertyGroup>
    <AssemblyTitle>Description of the Assembly goes here</AssemblyTitle>
</PropertyGroup>

MsBuild将自动在生成的AssemblyInfo.cs文件中添加此属性

相关问题