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)
65정성태2/15/200512386Office 2003: XML Reference Schemas
64정성태2/14/200513560MFC 및 ATL 컨트롤을 위한 서명된 CAB 파일 만들기
63정성태2/15/200511980[CodeProject] Overriding MFC's Default Client Site to Implement IServiceProvider파일 다운로드1
62정성태11/14/200512346간략 소개 - 64bit Windows
61정성태1/29/200512398XP SP2 팝업창을 코드로 띄우는 것이 가능하군요.
60정성태1/28/200510577MSDN Chat : VS.NET 2005 Team System public chats파일 다운로드1
59정성태1/27/200512865Error 1034. Error writing to file" when installing Visual Studio .NET 2005 CTP December 2004 - error code is 2350
57정성태1/17/200512187Microsoft .NET: Implement a Custom Common Language Runtime Host for Your Managed App파일 다운로드1
56정성태1/12/200512565.NET Framework 2.0 설치 후, InfoPath 폼이 VS.NET 2003 에서 디버깅이 안되는 경우.
55정성태1/10/200512698Management (WMI) Extensions for Visual Studio .NET 2003 Server Explorer
54정성태1/11/200511933WSE 2.0 및 Sun JWSDP 1.4를 사용한 WS-Security 상호 운용성
76정성태3/10/200512368    답변글 [추가]: Web Services Security Interoperability using WSE 2.0 and Systinet Server 5.0 for Java
94정성태5/12/200512179    답변글 [추가]: JWSDP 1.5 버전이 나왔군요.
148정성태12/12/200510422    답변글 [추가]: WS-Security Interoperability with .NET/WSE and WebLogic Workshop 8.1파일 다운로드1
53정성태1/6/200512785버퍼 오버런 해결!
58정성태1/23/200513372    답변글 VS.NET 2005 : 새롭게 소개되는 버퍼 오버런 방지 CRT 함수들
52정성태1/6/200511754Visual C# .NET Code Samples
51정성태1/6/200511845Visual C++ .NET 2003 Code Samples
50정성태1/6/200511856Visual Studio .NET 2003 Automation Samples
49정성태1/3/2005117422005년 올 한 해 릴리스 될 MS 제품
48정성태1/2/200511979.NET 2.0 : 연결 문자열 및 기타 .config 내용 암호화
47정성태12/31/200412082뉴스그룹: Microsoft Whidbey Private 뉴스 그룹
46정성태12/31/200411918MSDN Magazine: Comparing the Timer Classes in the .NET Framework Class Library
45정성태12/31/200411390MSDN Magazine: Updating the UI from a Secondary Thread
44정성태12/30/200413271NewSID : 사용자 계정의 보안 식별자를 변경해 주는 프로그램파일 다운로드1
43정성태12/28/200411955VSMT 소개: Physical Server to Virtual Server
... 31  32  33  34  35  36  37  38  39  40  41  42  43  44  [45]  ...