asp.net core mvc not triggering client side validation

C#
//in the view:
@section Scripts{
    @Html.Partial("_ValidationScriptsPartial");
}
Source

Also in C#: