How do I set assembly attributes (version, etc) in JScript.NET?

非 Y 不嫁゛ 提交于 2019-12-08 07:52:07

问题


I have some javascript that I'm compiling with Microsoft's jsc.exe compiler into a .NET assembly. I would like to set some assembly metadata, such as the file version, but it is unclear to me how to do that.

How can I set these assembly-level attributes in JScript.NET?


回答1:


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


来源:https://stackoverflow.com/questions/19545446/how-do-i-set-assembly-attributes-version-etc-in-jscript-net

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!