1
在.NETCore1.1,下面的代码如何NETCore1.1
typeof(Program).GetTypeInfo().Assembly.GetCustomAttributes().ToList()
回报的自定义组件的属性列表,其中之一是AssemblyTitleAttribute
设置AssemblyTitleAttribute。默认情况下,此属性值返回项目名称,但我如何设置任何其他值?
试图添加组件信息文件AssemblyInfo.cs
它是如何描述here,但得到错误
错误CS0579:重复的 'System.Reflection.AssemblyTitleAttribute' 属性
太好了!非常感谢! false GenerateAssemblyInfo>是我所需要的 –