Getting file version info in the Compact Framework

后端 未结 1 656
甜味超标
甜味超标 2021-01-21 07:05

I have some code that needs to be able to find the version number of an assembly, given a string saying where it\'s located.

I can\'t get this to work:

         


        
相关标签:
1条回答
  • 2021-01-21 07:49

    sqlcecompact35.dll is not a managed assembly and therefore cannot be loaded via Reflection. That DLL, along with other files like sqlceqp35.dll, sqlceca35.dll (look in the distribution for all files) are the natie pieces of the data engine. The only managed assembly that you might load this way is System.Data.SqlServerCe.dll.

    EDIT

    Getting the file version info for a native file is not near as easy in the Compact Framework. I've built and blogged a solution to retrieve this info for you.

    0 讨论(0)
提交回复
热议问题