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)
134정성태11/15/200511131Microsoft SQL Server Management Studio Express - Community Technical Preview (CTP) November 2005 [1]
242정성태4/19/200611510    답변글 정식 릴리스 - Microsoft SQL Server Management Studio Express
243정성태4/19/200610799    답변글 Microsoft SQL Server 2005 Express Edition Toolkit
245정성태4/19/200611322    답변글 Microsoft SQL Server 2005 Express Edition Service Pack 1
133정성태10/30/200511310VS.NET TS 버전을 제외하고 전부 나왔습니다. ^^
132정성태10/28/200511618IE Script 에서 ADO.Stream 개체를 사용 허가 유무를 지정.
131정성태10/27/200511026ASP.NET Spiced: AJAX
130정성태10/26/200512574RSA In JavaScript [1]파일 다운로드1
128정성태10/25/200511181Connecting to MS SQL Server from Unix파일 다운로드1
129정성태10/25/200510995    답변글 [추가]: SQL Server 2005 JDBC Driver Beta 2 Now Available
173정성태1/20/200610831        답변글 정식 릴리스: Microsoft SQL Server 2005 JDBC Driver
127정성태10/21/20051124964-bit Windows ; 언제, 그리고 왜 써야 할까?
126정성태10/19/200511693WSE(Web Services Enhancements) 3.0의 새로운 기능
125정성태10/14/200511663Cluster 가능한 StateServer 세션 관리자
124정성태10/14/200511767MapPoint Web Service SDK Version 4.0 for Visual Studio .NET 2003
123정성태10/14/200511439alpha release of the Python programming language for the .NET platform
161정성태1/3/200611425    답변글 [추가]: Beta release
184정성태8/12/200611982    답변글 Beta3 까지. ^^
190정성태3/10/200611317    답변글 Beta 4
221정성태3/31/200611517    답변글 Beta 5
246정성태4/21/200611449    답변글 Beta 6
295정성태5/24/200610481    답변글 Beta 7
122정성태10/13/200511258Determine whether service packs are installed on the .NET Framework
121정성태10/12/200510836.NET Reference Guide - 웹
120정성태11/14/200511397VS.NET Automation 과 VSIP
119정성태10/9/200510912Internet Information Services (IIS) 6.0 Resource Kit Tools (English)
... 31  32  33  34  35  36  37  38  39  40  41  [42]  43  44  45  ...