简体   繁体   English

如何从Visual Basic中读取C#DLL的AssemblyFileVersion?

[英]How do I read the AssemblyFileVersion of a C# DLL from Visual Basic?

I am invoking a C# object from a Visual Basic 6.0 sub routine (don't ask). 我正在从Visual Basic 6.0子例程调用C#对象(不要问)。 How do I get the AssemblyFileVersion from Visual Basic? 如何从Visual Basic获取AssemblyFileVersion?

If you're trying to do this from VB6, then you will need something like this: 如果您尝试通过VB6执行此操作,则将需要以下内容:

http://www.visualbasic.happycodings.com/Files_Directories_Drives/code30.html http://www.visualbasic.happycodings.com/Files_Directories_Drives/code30.html

Using the Windows API should give you what you need. 使用Windows API应该可以满足您的需求。

EDIT: 编辑:

Don't know if this might also help: 不知道这是否也有帮助:

http://support.microsoft.com/kb/186118 http://support.microsoft.com/kb/186118

Shows how to use the FileSystemObject which could be an easier way to get file information. 显示如何使用FileSystemObject,这可能是一种获取文件信息的简便方法。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM