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)
373정성태7/23/200612651.NET : 8. The ADO.NET Entity Framework Overview [2]
372정성태7/22/200612839TFS : 19. TFS 단일 서버에 설치하는 방법 정리
371정성태7/23/200612771개발환경 구성 : 11. Virtual Server 2005 R2 SP1에서 추가되는 기능
370정성태8/5/200613025Debug : 3. Method Calls: Part 1 (Normal Call)파일 다운로드1
369정성태7/20/200612887Debug : 2. Unable to Start Debugging on the Web Server
368정성태7/14/200612372TFS : 18. 관계가 없는 두 브랜치에 포함된 소스를 병합하는 방법
367정성태7/14/200612308TFS : 17. (웹 서비스를 이용하여) 작업항목 생성 및 이메일 공지
366정성태7/11/200612313TFS : 16. Updating the Team Foundation Server Warehouse on Demand
365정성태7/11/200613251TFS : 15. 특정 파일과 연관된 changeset 찾는 방법
364정성태7/10/200612291VS.NET IDE : 11. 서버측 컨트롤 주석처리 방법
363정성태7/25/200614255개발환경 구성 : 10. .NET 2.0 설치 전에 사전 조사되는 항목들
362정성태7/10/200612313TFS : 15. 팀 빌드 결과물에 빌드 버전 추가. [1]파일 다운로드1
361정성태7/9/200612927TFS : 14. Listing all Labels attached to a file or folder
360정성태7/9/200612275VS.NET IDE : 10. Custom formatting HTML in Visual Web Developer and Visual Studio 2005파일 다운로드1
359정성태7/9/200612007VS.NET IDE : 9. [Add-in] XPathmania
358정성태7/9/200614005VS.NET IDE : 8. VS.NET Editor 윈도우에서 칼럼 구분선 보이기
357정성태7/9/200613312TFS : 13. BVT ( Build Verification Testing )
356정성태10/20/200613391.NET 3.0 : 1. [WCF] Beta2 와 비교해서 June CTP 버전에서 바뀐 점
355정성태7/5/200615109TFS : 12. TFS 이벤트를 받는 WCF 클라이언트 제작파일 다운로드2
354정성태7/3/200613095IIS - 3. IIS 7.0 에서 소개되는 Microsoft.Web.Administration 네임스페이스파일 다운로드1
353정성태7/1/200613419SDK : 3. Microsoft National Language Support Downlevel APIs 1.0 [2]
350정성태7/1/200613530개발환경 구성 : 9. Deploying Microsoft .NET Framework Version 3.0
349정성태7/1/200613650개발환경 구성 : 8. 대규모 웹 사이트를 위한 Web Application Project 구조 잡기
348정성태7/9/200612120VS.NET IDE : 7. Debugger Visualizer - CodeDomVisualizer
347정성태6/30/200611865TFS : 11. Tip for doing code reviews with TFS Shelvesets
346정성태6/29/200612192Debug : 1. How to build Mdbg apps파일 다운로드1
... 31  32  [33]  34  35  36  37  38  39  40  41  42  43  44  45  ...