PC Review


Reply
Thread Tools Rate Thread

ClickOnce - How to add config file to list of files that get published

 
 
roybrew@att.net
Guest
Posts: n/a
 
      29th Nov 2006
This (seemingly) simple item has escaped me after pouring over tons of
posts about ClickOnce. How does one add a config file
(myapp.exe.config) to the list of executables and dlls that get
published with a ClickOnce application? All I want to do has have a
standard config file get dropped down in the folder where the
application gets run from. I don't want to have to edit the manifest
every time I publish. When you go to the publish tab in the project
settings and click on the "Application Files" button, it seems to find
the EXE, and DLLs correctly. How can I make sure that my config file
gets added to that list as well? TIA

Roy

 
Reply With Quote
 
 
 
 
Andy
Guest
Posts: n/a
 
      29th Nov 2006
Did you try clicking the Applications Files button? Normally though if
your have an App.config in your solution, it will automatically pick
up the config file for clickonce.

HTH
Andy

(E-Mail Removed) wrote:
> This (seemingly) simple item has escaped me after pouring over tons of
> posts about ClickOnce. How does one add a config file
> (myapp.exe.config) to the list of executables and dlls that get
> published with a ClickOnce application? All I want to do has have a
> standard config file get dropped down in the folder where the
> application gets run from. I don't want to have to edit the manifest
> every time I publish. When you go to the publish tab in the project
> settings and click on the "Application Files" button, it seems to find
> the EXE, and DLLs correctly. How can I make sure that my config file
> gets added to that list as well? TIA
>
> Roy


 
Reply With Quote
 
roybrew@att.net
Guest
Posts: n/a
 
      30th Nov 2006
Uh, yeah. I clicked the button. That's how I found my exe and dlls
listed. Does the config file actually need to be named "App.config" or
can it be called MyApp.exe.config?

roy

Andy wrote:
> Did you try clicking the Applications Files button? Normally though if
> your have an App.config in your solution, it will automatically pick
> up the config file for clickonce.
>
> HTH
> Andy
>
> (E-Mail Removed) wrote:
> > This (seemingly) simple item has escaped me after pouring over tons of
> > posts about ClickOnce. How does one add a config file
> > (myapp.exe.config) to the list of executables and dlls that get
> > published with a ClickOnce application? All I want to do has have a
> > standard config file get dropped down in the folder where the
> > application gets run from. I don't want to have to edit the manifest
> > every time I publish. When you go to the publish tab in the project
> > settings and click on the "Application Files" button, it seems to find
> > the EXE, and DLLs correctly. How can I make sure that my config file
> > gets added to that list as well? TIA
> >
> > Roy


 
Reply With Quote
 
Andy
Guest
Posts: n/a
 
      30th Nov 2006
In your project it should be called App.Config. When you build, VS
will automatically rename that file to whatever the configuration
should be called after it copies the file to the bin folder.

HTH
Andy

(E-Mail Removed) wrote:
> Uh, yeah. I clicked the button. That's how I found my exe and dlls
> listed. Does the config file actually need to be named "App.config" or
> can it be called MyApp.exe.config?
>
> roy


 
Reply With Quote
 
roybrew@att.net
Guest
Posts: n/a
 
      30th Nov 2006
Thanks Andy. I was also able to add the config file as it was named
(i.e. myaapp.exe.config) and give it a build action of "Content" and
make sure it was copied to the output directory. This also added it to
the list of Application files. But your way is cleaner and appears to
be the standard way, so I'll use that. Thanks again for the help.

roy


Andy wrote:
> In your project it should be called App.Config. When you build, VS
> will automatically rename that file to whatever the configuration
> should be called after it copies the file to the bin folder.
>
> HTH
> Andy
>
> (E-Mail Removed) wrote:
> > Uh, yeah. I clicked the button. That's how I found my exe and dlls
> > listed. Does the config file actually need to be named "App.config" or
> > can it be called MyApp.exe.config?
> >
> > roy


 
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
Clickonce Deployment and DLL Config files Gino Microsoft VB .NET 0 25th Aug 2009 10:37 AM
Multiple File Select Not Working In Published ClickOnce Application Stewart Berman Microsoft VB .NET 6 29th May 2009 03:43 AM
Multiple File Select Not Working In Published ClickOnce Application Stewart Berman Microsoft VB .NET 0 21st May 2009 08:31 AM
Multiple App.config files with ClickOnce Avishay Ben-Zvi Microsoft C# .NET 4 2nd Dec 2008 01:07 AM
clickOnce and Config file Irfan Microsoft Dot NET 6 3rd May 2007 10:03 AM


Features
 

Advertising
 

Newsgroups
 


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