PC Review


Reply
Thread Tools Rate Thread

Assembly Settings baked into dll?

 
 
Reverend
Guest
Posts: n/a
 
      3rd Jan 2009
I'm out of ideas at this point. I have a WinForms application and an
Assembly (dll). The Assembly, lets call it "Foo" has an App.config file
located in Foo/Bin/Debug
If I modify this file outside the IDE and reload the Settings file in the
IDE it will pick up the change and ask if I want to update. Good, the file
is backing the settings, I get that.

When I build my solution the Foo/Bin/Debug/App.config file is copied to the
primary application output folder and renamed. So it will now be
WinFormApp/Bin/Debug/Foo.dll.config

What is really throwing me for a loop is that if I modify a value in this
file my application is NOT picking up the modified value. I have tried
exiting the application, modifying the Foo.dll.config file, restarting the
application and it's still pulling the values that it was compiled with.

What is the point of the configuration file if they are ignored?

I also just noticed that the Foo Settings file is not setup to copy to the
output directory (Copy to Output Directory = Do Not Copy) and the Build
Action is None.

Anyone know what's going on? Is there a way to make the settings ACTUALLY
read the values from the config file?
Thanks for any help.


 
Reply With Quote
 
 
 
 
Reverend
Guest
Posts: n/a
 
      3rd Jan 2009
Sorry, wrong group.


"Reverend" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> I'm out of ideas at this point. I have a WinForms application and an
> Assembly (dll). The Assembly, lets call it "Foo" has an App.config file
> located in Foo/Bin/Debug
> If I modify this file outside the IDE and reload the Settings file in the
> IDE it will pick up the change and ask if I want to update. Good, the
> file is backing the settings, I get that.
>
> When I build my solution the Foo/Bin/Debug/App.config file is copied to
> the primary application output folder and renamed. So it will now be
> WinFormApp/Bin/Debug/Foo.dll.config
>
> What is really throwing me for a loop is that if I modify a value in this
> file my application is NOT picking up the modified value. I have tried
> exiting the application, modifying the Foo.dll.config file, restarting the
> application and it's still pulling the values that it was compiled with.
>
> What is the point of the configuration file if they are ignored?
>
> I also just noticed that the Foo Settings file is not setup to copy to the
> output directory (Copy to Output Directory = Do Not Copy) and the Build
> Action is None.
>
> Anyone know what's going on? Is there a way to make the settings ACTUALLY
> read the values from the config file?
> Thanks for any help.
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Assembly Settings baked into dll? Reverend Microsoft C# .NET 7 5th Jan 2009 03:21 AM
fresh-baked system, fans spin, no beeps, no video acr3000@gmail.com DIY PC 4 24th Oct 2007 06:40 AM
RE: fresh-baked system, fans spin, no beeps, no video Happinessis DIY PC 0 19th Oct 2007 06:55 PM
POS, half-baked, not-ready-for-prime-time Vista! GRRRR!!!! David Windows Vista General Discussion 0 24th Sep 2007 06:37 PM
DataGrid control is only half baked, is that going to change in ASP.NET 2.0? ~~~ .NET Ed ~~~ Microsoft ASP .NET 5 5th Apr 2005 09:12 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:14 PM.