Microsoft MVP성태의 닷넷 이야기
글쓴 사람
정성태 (techsharer at outlook.com)
홈페이지
첨부 파일
 

웹 프로젝트의 Web.debug.config / Web.Release.config 기능을 일반 프로젝트에 적용하는 방법

Visual Studio 2010 에 적용된 기능 중에 XDT 라는 재미있는 기능이 있습니다.

Web.config Transformation Syntax for Web Application Project Deployment
; http://msdn.microsoft.com/en-us/library/dd465326.aspx

Web Deployment: Web.Config Transformation
 - Step 1: Creating a “Staging” Configuration on your developer box 
 - Step 2: Adding a “Staging” Web.Config Transform file to your project 
 - Step 3: Writing simple transforms to change developer box connection string settings into “Staging” environment settings 
 - Step 4: Generating a new transformed web.config file for “Staging” environment from command line 
 - Step 5: Generating a new transformed web.config file for “Staging” environment from VS UI 
 - Step 6: Understanding various available web.config Transforms and Locators 
 - Step 7: Using Web.config transformation toolset for config files in sub-folders within the project 
; http://vishaljoshi.blogspot.com/2009/03/web-deployment-webconfig-transformation_23.html

상당히 유용한 기능인데, 아쉬운 것은 웹 애플리케이션 프로젝트(Web Application Projects: WAP)의 web.config에만 적용된다는 제한이 있습니다. (개인적으로 쓸데없는 제한을 둔 거라고 봅니다.)

이러한 제약을 약간(?)의 수작업을 통해서 일반적인 app.config 과 그 외의 기타 파일들에 동일한 관리 기능을 부여할 수 있는 방법을 다음의 글에서 친절하게 설명해 주고 있습니다.

XDT (web.config) Transforms in non-web projects
; http://blogs.msdn.com/b/webdevtools/archive/2010/11/17/xdt-web-config-transforms-in-non-web-projects.aspx







[최초 등록일: ]
[최종 수정일: 12/24/2010]


비밀번호

댓글 작성자
 




1  2  3  4  5  6  [7]  8  9  10  11  12  13  14  15  ...
NoWriterDateCnt.TitleFile(s)
1026정성태2/4/200910715TFS : 171. Increment your Assembly Versions using Team Build
1025정성태2/3/200910864Debug : 39. Windows 7 에서 동작하는 ADPlus
1024정성태2/1/200910170VS.NET IDE : 44. Project Template for TFS Utilities
1023정성태1/30/200910712SDK : 16. MsiQueryProductState API
1022정성태1/29/200910450.NET : 98. Pex
1021정성태1/27/200910205Windows 2008 : 8. Active Directory Recycle Bin
1020정성태1/23/200910540IIS : 27. IIS 6 환경에서 AppPool 사용 관리
1019정성태1/23/200910298.NET : 97. COM 개체 사용시 주의점
1018정성태1/23/200910560VS.NET IDE : 43. 새 프로젝트 대화창에서 프로젝트 템플릿이 없을 때 - DevEnv /InstallVSTemplates
1017정성태1/21/200910351.NET 4.0: 7. Workflow Foundation 3.0/3.5와 4.0의 호환에 관해서.
1016정성태1/20/200912235.NET 3.0 : 29. WPF - HWND를 가진 윈도우 투명 처리
1015정성태1/18/200910114Web : 2. Azure 서비스 맛보기 예제
1014정성태1/17/200912803Vista : 54. WinRM(Windows Remote Management)
1013정성태1/17/200910329Windows 7: 2. VS.NET 2008을 64비트 Windows 7 베타에 설치 불가
1012정성태1/15/200910644.NET 3.0 : 28. WPF - Dependency Object 를 Console 응용 프로그램에서 다루기
1011정성태1/13/20099827IIS : 26. 파일 공유를 통한 Configuration 공유 방법 개선
1010정성태1/13/200910566Windows 7: 1. BitLocker - USB 드라이브 지원
1009정성태1/12/200910492IIS : 25. ConfigurationEditor - .config 변경에 대한 코드 생성기
1008정성태1/10/200911391IE 8 User Agent 문자열
1007정성태1/10/200916988.NET 3.0 : 27. WPF - 폴더 선택 대화창 (FolderBrowserDialog) [4]
1006정성태1/7/200910651.NET : 96. C# Interpreter
1005정성태1/4/200911195MPI 를 사용한 첫 응용 프로그램 소개
1004정성태1/3/200910719개발 환경 구성: 125. PowerShell - 동적으로 C# 응용 프로그램 빌드 [1]
1003정성태1/1/2009144162008년 인기 순위 정리
1002정성태12/31/200810480Software Release Management - The Questionnaire
1001정성태12/31/200810173.NET : 95. 빌드된 어셈블리를 서명하는 방법 [1]
1  2  3  4  5  6  [7]  8  9  10  11  12  13  14  15  ...