Question
2
Replies
1064
Views
Posted: August 7, 2017
Last activity: August 8, 2017
Closed
Solved
How to override values in Global Container variables from a config file?
Hi,
I would like to have a configuration file which can override values on Global Container variables.
I'm trying to get the path where deployed project (.OpenSpan) is located using this code:
System.IO.Path.GetDirectoryName(System.Windows.Forms.Application.ExecutablePath);
Unfortunately, it's returning path in C:\Program Files.
Any idea on how to do return the correct path where .OpenSpan file is located?
Other suggestions are welcome as well.
Thanks
Please see the following posts on how to get the location of the extracted project.
https://pdn.pega.com/community/product-support/question/find-local-directory-where-development-was-done-code#comment-530691