aspnet / Razor

[Archived] Parser and code generator for CSHTML files used in view pages for MVC web apps. Project moved to https://github.com/aspnet/AspNetCore
Apache License 2.0
883 stars 226 forks source link

Running rzc without build server does not include errors #2733

Closed pranavkm closed 5 years ago

pranavkm commented 5 years ago
  1. Add a parser error to a cshtml file
  2. Run dotnet build /p:UseRazorBuildServer=false

Expected: Shows parser diagnostics

Actual: A failure exit code without any parser diagnostics.

The bug's here: https://github.com/aspnet/Razor/blob/master/src/Microsoft.AspNetCore.Razor.Tools/Program.cs#L44-L47. In the Server equivalent, the command returns the output to the caller which is printed to the output. This is missing in the standalone case.