I need to validate razor views during application build, so I used the tool described in the following article: http://dotnetthoughts.net/compile-your-aspnet-core-mvc-views/ but postpublish is too late for me, so I moved dotnet razor-precompile into postcompile scripts section of project.json.

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.

Related posts

Recent Viewed