Skip to content

Commit

Permalink
fix(project): fix generator exiting early when running dotnet build/r…
Browse files Browse the repository at this point in the history
…estore
  • Loading branch information
AdmiringWorm committed Jul 25, 2020
1 parent 6280538 commit 4d11805
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/project/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,11 +152,10 @@ export default class ProjectGenerator extends BaseGenerator {
PromptNames.ProjectName
)}.sln`
);
const done = this.async();
if (this.getBoolValue("build")) {
this.spawnCommand("dotnet", ["build", solutionPath]).on("close", done);
this.spawnCommandSync("dotnet", ["build", solutionPath]);
} else {
this.spawnCommand("dotnet", ["restore", solutionPath]).on("close", done);
this.spawnCommandSync("dotnet", ["restore", solutionPath]);
}
}

Expand Down

0 comments on commit 4d11805

Please sign in to comment.