app.config

R

Rainer Weinhold

Hi, I added an app.config via add/new Item to my C++ project. Now when I run
the Project I cant acces the content via :
String ^str=ConfigurationSettings::AppSettings->Get("connStr");

coz the compiler or who ever should it do does not create the
MyApp.exe.config file. When I create this file manully in the debug folder
beside the compiled .exe file it works. So what do I need to do that this
file is automatically created ? In the C# version it worked without this.

regards Rainer
 
C

Cowboy \(Gregory A. Beamer\)

Add a post compile step to move the config into the proper folder. If you
have an issue doing this, check the help file under postcompilation and you
should find a doc to help you. I have the string somewhere and will post if
I find it.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

*************************************************
Think outside of the box!
*************************************************
 
R

Rainer Weinhold

found it, thanks Beamer

Cowboy (Gregory A. Beamer) said:
Add a post compile step to move the config into the proper folder. If you
have an issue doing this, check the help file under postcompilation and
you should find a doc to help you. I have the string somewhere and will
post if I find it.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

*************************************************
Think outside of the box!
*************************************************
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top