|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
app.configHi, 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 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. -- Show quoteGregory A. Beamer MVP; MCP: +I, SE, SD, DBA ************************************************* Think outside of the box! ************************************************* "Rainer Weinhold" <mom.***@gmx.net> wrote in message news:OAUhVeM2GHA.4976@TK2MSFTNGP02.phx.gbl... > 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 > > found it, thanks Beamer
Show quote "Cowboy (Gregory A. Beamer)" <NoSpamMgbworld@comcast.netNoSpamM> schrieb im Newsbeitrag news:eR3LdoN2GHA.1040@TK2MSFTNGP06.phx.gbl... > 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! > ************************************************* > "Rainer Weinhold" <mom.***@gmx.net> wrote in message > news:OAUhVeM2GHA.4976@TK2MSFTNGP02.phx.gbl... >> 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 >> >> > > |
|||||||||||||||||||||||