Microsoft MVP성태의 닷넷 이야기
글쓴 사람
정성태 (techsharer at outlook.com)
홈페이지
첨부 파일
 
(연관된 글이 1개 있습니다.)

ClickOnce 응용 프로그램 배포를 Team Build에 추가


일단, "Publish" 동작을 Team Build에 추가하는 것은 매우 간단합니다.

Incorporating a ClickOnce Application into your Team Build
; http://blogs.vertigosoftware.com/teamsystem/archive/2007/02/20/Incorporating_a_ClickOnce_Application_into_your_Team_Build.aspx

와~~~. 그냥 SolutionToPublish 노드만 추가해 주면 됩니다.

그런데... 저 같은 경우에는 이상하게 다음과 같은 오류가 팀 빌드에서 발생했습니다.

[Any CPU/Release] C:\WINDOWS\Microsoft.NET\Framework\v3.5\Microsoft.Common.targets(2341,9): 
error MSB3190: ClickOnce does not support the request execution level 'requireAdministrator'.

이상하네요. 저는 ClickOnce로 배포되는 프로젝트의 app.manifest에 asInvoker로 지정해 두었는데 위에서는 requireAdministrator라고 지정되었다면서 오류가 발생한 것입니다. 음... 가만히 보니, ^^; SolutionToPublish로 지정한 경우에 해당 솔루션에 포함된 모든 EXE 프로젝트를 Publish 하는 것을 알 수 있었습니다. 즉, 솔루션에 포함된 콘솔 응용 프로그램 프로젝트 하나가 "requireAdministrator"로 지정되어 있었는데 그것까지도 배포하려고 하다 보니 오류가 발생한 것이었습니다.

일단은, 그 프로젝트의 manifest 파일을 수정해서 팀 빌드를 성공시켰습니다.

여기서 하나 더 아쉬운 점이 있는데, SolutionToPublish는 "배포까지" 시켜주지는 않고 "배포를 위한 파일"만을 빌드시켜주는 것입니다. 그래서, 팀 빌드 프로젝트에 "Application Files" 폴더만 생성되는 것이지요. 따라서, 실제 "배포까지" 시켜주려면 다음과 같이 복사해주는 과정까지 포함해주어야 합니다.

<Target Name="AfterDropBuild">
    <!-- ClickOnce 응용 프로그램 배포 -->
    <Exec IgnoreExitCode="false" 
    Command="robocopy &quot;$(OutDir)Application Files&quot; &quot;\\TargetMachine\Deploy\Application Files&quot; /S" />
    <Exec IgnoreExitCode="false" 
    Command="copy &quot;$(OutDir)TestApp.application&quot; &quot;\\TargetMachine\Deploy&quot; " />
</Target>

마지막으로... 개발자 PC에서 "Publish" 할 때는 버전이 자동으로 바뀌었지만 (물론, check-out도 자동으로 되고.) 팀 빌드에서 배포할 때는 버전이 자동으로 바뀌지 않습니다. 따라서, 코드 변경을 한 후 팀 빌드를 통해서 배포를 하려면 명시적으로 배포 버전을 올려주어야 합니다.



[이 토픽에 대해서 여러분들과 의견을 공유하고 싶습니다. 틀리거나 미흡한 부분 또는 의문 사항이 있으시면 언제든 댓글 남겨주십시오.]

[연관 글]






[최초 등록일: ]
[최종 수정일: 4/6/2021]

Creative Commons License
이 저작물은 크리에이티브 커먼즈 코리아 저작자표시-비영리-변경금지 2.0 대한민국 라이센스에 따라 이용하실 수 있습니다.
by SeongTae Jeong, mailto:techsharer at outlook.com

비밀번호

댓글 작성자
 




... 106  107  108  109  110  111  112  113  114  115  116  117  [118]  119  120  ...
NoWriterDateCnt.TitleFile(s)
11035정성태8/29/201622555오류 유형: 354. .NET Reflector - PDB 생성 화면에서 "Clear Store"를 하면 "Index and length must refer to a location within the string" 예외 발생
11034정성태8/25/201626617개발 환경 구성: 296. .NET Core 프로젝트를 NuGet Gallery에 배포하는 방법 [2]
11033정성태8/24/201624658오류 유형: 353. coreclr 빌드 시 error C3249: illegal statement or sub-expression for 'constexpr' function
11032정성태8/23/201623839개발 환경 구성: 295. 최신의 Visual C++ 컴파일러 도구를 사용하는 방법 [1]
11031정성태8/23/201619684오류 유형: 352. Error encountered while pushing to the remote repository: Response status code does not indicate success: 403 (Forbidden).
11030정성태8/23/201623286VS.NET IDE: 111. Team Explorer - 추가한 Git Remote 저장소가 Branch에 보이지 않는 경우
11029정성태8/18/201630702.NET Framework: 602. Process.Start의 cmd.exe에서 stdin만 redirect 하는 방법 [1]파일 다운로드1
11028정성태8/15/201623120오류 유형: 351. Octave 설치 시 JRE 경로 문제
11027정성태8/15/201625313.NET Framework: 601. ElementHost 컨트롤의 메모리 누수 현상
11026정성태8/13/201626491Math: 19. 행렬 연산으로 본 해밍코드
11025정성태8/12/201625784개발 환경 구성: 294. .NET Core 프로젝트에서 "Copy to Output Directory" 처리 [1]
11024정성태8/12/201624492오류 유형: 350. "nProtect GameMon" 실행 중에는 Visual Studio 디버깅이 안됩니다! [1]
11023정성태8/10/201626061개발 환경 구성: 293. Azure 구독 후 PaaS 서비스 만들어 보기
11022정성태8/10/201626878개발 환경 구성: 292. Azure Cloud Service 배포시 사용자 정의 작업을 추가하는 방법
11021정성태8/10/201624018오류 유형: 349. System.Runtime.Remoting.RemotingException - Type '..., ..., Version=..., Culture=neutral, PublicKeyToken=null' is not registered for activation [2]
11020정성태8/10/201626833VC++: 98. 원본과 대상 버퍼가 같은 경우 memcpy, wmemcpy 주의점
11019정성태8/10/201643607기타: 60. 도서: 시작하세요! C# 6.0 프로그래밍: 기본 문법부터 실전 예제까지 (2쇄 정오표)
11018정성태8/9/201627553.NET Framework: 600. 단일 메서드 내에서의 할당으로 알아보는 자바와 닷넷의 GC 차이점 [1]
11017정성태8/9/201628327웹: 33. HTTP 쿠키에 한글 값을 설정하는 방법
11016정성태8/7/201626980개발 환경 구성: 291. Windows Server Containers 소개
11015정성태8/7/201625374오류 유형: 348. Windows Server 2016 TP5에서 Windows Containers의 docker run 실행 시 encountered an error during Start failed in Win32
11014정성태8/6/201625949오류 유형: 347. Hyper-V Virtual Machine Management service Account does not have permission to open attachment
11013정성태8/6/201636838개발 환경 구성: 290. Windows 10에서 경험해 보는 Windows Containers와 docker [4]
11012정성태8/6/201626986오류 유형: 346. Windows 10에서 Windows Containers의 docker run 실행 시 encountered an error during CreateContainer failed in Win32 발생
11011정성태8/6/201628194기타: 59. outlook.live.com 메일 서비스의 아웃룩 POP3 설정하는 방법
11010정성태8/6/201624981기타: 58. Outlook에 설정한 SMTP/POP3(예:천리안 메일) 계정 암호를 잊어버린 경우
... 106  107  108  109  110  111  112  113  114  115  116  117  [118]  119  120  ...