473,396 Members | 1,895 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Using config files other than app.config for different configurations

I have created two configurations. One is called Release-Internal and
one is called Release-External. I also have two config files named
Internal.config and External.config. The difference in the files is
that the server locations included within each file are either the
local internal addresses or the external public addresses. I've set
the "override file" property in the configuration option property page
to be Interal.config for Release-Internal and to External.config for
Release.external. The effect of that seems to be when you build a
deployment package then the correct .config file is deployed as
AppName.exe.config. My problem with that is that I often rebuild a
project without deploying a new MSI file. What I would like to have
happen is that .NET detects that since I'm building the project in
Release-External to use the External.config file to create an
AppName.exe.config file, and vice-versa. However, when building the
projects, .NET will only use App.Config. If there is no file named
App.Config it won't create any file named AppName.exe.config. How are
others getting around this?

Thanks in advance.
Matthew
Nov 20 '05 #1
0 1316

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Metaljock | last post by:
Please forgive me if this question is not clear. I am not a .Net developer, I am just trying to get a .Net app to work with Citrix. I have a .Net app that runs on Terminal Services 2003 with...
1
by: Vyacheslav Lanovets | last post by:
Hello, All! Installed VS 2005... What is annoying is that project files are not backward compatible. For instance, EVC4 vcp files are backward compatible with EVC3 and can be used...
22
by: Daniel Billingsley | last post by:
Ok, I wanted to ask this separate from nospam's ridiculous thread in hopes it could get some honest attention. VB6 had a some simple and fast mechanisms for retrieving values from basic text...
8
by: Robert W. | last post by:
I've almost completed building a Model-View-Controller but have run into a snag. When an event is fired on a form control I want to automatically updated the "connnected" property in the Model. ...
7
by: Bob | last post by:
It's great that VS.NET makes it so effortless to add a web reference to a web service. The problem is, I haven't figured out a way to configure the URLs (or simply switch the references to another...
6
by: Joel H | last post by:
We have several settings in web.config that are different on the developer side than the production side. Our website sourcecode is under sourcesafe control, so before we code, we check out the...
2
by: Spam Catcher | last post by:
Is there a way to script VS.NET to copy different app.config along with different build configurations? In fact, it would be great if I could dynamically substitute app.config values for...
5
by: =?Utf-8?B?RGFuaWVs?= | last post by:
How can I switch connection strings stored in config file based on the build configuration? Or my real question is how most people maintain different connection strings when their code is running...
1
by: Barney Gumble | last post by:
Hi all. I'd like to get deeper into details of project layout in visual studio. And maybee someone finds it interesting ... I've got a project with the following layout just theoretical: ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.