title: For data validation, where to add Html.RenderPartialAsync("_ValidationScriptsPartial")?
body: <p>In my <code>ASP.NET Core 1.1.1</code> app the <a href="https://docs.microsoft.com/en-us/aspnet/core/mvc/models/validation" rel="nofollow noreferrer">model validation</a> is not working. I've noticed that some of the default <code>views</code> (such as <code>login.cshtml</code>, <code>Register.cshtml</code> that were created by <code>VS2017</code> when the app was created) have the following code at the end. But these default views are in fact partial views. My Views are not partial views, should the following be added to end of  my <code>views</code> as well? Or what should I be adding to the end of my views that are not partial views:</p>
  
  <pre><code>@section Scripts {
      @{ await Html.RenderPartialAsync("_ValidationScriptsPartial"); }
  }
  </code></pre>