aspnetcore: Add compiler error if there's a