Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

2005 express adding config file to deployment

Status
Not open for further replies.

CodingIsFun

Programmer
Apr 9, 2004
134
US
Hi all experts..

I am trying out the 2005 express c# and built a small application for a test click once deployment run. This application requires an application.config file to be deployed where the executable is. Unfortunately I can not figure out how to add this file.

Anyone know how to do this. I have looked at the help and it was no help.

thanks in advance.
 
Create a "Configuration File" and call it App.config

then you can use


using System.Configuration;

ConfigurationSettings.AppSettings["KeyName"].ToString();


this was true for 2003 - should still remain true for 2k5.
 
I have already created the file the problem is getting it to add to the click once deployment.

Thanks for the help again
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top