Skip to content

Commit

Permalink
#12 :: SDK 2.0 pre-release issue: User/Target location history doesn'…
Browse files Browse the repository at this point in the history
…t survive upgrade
  • Loading branch information
madhavan.jagannathan committed Nov 4, 2015
1 parent a89f0f4 commit 54f521a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Src/SwqlStudio/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@ private static void SearchAndCopyLastUserConfig(Version currentVersion)
else
{
// grab the most recent folder from the list of user's settings folders, prior to the current version
previousSettingsDir = (from dir in currentVersionConfigFileDir.Parent.Parent.EnumerateDirectories("??.??.??.??", SearchOption.AllDirectories)
previousSettingsDir = (from dir in currentVersionConfigFileDir.Parent.Parent.EnumerateDirectories("????.????.????.????", SearchOption.AllDirectories)
let dirVer = new { Dir = dir, Ver = new Version(dir.Name) }
where dirVer.Ver < currentVersion
where dirVer.Ver < currentVersion && dir.Parent.Name.ToLower().Contains("swqlstudio")
orderby dirVer.Ver descending
select dir).FirstOrDefault();

Expand Down

0 comments on commit 54f521a

Please sign in to comment.