본문 바로가기 메뉴 바로가기

devbible

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

devbible

검색하기 폼
  • 전체보기 (356)
    • Tips (44)
    • News (32)
    • Event (10)
    • Travel (0)
    • Review (2)
    • Development (266)
    • etc (1)
  • 방명록

[C#] 빌드시간 가져오기

프로그램 로직에서 이 프로그램의 빌드한 시간을 알고 싶다. 수동으로 시간을 입력하거나 별도의 스크립트를 넣기 싫다. 간한하게 빌드시 결과물에 빌드시간이 들어가게 해보자. 1. Custom Attribute를 작성한다. [AttributeUsage(AttributeTargets.Assembly)] public class BuildTimeAttribute : Attribute { public string BuildTime { get; set; } // 빌드시 생성자 호출 public BuildTimeAttribute(string buildTime) { BuildTime = buildTime; } // 빌드시간을 가져오는 함수 public static string GetAssemblyBuildTime() { ..

Development 2023. 10. 8. 23:19
이전 1 2 3 4 ··· 356 다음
이전 다음
최근에 올라온 글
글 보관함
Total
Today
Yesterday
TAG
  • MySQL
  • ListView
  • Linux
  • 티스토리 초대장
  • 게임쿠폰
  • vcomp140.dll
  • 이벤트
  • 게임
  • dpi
  • redis
  • KitKat
  • Shell
  • svn
  • vcamp140.dll
  • 쿠폰
  • CentOS
  • WSL
  • Collections
  • vcruntime140.dll
  • Visual Studio 2015
  • Java
  • MSSQL
  • android
  • dotnet
  • Eclipse
  • VisualStudio
  • JavaScript
  • Spring
  • SharedPreferences
  • ubuntu
more

Blog is powered by Tistory / Designed by Tistory

티스토리툴바