Skale
asked on
Environment.CurrentDirectory changes after publishing the application
I'm using my application in Release folder output and i create several folders in Release folder where my running exe belongs.
and i have lots of Path directions like below;
all my Environment.CurrentDirecto ry returns different location after i published it and open there.
Is there a way to define these directories? Any help would be grateful.
Thanks.
and i have lots of Path directions like below;
Dim dbDir As String = Path.Combine(Environment.CurrentDirectory, My.Settings.str__data_dir, My.Settings.str__data_db)
all my Environment.CurrentDirecto
Is there a way to define these directories? Any help would be grateful.
Thanks.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Nothing would prevent you from using the Environment.CurrentDirecto ry; value in your setup. Even the free NSIS setup compiler would support it. You can always copy whats needed on setup or other..
ASKER