첨부 실행 코드는 나눔고딕코딩 폰트를 사용합니다.
------------------------------------------------------------------------------------------------------------------------------------------------------
728x90
728x170

■ Assembly 클래스의 GetExecutingAssembly 정적 메소드를 사용해 실행 어셈블리의 제품 버전을 구하는 방법을 보여준다.

 

▶ 예제 코드 (C#)

using System.Diagnostics;
using System.Reflection;

string assemblyFilePath = Assembly.GetExecutingAssembly().Location;

string productVersion = FileVersionInfo.GetVersionInfo(assemblyFilePath).ProductVersion;
728x90
그리드형(광고전용)
Posted by icodebroker
,