How to include App.config
How to include App.config
13 Apr 2020, 12:20
Hello,
I would like to know if it is possible to use app.config with cAlgo bot and how to achieve this? I am using generic database repository library for CRUD operations. I included it as a dll to the cBot project. After backtesting and debuging my cBot with attach to process return runtime exception - no connection string found in app.config. I already know that app.config can not be used by class library, is there any other way to get this to work?
Thanks in advance,
Sebastijan
Replies
strausa
13 Apr 2020, 12:45
RE:
PanagiotisCharalampous said:
Hi Sebastijan,
No this is not possible. You should consider other ways of saving your connection strings.
Best Regards,
Panagiotis
Hi Panagiotis,
thank you for your quick answer. I will try with the hard coded connection string inside the library just for the testing purpose at first.
@strausa
PanagiotisCharalampous
13 Apr 2020, 12:38
Hi Sebastijan,
No this is not possible. You should consider other ways of saving your connection strings.
Best Regards,
Panagiotis
Join us on Telegram
@PanagiotisCharalampous