diff options
author | Matt Ward <matt.ward@microsoft.com> | 2018-04-11 16:29:42 +0300 |
---|---|---|
committer | Matt Ward <matt.ward@microsoft.com> | 2018-04-11 16:29:42 +0300 |
commit | 4d5273b0ddc1f5d06d18b534280937393b050e3b (patch) | |
tree | a685af15ed78caf47a1afca1287cf04a9c6c2c39 /main/src/core | |
parent | a73ea2822277328b22dbd9346a295bc75fabfdde (diff) |
[Core] Fix files not re-opened on opening a solution
If the solution used a custom BaseDirectory then the user preferences
were saved inside the custom base directory and then not loaded on
re-opening the solution. A custom base directory can be configured
in solution preferences - General - Main Settings and then changing
the Root Directory. This then adds a section to the solution file:
GlobalSection(MonoDevelopProperties) = preSolution
BaseDirectory = ..
EndGlobalSection
Now the user preferences are always stored in a .vs directory
relative to the solution file itself instead of using the Solution's
BaseDirectory.
Fixes VSTS #598545 When opening a solution, last files are not
re-opened correctly
Diffstat (limited to 'main/src/core')
-rw-r--r-- | main/src/core/MonoDevelop.Core/MonoDevelop.Projects/WorkspaceItem.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/WorkspaceItem.cs b/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/WorkspaceItem.cs index 5138ce0a7c..8283e41d7f 100644 --- a/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/WorkspaceItem.cs +++ b/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/WorkspaceItem.cs @@ -423,7 +423,7 @@ namespace MonoDevelop.Projects public FilePath GetPreferencesDirectory () { - return BaseDirectory.Combine (".vs", Name, "xs"); + return FileName.ParentDirectory.Combine (".vs", Name, "xs"); } internal string GetPreferencesFileName () |