-
[WPF] PostBuildEventC#/WPF 2023. 6. 1. 14:10
최신으로 변경된 방법.
xcopy "AppPackages\\*.app" "$(SolutionDir)\\Working\\$(Platform)\\$(Configuration)\\$(Targetframework)\\AppPackages\\" /Y /E
이렇게 PostBuildEvent 두번 설정하면 마지막 PostBuildEvent만 실행 됨.
하나의 <PostBuildEvent>에 묶어서 넣어야 함.
특정 모드시에만 동작
Condition으로 조건 달아줌.
https://jay1127.github.io/csharp/3-Copy-File-By-Build-Event/
.NET : 3. 빌드 이벤트(Build event)로 폴더 또는 파일 복사하기
빌드 이벤트(Build event)로 폴더 또는 파일 복사하기
jay1127.github.io
https://learn.microsoft.com/ko-kr/visualstudio/ide/how-to-specify-build-events-csharp?view=vs-2022
빌드 이벤트 지정(C#) - Visual Studio (Windows)
Visual Studio에서 빌드 이벤트를 사용하여 빌드 시작 전, 또는 빌드 완료 후 C# 프로그램을 위한 실행되는 명령을 지정할 수 있습니다.
learn.microsoft.com
How to run Visual Studio post-build events for debug build only
How can I limit my post-build events to running only for one type of build? I'm using the events to copy DLL files to a local IIS virtual directory, but I don't want this happening on the build se...
stackoverflow.com
728x90'C# > WPF' 카테고리의 다른 글
[WPF] ShellExecute (0) 2023.06.09 [WPF] Platform (0) 2023.06.07 [WPF] Find Parent (0) 2023.05.31 [WPF] EventHandler (0) 2023.05.31 [WPF] Access view control from viewmodel (0) 2023.05.31 댓글