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
; https://learn.microsoft.com/en-us/previous-versions/aspnet/dd465326(v=vs.110)

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
; https://devblogs.microsoft.com/dotnet/xdt-web-config-transforms-in-non-web-projects-2/







[최초 등록일: ]
[최종 수정일: 5/1/2025]


비밀번호

댓글 작성자
 




... [16]  17  18  19  20  21  22  23  24  25  26  27  28  29  30  ...
NoWriterDateCnt.TitleFile(s)
800정성태7/10/200715721.NET 3.5 : 27. IQueryable 구현 방법 [3]
799정성태7/6/200713436VS.NET IDE : 36. MSBee 를 이용한 .NET 1.1 용 프로젝트 빌드
798정성태7/4/200714197VS.NET IDE : 35. 업데이트 - Publish Website hotfix for VS 2005 SP1
797정성태7/3/200714332Debug : 21. Image File Execution Options 키 동작 방식 [1]
796정성태7/3/200715841.NET 3.5 : 26. WCF - WebServiceHost
795정성태6/29/200716251Windows Update "사용 약관 읽기" 화면 잘림 현상
794정성태6/29/200715036Visual C++ : 11. Orcas - 마샬링 라이브러리
793정성태6/28/200715146TFS : 109. Daily Build파일 다운로드1
792정성태6/28/200714368개발 환경 구성: 104. Internet Explorer - Local Intranet 판단 옵션
791정성태6/25/200714792TFS : 108. Orcas - Continuous Integration 지원 [1]
790정성태6/24/200714817개발 환경 구성: 103. Internet Explorer 와 관련된 각종 개발 도구들
789정성태6/23/200715298Vista : 47. 비스타에서만 사용가능한 Managed 기능들 (2)
788정성태6/21/200715176개발 환경 구성: 102. Windows환경에서의 OpenSSL설치파일 다운로드1
787정성태6/21/200715008개발 환경 구성: 101. HttpSimulator
786정성태6/21/200715051TFS : 107. Team Build 와 다중 프로젝트 빌드 설정
785정성태6/19/200715945Vista : 46. 탐색기에서의 네트워크 파일 복사가 느린 문제를 해결하는 방법
784정성태6/19/200714947Windows 2008 : 3. 주요 변화 10가지
783정성태6/18/200716325SDK : 10. IERefreshElevationPolicy Win32 API
782정성태6/17/200714565.NET : 60. 프로젝트에서 참조한 Unmanaged DLL 을 GAC 에 배포하는 방법
781정성태6/16/200716227.NET 3.5 : 25. LINQ 와 동적 쿼리
780정성태6/16/200715418개발 환경 구성: 100. Windows 2008 - 터미널 서비스 Drain 모드
779정성태6/15/200716094SDK : 9. Windows SDK 구분하기
778정성태6/13/200716082Web : 1. Silverlight - Programming HTML with C#
777정성태6/13/200715442TFS : 106. Microsoft eScrum Version 1.0
776정성태6/13/200716318.NET 3.0 : 21. WPF 실습 - Outlook 2007 스타일의 응용 프로그램 개발
775정성태6/11/200715932TFS : 105. Visual Studio Team Foundation Server ? Project Server 2007 Connector
... [16]  17  18  19  20  21  22  23  24  25  26  27  28  29  30  ...