I need to validate razor views during application build, so I used the tool described in the following article:
postpublish is too late for me, so I moved
dotnet razor-precompile into
postcompile scripts section of
The problem is that even when
razor-precompile writes some errors on the output, the build is still successful. I need to change this behavior, and I could implement a custom script to do that, but I can't figure out how to manually abort a build.