반응형

분류 전체보기 66

WPF 최대화 문제

문제: WindowStyle=None으로 지정하고 커스텀 WindowChrome을 사용하면 최대화 시 윈도우가 좌측 상단으로 삐져나가고 우측 하단에 빈 공간이 생김 해결: protected override void OnSourceInitialized(EventArgs e) { base.OnSourceInitialized(e); ((HwndSource)PresentationSource.FromVisual(this)).AddHook(HookProc); } public static IntPtr HookProc(IntPtr hwnd, int msg, IntPtr wParam, IntPtr lParam, ref bool handled) { if (msg == WM_GETMINMAXINFO) { // We need..

Code/WPF 2021.08.21

C# 단일 파일 빌드: 파일 중복 오류

문제: 조건: Target framework: net5.0-windows Deployment mode: Self-contained Taget runtime: win-x64 File publish options: Produce single file, Enable ReadyToRun compilation 위 조건에서 Publish 시 오류 발생 하지만 몇 가지 실험을 해 본 결과 위 조건들 중 Produce single file만 활성화되어있어도 발생하는 것 같음 4>The "GenerateBundle" task failed unexpectedly. 4>System.ArgumentException: Invalid input specification: Found multiple entries with the ..

Code/C# 2021.07.25
반응형