Skip to content

Commit

Permalink
Issue MikeGriffinReborn#17: EntitySpaces Studio Connection reverts to…
Browse files Browse the repository at this point in the history
… Northwind when you save project
  • Loading branch information
Matt Phillips committed Jul 7, 2020
1 parent 7cdfef6 commit 7db55eb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public void Load(string fileNameAndFilePath, esSettings mainSettings)

string version = GetFileVersion(fileNameAndFilePath);

if (version != null && version.Substring(0, 4) != "2011" && version.Substring(0, 4) != "2012")
if (version?.Length >= 4 && version.Substring(0, 4) != "0000" && string.Compare(version.Substring(0, 4), "2011") < 0)
{
// Convert the old project file in place
ConvertProject(fileNameAndFilePath, mainSettings);
Expand Down

0 comments on commit 7db55eb

Please sign in to comment.