c#: 如何在 dll 中设置 "Created by"
c#: how to set "Created by" in dll
开发新的dll时可以设置"Created by"吗?
因此,当用户导入该 dll 时,在 Add Reference
表单中,字段 "Created by" 不为空(如图所示)。
感谢您的帮助!
我认为您应该通过直接写入文件或更改属性设置中的值将您的名字写入 AssemblyInfo.cs
:项目设置--> 在功能区应用程序中:程序集信息-- >公司
您需要在"AssemblyInfo.cs"文件中手动设置AssemblyCompanyAttribute,因为默认情况下它是用空字符串参数初始化的:
[assembly: AssemblyCompany("My company")]
开发新的dll时可以设置"Created by"吗?
因此,当用户导入该 dll 时,在 Add Reference
表单中,字段 "Created by" 不为空(如图所示)。
感谢您的帮助!
我认为您应该通过直接写入文件或更改属性设置中的值将您的名字写入 AssemblyInfo.cs
:项目设置--> 在功能区应用程序中:程序集信息-- >公司
您需要在"AssemblyInfo.cs"文件中手动设置AssemblyCompanyAttribute,因为默认情况下它是用空字符串参数初始化的:
[assembly: AssemblyCompany("My company")]