Skip to content
This repository was archived by the owner on Dec 19, 2018. It is now read-only.

Running rzc without build server does not include errors #2733

Closed
pranavkm opened this issue Nov 16, 2018 · 0 comments
Closed

Running rzc without build server does not include errors #2733

pranavkm opened this issue Nov 16, 2018 · 0 comments

Comments

@pranavkm
Copy link
Contributor

  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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant