我有一些javascript,我正在使用Microsoft的jsc.exe编译器编译成.NET程序集。我想设置一些汇编元数据,例如文件版本,但我不清楚如何做到这一点。
如何在JScript.NET中设置这些程序集级属性?
答案 0 :(得分:2)
import System.Reflection;
[assembly: AssemblyCompanyAttribute("Your Company")]
[assembly: AssemblyCopyrightAttribute("Copyright Your Company 2014")]
[assembly: AssemblyDescriptionAttribute("Description")]
[assembly: AssemblyFileVersionAttribute("1.0.0")]
[assembly: AssemblyProductAttribute("Blah blah")]
[assembly: AssemblyTitleAttribute("Title")]
[assembly: AssemblyTrademarkAttribute("Trademark Your Company 2014")]
[assembly: AssemblyVersionAttribute("1.0.0")]