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]


비밀번호

댓글 작성자
 




... 16  17  18  19  20  21  22  23  [24]  25  26  27  28  29  30  ...
NoWriterDateCnt.TitleFile(s)
599정성태1/21/200710119Vista : 29. UAC 와 보안 데스크탑
598정성태1/21/20079392VS.NET IDE : 16. Orcas 2월 CTP 소식 - Sapphire 프로젝트
604정성태1/23/20079414    답변글 VS.NET IDE : 16.1 Sapphire가 결합된 Orcas 미리 보기
597정성태1/24/20079218.NET : 49. Enterprise Library 3.0 2007년 1월 CTP
596정성태1/20/20079926Visual C++ : 7. ATL Server 공유 소스 프로젝트로 공개(계획)
595정성태1/19/200711320Vista : 28. Windows Eventing 6.0과 관련된 토픽 모음 [2]
593정성태1/18/200710138개발 환경 구성: 68. Dotfuscator Stack trace decoding tool
592정성태1/18/200711069IIS : 8. 기본 문서 동작 방식
591정성태1/18/200710001.NET 3.5 : 2. Orcas CTP에서 소개되는 새로운 암호화 관련 클래스
590정성태1/17/200710267.NET 3.5 : 1. Orcas Jan CTP 에서 간단한 Linq 프로그램 시작
589정성태1/17/200710075Visual C++ : 6. VC 8.0 런타임 설치 여부
588정성태1/16/20079781Vista : 27. 비스타 용 응용 프로그램 개발 관련 문서
587정성태1/16/200710149Vista : 26. 시작 프로그램에 등록되는 응용 프로그램 마이그레이션
586정성태1/16/20079870TFS : 65. Areas, Iterations, and Subscriptions
585정성태1/16/20079537.NET : 48. Java 와 .NET 의 보안 측면을 비교한 문서 [2]
584정성태1/15/20079868.NET : 47. PInvoke 함수에 대한 적절한 보안 적용
583정성태1/10/20079429Debug : 6. MDbg 관련 자료 링크 모음
582정성태1/10/20079283.NET 3.0 : 11. Windows CardSpace Hads on Lab
581정성태1/10/20079327.NET : 46. Validation Application Block (Enterprise Library 3.0)
594정성태1/18/20079727    답변글 EntLib 3.0 1월 CTP - Validation Application Block
580정성태1/9/20079854TFS : 64. 명령행에서 프록시 서버 지정
579정성태1/9/20079534TFS : 63. Area 의 정의
578정성태1/8/200710078Vista : 25. 비스타 멀티 부트
577정성태1/5/20079760VS.NET IDE : 15. 사용팁 몇 가지
576정성태1/5/20079576.NET : 45. internal 접근자보다 더 안전하게 보호하는 방법
575정성태1/4/20079887TFS : 62. Doing an Incremental Get in Team Build
... 16  17  18  19  20  21  22  23  [24]  25  26  27  28  29  30  ...