Possible Duplicate:
How to load an assembly without using Assembly.Load?

How to get an assembly version without locking the file?

有帮助吗?

解决方案

Worked it out

var targetVersion = AssemblyName.GetAssemblyName(filePath).Version;
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top