|
I have a collection of unit test that I need to all run from one command line call. One of the assemblies uses a different config file than the rest of the assemblies. Is there a way to specify more than one app config file in one nunit project file?
Started by Maudite on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Not in a project file, but you can specify a config file per assembly (e.g..
An example of how to do that.
|
|
I have standard logging, nhibernate, etc configuration blocks in my app.config and I'd like to extract them into a common xml file that can be included as a reference by all of my applications' app.config files.
Is this possible?
Started by TheSoftwareJedi on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Some management of how sections override each other when defined in a child config file (ASP.NET to worry about accidentally overriding those settings during a deployment where a config file also reside in a relative child....
|
|
I'm trying to access a config file from a a servlet inside of .war-file. The problem is, that the default file path is the tomcat root itself and hardcoding the path to the file seems not like an option either. Is it possible to get any information through...
Started by pmr on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
GetConfigurationFile() { String envPath = System.getEnv("CONFIG_FILE"); // Use a better-named variable if(envPath == null || envPath.equals("") { throw new RuntimeException("CONFIG_FILE environment variable not set."); } else....
|
Ask your Facebook Friends
|
I have a .NET dll which needs to read it's config settings from it's config file. Usually, the config file is placed in the same directory as the DLL. But how do i read the config file if the DLL is GAC'ed, because I can put only the DLLs in the GAC, ...
Started by ashwnacharya on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
I would not do the absence of a configuration file....
The app.config file should be stored in the same changes to the machine.config file so that your Dll can find them there.
From the app.config file, not it's own config.
|
|
Hello
I would like to be able to merge two files into one during configure run. I already do textural replacement using AC_CONFIG_SRCDIR[file.hpp] macro on some files. is there some directive to include files from file.hpp.in , some sort of @include (...
Started by aaa on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
file insertion can be done using ac_subst_file ..
AC_CONFIG_FILES([file.hpp:file.hpp.in:another.hpp.in]) will perform text substitution on both.
|
|
So, I killed the build today by checking in a config file. It knows where the server is (think SQL server or the like), and I've been working against the server which runs on my box. Normally, or rather, under other circumstances, we'd run against the...
Started by doppelfish on
, 8 posts
by 8 people.
Answer Snippets (Read the full thread at stackoverflow):
What you can do is ....
One method I've used is to have two versions of the config file, and have the installer script pull).cert *.(config | xml).production Hudson deletes the initial file and deploys the correct file.
|
|
I need to store log files and config files for my application. Where is the best place to store them?
Right now I'm just using the current directory, which ends up putting them in the Program Files directory where my program lives.
The log files will ...
Started by Dave on
, 8 posts
by 8 people.
Answer Snippets (Read the full thread at stackoverflow):
Do not store config files in the application folder, Microsoft has stated - System.Environment.SpecialFolder.LocalApplicationData
To be honest %appdata% is still the best place to place your config the app....
For this type of thing.
|
|
I'm using SubSonic 2 from within a project and I'd like to specify a different .config file from the default App.config. How can I tell SubSonic to use a specific config file?
Started by Rory on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
It appears that you can do section: string configPath....
For example:
// Part 1: set the config ConfigurationManager to open up the app's config and find it's goodies.
Configuration file, it'll just use the details you've given it.
|
|
I need to specify path to dlls referenced by assembly in .config file. Problem is that path can be found in env. variable. Is it possible to use some sort of %DLLPATH% macro in .config file?
Started by Jox on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Is the config file under your control? Could you just rewrite it?
In fact, even if you can do you have something like that in your config:
<configuration> <appSettings> <add key.
|
|
When should I use .resx file and when go for .config file?
What is the basic difference between the both in terms of usage?
Started by LittleBoy on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
.config, as its name suggests is for configuration....
You also need them for non-string resources.
The config fileresx are for localizable resources.
The config file contains application configurations.
This into a resource file.
|