我正在Visual Studio中创建一个项目模板,我想使AssemblyInfo.cs文件更通用一些。我在项目中需要多次这些值,它们已在Resources.resx下定义。有没有办法(动态)构建AssemblyInfo.cs或者我是否需要对每个值进行硬编码?
[assembly: AssemblyTitle("Template")]
[assembly: AssemblyDescription("A simple template")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Sample Company")]
[assembly: AssemblyProduct("Template")]
[assembly: AssemblyCopyright("Copyright © 2018")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
[assembly: ComVisible(false)]
[assembly: Guid("")]
[assembly: AssemblyVersion("")]
[assembly: AssemblyInformationalVersion("")]
[assembly: NeutralResourcesLanguage("")]