如何在JScript.NET中设置程序集属性(版本等)?

时间:2013-10-23 15:04:02

标签: metadata .net-assembly jscript.net

我有一些javascript,我正在使用Microsoft的jsc.exe编译器编译成.NET程序集。我想设置一些汇编元数据,例如文件版本,但我不清楚如何做到这一点。

如何在JScript.NET中设置这些程序集级属性?

1 个答案:

答案 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")]