title: ASP.Net: Do I need to add javascript source of _ValidationScriptsPartial.cshtml to _layout.cshtml?
body: <p>In ASP.Net 5 project I have a file named <code>_ValidationScriptsPartial.cshtml</code> by default:</p>
  <pre><code>&lt;environment names=&quot;Development&quot;&gt;
      &lt;script src=&quot;~/lib/jquery-validation/jquery.validate.js&quot;&gt;&lt;/script&gt;
      &lt;script src=&quot;~/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.js&quot;&gt;&lt;/script&gt;
  &lt;/environment&gt;
  &lt;environment names=&quot;Staging,Production&quot;&gt;
      &lt;script src=&quot;//ajax.aspnetcdn.com/ajax/jquery.validation/1.11.1/jquery.validate.min.js&quot;
              asp-fallback-src=&quot;~/lib/jquery-validation/jquery.validate.js&quot;
              asp-fallback-test=&quot;window.jquery &amp;&amp; window.jquery.validator&quot;&gt;
      &lt;/script&gt;
      &lt;script src=&quot;//ajax.aspnetcdn.com/ajax/mvc/5.2.3/jquery.validate.unobtrusive.min.js&quot;
              asp-fallback-src=&quot;~/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.min.js&quot;
              asp-fallback-test=&quot;window.jquery &amp;&amp; window.jquery.validator &amp;&amp; window.jquery.validator.unobtrusive&quot;&gt;
      &lt;/script&gt;
  &lt;/environment&gt;
  </code></pre>
  <p>But when I need to use jquery validation, I have to add:</p>
  <pre><code>&lt;script src=&quot;~/lib/jquery-validation/jquery.validate.js&quot;&gt;&lt;/script&gt;
          &lt;script src=&quot;~/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.js&quot;&gt;&lt;/script&gt;
  </code></pre>
  <p>below part of <code>_layout.cshtml</code>:</p>
  <pre><code>&lt;environment names=&quot;Development&quot;&gt;
              &lt;script src=&quot;~/lib/jquery/dist/jquery.js&quot;&gt;&lt;/script&gt;
              &lt;script src=&quot;~/lib/bootstrap/dist/js/bootstrap.js&quot;&gt;&lt;/script&gt;
              &lt;script src=&quot;~/lib/hammer.js/hammer.js&quot;&gt;&lt;/script&gt;
              &lt;script src=&quot;~/lib/bootstrap-touch-carousel/dist/js/bootstrap-touch-carousel.js&quot;&gt;
             I HAVE TO ADD SCRIPT FOR JQUERY VALIDATION HERE
              &lt;/script&gt;
          &lt;/environment&gt;
  </code></pre>
  <p>What is the purpose of <code>_ValidationScriptsPartial.cshtml</code>?
  How is this file used in the project?
  Please give me reference how to use this file?</p>