社区
C#
帖子详情
如何获取在 AssemblyInfo.cs 文件中设置的 Assembly 属性值?
neodotnet
2004-08-12 05:06:10
比如我想在其他窗体中获取我已经设置好的 AssemblyTitle, AssemblyCopyright, AssemblyVersion
等的值?
...全文
341
5
打赏
收藏
如何获取在 AssemblyInfo.cs 文件中设置的 Assembly 属性值?
比如我想在其他窗体中获取我已经设置好的 AssemblyTitle, AssemblyCopyright, AssemblyVersion 等的值?
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
5 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
kangfc
2005-04-26
打赏
举报
回复
mk
qqchen79
2004-08-13
打赏
举报
回复
object[] attrs = Assembly.GetCustomAttribute(typeof(AssemblyProductAttribute), false);
if (attrs.Length != 0) {
AssemblyProductAttribute pna = attrs[0] as AssemblyProductAttribute;
MessageBox.Show(pna.Product);
}
neodotnet
2004-08-12
打赏
举报
回复
通过 Application 无法获取 AssemlyCopyright 值啊
还有, 没有 Application.Title 这个属性啊
如果我想获取所有的 在 AssemblyInfo.cs 中设置的属性值的话, 有不有什么一个专用的类?
triout
2004-08-12
打赏
举报
回复
通过Application可以获得很多数据,如ProductName、Title、Version等。
jimh
2004-08-12
打赏
举报
回复
Application.Title
.net 读取项目
Assembly
Info
.
cs
属性
值
It would be a great stop to write all such things in the
assembly
info
.
cs
(because it needs to completely describe the
assembly
that it is intended to serve for) You can define your
C#版ActiveX + JS +Flex通讯 完整实现
5:修改
Assembly
Info
.
cs
文件
,加上紅色方框部分內容: 6:在ReadICCardActiveX 控件里,添加一個GUID,可以使用 工具-创建GUID 菜单创建一个GUID 7:为了让ActiveX控件获得客户端的信任,控件类还需要实现一个...
VS
中
Assembly
Info
.
cs
文件
详解
1) [
assembly
:
Assembly
Product("")] 特性不限于在
Assembly
Info
.
cs
文件
中
使用,而是可以在任何的.
cs
文件
中
使用。2、通过特性(Attribute)来
设置
程序集(dll
文件
)的常规信息,供查看或作为配置信息供程序内部使用。...
Assembly
Info
.
cs
文件
详解
1、.Net工程的Properties
文件
夹下自动生成一个名为
Assembly
Info
.
cs
的
文件
,一般情况下我们很少直接改动该
文件
。但我们实际上通过另一个形式操作该
文件
。那就是通过在鼠标右键点击项目的
属性
进入“应用程序”->...
C#
中
Assembly
Info
.
cs
文件
详解
1、.Net工程的Properties
文件
夹下自动生成一个名为
Assembly
Info
.
cs
的
文件
,一般情况下我们很少直接改动该
文件
。但我们实际上通过另一个形式操作该
文件
。那就是通过在鼠标右键点击项目的
属性
进入“应用程序”->“程序...
C#
110,538
社区成员
642,577
社区内容
发帖
与我相关
我的任务
C#
.NET技术 C#
复制链接
扫一扫
分享
社区描述
.NET技术 C#
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
让您成为最强悍的C#开发者
试试用AI创作助手写篇文章吧
+ 用AI写文章