|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
app.config not copied to bin directoryAny help with this is greatly appreciated...
I have a solution where my startup project has an app.config file. But I need it to be copied to the bin directory as <application>.dll.config. This is not happening. I thought this was automatic. Is there something I am missing? Thanks in advance, Rob What are the build settings on the app config? Right click on it and
look. I think it needs to be something like 'copy always' or 'copy if newer'. You may have it set to 'nothing' - Andrew Sept. 7, 2006
Hey Rob... I've seen this behavior if I made any change to the config filename while I added it to the project. When you add one, the default is "App.config"... just click OK.... I've found, if you named it something else, then it won't be generated automatically.... I sure would be interested, however, in hearing how I can specify VS to do the same with non-default named app.configs...... -- Show quoteHide quoteJoseph Bittman Microsoft Certified Solution Developer Microsoft Most Valuable Professional -- DPM Web Site/Blog: http://CactiDevelopers.ResDev.Net/ "Rob" <R**@discussions.microsoft.com> wrote in message news:91506CD9-5C7B-4E86-9A34-A54C7F1966AA@microsoft.com... > Any help with this is greatly appreciated... > > I have a solution where my startup project has an app.config file. But I > need it to be copied to the bin directory as <application>.dll.config. > This > is not happening. I thought this was automatic. Is there something I am > missing? > > Thanks in advance, > > Rob > I have a solution where my startup project has an app.config file. Typically, the .config file is set for the .exe or web.config not for a class > But I need it to be copied to the bin directory as > <application>.dll.config. This is not happening. I thought this was > automatic. Is there something I am missing? library. What kind of application are you using where the config file would be used directly from the library? I have seen this occur with nUnit projects. In those cases, often you need to manually copy and rename the file to the bin directory. I hope this helps. Jim Wooley http://devauthority.com/blogs/jwooley/default.aspx Rob wrote:
> I have a solution where my startup project has an app.config file. But I Is this a class library? If so then the App.config won't work with it.> need it to be copied to the bin directory as <application>.dll.config. This > is not happening. I thought this was automatic. Is there something I am > missing? You need to add your config data to the config file for the application itself.
Async socket connection ends up in Unable to read data from....
.NET Remoting & RTD Print out contents of a hashtable Fill in textboxes programatically in ASPX Opening a space delimited textfile in Excel using VB.net entlib UpdateDataSet how to update the database? Download tif from the web via a stream with progress indication embedded text file how to receive data from .NET socket into VB6 winsock ? PopMenu vs ContextMenu |
|||||||||||||||||||||||