如何在 JScript.NET 中设置程序集属性(版本等)? [英] How do I set assembly attributes (version, etc) in JScript.NET?

查看:27
本文介绍了如何在 JScript.NET 中设置程序集属性(版本等)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一些 javascript,我正在使用 Microsoft 的 jsc.exe 编译器将其编译为 .NET 程序集.我想设置一些程序集元数据,例如文件版本,但我不清楚该怎么做.

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.

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

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

推荐答案

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

这篇关于如何在 JScript.NET 中设置程序集属性(版本等)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆