fix about filename path in DEBUG/RELEASE
This commit is contained in:
parent
117d6f5162
commit
2a40e2836d
13
.idea/.idea.tbfDBBackup/.idea/.gitignore
vendored
Normal file
13
.idea/.idea.tbfDBBackup/.idea/.gitignore
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
# Default ignored files
|
||||
/shelf/
|
||||
/workspace.xml
|
||||
# Rider ignored files
|
||||
/.idea.tbfDBBackup.iml
|
||||
/contentModel.xml
|
||||
/modules.xml
|
||||
/projectSettingsUpdater.xml
|
||||
# Editor-based HTTP Client requests
|
||||
/httpRequests/
|
||||
# Datasource local storage ignored files
|
||||
/dataSources/
|
||||
/dataSources.local.xml
|
||||
@ -266,16 +266,16 @@ void UpdateDb(Configuration dbConfiguration)
|
||||
|
||||
string ConfigurationFileNamePath()
|
||||
{
|
||||
string s;
|
||||
string fileNamePath;
|
||||
#if DEBUG
|
||||
Console.WriteLine("-- DEV version of THE PROJECT -- ");
|
||||
string projectPath = Directory.GetParent(Directory.GetCurrentDirectory()).Parent.Parent.FullName;
|
||||
|
||||
s = Path.Combine(projectPath, Configuration.ConfigDir, Configuration.FileName);
|
||||
fileNamePath = Path.Combine(projectPath, Configuration.ConfigDir, Configuration.FileName);
|
||||
#else
|
||||
// For release mode, use an absolute path or the application base directory
|
||||
Console.WriteLine("-- PROD version of THE PROJECT -- ");
|
||||
fileNamePath = Path.Combine(Environment.CurrentDirectory, Configuration.ConfigDir, Configuration.FileName);
|
||||
#endif
|
||||
return s;
|
||||
return fileNamePath;
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user