Skip to content

Commit

Permalink
Fix generator failure when no out directory present
Browse files Browse the repository at this point in the history
  • Loading branch information
Dreamescaper committed Jan 2, 2025
1 parent ecbbd4f commit 7ef150e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/BlazorBindings.Maui.ComponentGenerator/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ await Parser.Default

private static void DeleteExistingFiles(string path)
{
if (!Directory.Exists(path))
return;

var generatedFiles = Directory.EnumerateFiles(path, "*.generated.cs", SearchOption.AllDirectories);
foreach (var generatedFile in generatedFiles)
{
Expand Down

0 comments on commit 7ef150e

Please sign in to comment.