Skip to content

Commit 1eb6198

Browse files
committed
Update GenerateDefinitionsCommand.cs
1 parent 9bf93db commit 1eb6198

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

src/YarnSpinner.Console/Commands/GenerateDefinitionsCommand.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,15 @@ private static void GenerateYSLSFilesForUnity(DirectoryInfo inputDirectory, Dire
7272
};
7373

7474
var projects = inputDirectory.GetFiles("*.csproj");
75+
if (projects.Length > 0)
76+
{
77+
Log.Info($"Found {projects.Length} csproj file(s) in {inputDirectory.FullName}");
78+
}
79+
else
80+
{
81+
Log.Error($"No csproj files found in {inputDirectory.FullName}");
82+
System.Environment.Exit(1);
83+
}
7584
var logger = new NullLogger();
7685
foreach (var projectPath in projects)
7786
{

0 commit comments

Comments
 (0)