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]


비밀번호

댓글 작성자
 




... 31  32  33  34  35  36  [37]  38  39  40  41  42  43  44  45  ...
NoWriterDateCnt.TitleFile(s)
269정성태5/4/200611939Visual Studio 2005 Team System Level 200 Course Material
268정성태5/4/200612335Microsoft Component Installer Software Development Kit for Windows (x86) Version 2.0
267정성태5/4/200612325101 Code Samples for Visual Basic 2005
266정성태5/3/200614294Consolas Font Pack for Microsoft Visual Studio 2006 [2]
264정성태5/1/200613759Team System for C++ Developers
262정성태5/1/200623841Registry 등록 없이 COM 개체 사용 [1]파일 다운로드2
261정성태4/30/2006134804GB 메모리 인식 [2]
259정성태4/30/200612224Building ASP.NET 2.0 Web Sites Using Web Standards
260정성태4/30/200611683    답변글 XHTML Validator Modulle
258정성태4/29/200612224WebServiceStudio 2.0
263정성태5/1/200611733    답변글 Calling an Arbitrary Web Service
257정성태4/29/200611679TypeForwardedToAttribute
256정성태4/29/200611901Windows API - Using Condition Variables
252정성태4/26/200611906한글 관련 메세지 정리파일 다운로드1
251정성태4/26/200612577IIS 7.0 에서 소개되는 새로운 기능들 [1]
250정성태4/25/200613203툴 소개: VisualNDepend
249정성태4/25/200619202Integrating a debugger into Reflector
265정성태5/1/200613498    답변글 Deblector: First Version
285정성태5/15/200611499    답변글 New Deblector version ( an Add-In to debug with reflector )
248정성태4/21/200611856VS.NET 2005 Add-In : CSS Properties Window
247정성태4/21/200611719VS.NET 2005 Add-In : Spell Checker for HTML and ASP.NET pages
244정성태4/19/200611615SQL Server 2005 Service Pack 1
241정성태4/19/200611126VSTS Annotations for C++: Beyond Just Documenting Method Behavior [1]파일 다운로드1
240정성태4/18/200611734Accessing System Power and Network Status Using SENS
253정성태4/29/200611956    답변글 [HowToUse]: Accessing System Power and Network Status Using SENS
239정성태4/18/200611558Display a Web Page in a Plain C Win32 Application
... 31  32  33  34  35  36  [37]  38  39  40  41  42  43  44  45  ...