Skip to content

Commit

Permalink
added directory check for release notes marker file - fixes #121
Browse files Browse the repository at this point in the history
  • Loading branch information
Terry Saynor committed Apr 27, 2020
1 parent e3d89ed commit a9067e2
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/Mobile.BuildTools/Generators/ReleaseNotesGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,13 @@ protected override void ExecuteInternal()
if (releaseNotesOptions.Disable) return;

var currentHash = GetGitHash();
var generatedMarkerFilePath = Path.Combine(Build.SolutionDirectory, ".vs", $"generated-releasenotes.{currentHash}");
var generatedMarkerDirectory = Path.Combine(Build.SolutionDirectory, ".vs");

if (!Directory.Exists(generatedMarkerDirectory))
Directory.CreateDirectory(generatedMarkerDirectory);

var generatedMarkerFilePath = Path.Combine(generatedMarkerDirectory, $"generated-releasenotes.{currentHash}");

var outputDirectory = releaseNotesOptions.CreateInRoot ? Build.SolutionDirectory : Build.ProjectDirectory;

if (!Directory.Exists(outputDirectory))
Expand Down

0 comments on commit a9067e2

Please sign in to comment.