How to get exe application name and version in C# Compact Framework

前端 未结 4 1794
没有蜡笔的小新
没有蜡笔的小新 2020-12-08 13:02

My application has an exe and uses some DLLs. I am writing all in C#.

In one DLL I want to write a method to get the application name and version from the version in

4条回答
  •  孤街浪徒
    2020-12-08 14:00

    Can you try using FileInfo Class FileVersionInfo. Hope this will help..

    You can also try Win32 API like GetModuleFile()

提交回复
热议问题