Skip to content

Commit

Permalink
Bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
jesperweber committed Nov 9, 2023
2 parents 8aa4eea + e5f0c4b commit d8a03bb
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions Enterspeed.Cli.sln
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "releaseNotes", "releaseNote
releaseNotes\1.6.0.md = releaseNotes\1.6.0.md
releaseNotes\2.0.0.md = releaseNotes\2.0.0.md
releaseNotes\2.0.1.md = releaseNotes\2.0.1.md
releaseNotes\2.0.2.md = releaseNotes\2.0.2.md
EndProjectSection
EndProject
Global
Expand Down
2 changes: 1 addition & 1 deletion azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ variables:
vmPool: 'windows-latest'
majorVersion: 2
minorVersion: 0
patchVersion: 1
patchVersion: 2
version: $[format('{0}.{1}.{2}', variables.majorVersion, variables.minorVersion, variables.patchVersion)]
${{ if eq(variables['Build.SourceBranch'], 'refs/heads/master') }}:
# Versioning: 1.0.0
Expand Down
2 changes: 2 additions & 0 deletions releaseNotes/2.0.2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
### Fixed
- Fixed null reference exception if the local folder does not contains a `schemas` folder
5 changes: 5 additions & 0 deletions src/Enterspeed.Cli/Services/FileService/SchemaFileService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,11 @@ private static string GetFile(string alias)
var currentDirectory = Directory.GetCurrentDirectory();
var searchDirectory = Path.Combine(currentDirectory, SchemaDirectory);

if (!Directory.Exists(searchDirectory))
{
return null;
}

return Directory.GetFiles(searchDirectory, alias + ".json", SearchOption.AllDirectories).FirstOrDefault() ??
Directory.GetFiles(searchDirectory, alias + ".js", SearchOption.AllDirectories).FirstOrDefault();
}
Expand Down

0 comments on commit d8a03bb

Please sign in to comment.