【发布时间】:2010-11-24 05:14:38
【问题描述】:
我想在当前应用程序域中获取程序集友好名称,因此我写了这样的内容:
static void Main(string[] args)
{
foreach (System.Reflection.Assembly item in AppDomain.CurrentDomain.GetAssemblies())
{
Console.WriteLine(item.FullName);
}
}
但问题是这是我得到的输出,而不是我希望看到的输出:
mscorlib,版本=2.0.0.0, 文化=中性, PublicKeyToken=b77a5c561934e0 应用程序域,版本=1.0.0.0, Culture=neutral, PublicKeyToken=null
其实我期待这些名字:
alt text http://www.pixelshack.us/images/xjfkrjgwqiag9s6o76x6.png
如果我弄错了什么,谁能告诉我。
提前致谢。
或者我期待的名字不是程序集?
【问题讨论】:
标签: c# .net applicationdomain