-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: using app.config file
PostPosted: Mon Jul 18, 2005 9:44 am 
how do you specify that the application should use a config file? I've got it working with cfg.setProperty(..) in the cs file but would prefer it to be read in from a config file.
The config file is in the same directory as my other files.

Thanks in advance

Wizster


Top
  
 
 Post subject:
PostPosted: Tue Jul 19, 2005 5:21 am 
Newbie

Joined: Mon Jul 18, 2005 7:45 am
Posts: 16
.NET exes automatically look for and parse an XML file called

{ExeName}.exe.config

If you are using VS .NET, then create an app.config file in the project root. VS will automatically copy and rename this file to the build directory as required.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.