Click here to Skip to main content
15,894,410 members
Articles / Mobile Apps / Windows Mobile

Config Customization at Build Time in Visual Studio

Rate me:
Please Sign up or sign in to vote.
4.93/5 (12 votes)
22 Jun 2008CPOL5 min read 68.6K   326   39  
Modify config files with machine- or build-specific differences at compile time.

Microsoft Visual Studio Solution File, Format Version 9.00
# Visual Studio 2005
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConfigMerge", "ConfigMerge\ConfigMerge.csproj", "{7283BF08-519C-449C-B7DC-DDB571FD2211}"
	ProjectSection(WebsiteProperties) = preProject
		Debug.AspNetCompiler.Debug = "True"
		Release.AspNetCompiler.Debug = "False"
	EndProjectSection
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Test Application", "Test Application\Test Application.csproj", "{A278DF10-2BD8-43F8-A658-2E5DA1327301}"
	ProjectSection(WebsiteProperties) = preProject
		Debug.AspNetCompiler.Debug = "True"
		Release.AspNetCompiler.Debug = "False"
	EndProjectSection
	ProjectSection(ProjectDependencies) = postProject
		{7283BF08-519C-449C-B7DC-DDB571FD2211} = {7283BF08-519C-449C-B7DC-DDB571FD2211}
	EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{CFA3AD8C-F1D5-438C-B3CC-7598EAC72149}"
	ProjectSection(WebsiteProperties) = preProject
		Debug.AspNetCompiler.Debug = "True"
		Release.AspNetCompiler.Debug = "False"
	EndProjectSection
	ProjectSection(SolutionItems) = preProject
		ConfigMerge.bat = ConfigMerge.bat
		ConfigMerge.exe = ConfigMerge.exe
	EndProjectSection
EndProject
Global
	GlobalSection(SolutionConfigurationPlatforms) = preSolution
		Custom Configuration|Any CPU = Custom Configuration|Any CPU
		Debug|Any CPU = Debug|Any CPU
		Release|Any CPU = Release|Any CPU
	EndGlobalSection
	GlobalSection(ProjectConfigurationPlatforms) = postSolution
		{7283BF08-519C-449C-B7DC-DDB571FD2211}.Custom Configuration|Any CPU.ActiveCfg = Custom Configuration|Any CPU
		{7283BF08-519C-449C-B7DC-DDB571FD2211}.Custom Configuration|Any CPU.Build.0 = Custom Configuration|Any CPU
		{7283BF08-519C-449C-B7DC-DDB571FD2211}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
		{7283BF08-519C-449C-B7DC-DDB571FD2211}.Debug|Any CPU.Build.0 = Debug|Any CPU
		{7283BF08-519C-449C-B7DC-DDB571FD2211}.Release|Any CPU.ActiveCfg = Release|Any CPU
		{7283BF08-519C-449C-B7DC-DDB571FD2211}.Release|Any CPU.Build.0 = Release|Any CPU
		{A278DF10-2BD8-43F8-A658-2E5DA1327301}.Custom Configuration|Any CPU.ActiveCfg = Custom Configuration|Any CPU
		{A278DF10-2BD8-43F8-A658-2E5DA1327301}.Custom Configuration|Any CPU.Build.0 = Custom Configuration|Any CPU
		{A278DF10-2BD8-43F8-A658-2E5DA1327301}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
		{A278DF10-2BD8-43F8-A658-2E5DA1327301}.Debug|Any CPU.Build.0 = Debug|Any CPU
		{A278DF10-2BD8-43F8-A658-2E5DA1327301}.Release|Any CPU.ActiveCfg = Release|Any CPU
		{A278DF10-2BD8-43F8-A658-2E5DA1327301}.Release|Any CPU.Build.0 = Release|Any CPU
	EndGlobalSection
	GlobalSection(SolutionProperties) = preSolution
		HideSolutionNode = FALSE
	EndGlobalSection
EndGlobal

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Web Developer
United States United States
Jim is a developer working in Auburn, Alabama, USA. He started working as a programmer in 1997; much of his early experience was with MFC and ASP, with brief forays into Java servlets, Borland's OWL, and plain-old windows API.

Since 2001 Jim has worked primarily with .NET, writing windows and web applications, windows services, and client-server apps. With a little bit of AS3/Flex code thrown in there.

Jim comments code in the first person (much to the amusement of his coworkers,) and feels especially weird writing about himself in the third.

Comments and Discussions