Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6603691
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T19:02:56+00:00 2026-05-25T19:02:56+00:00

After noticing that my client-side validation had stopped working, I determined that my html

  • 0

After noticing that my client-side validation had stopped working, I determined that my html script references for jquery and modernizr were out of date. I immediately realized that this was because I had recently updated all my NuGet packages, so the version numbers no longer matched.

Here is the markup in question (after manually updating the version numbers):

<script src="@Url.Content("~/Scripts/jquery-1.6.3.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/modernizr-2.0.6.min.js")" type="text/javascript"></script>

This is a maintenance issue. Basically, it appears that I have to manually increment the version numbers in my script references every time I use NuGet to update all my packages. This is at best an inconvenience, and at worst, something I’ll just forget to do entirely, especially given that there are no warnings when performing the update in NuGet or during compilation.

Two questions:

  • What can I do to improve the update process so that version numbers get updated automatically, or at least, receive a warning that my scripts references are incorrect? (Note: I already have MvcBuildViews turned on.)

  • Why do jquery and modernizr have version numbers in the file name while other scripts (such as jquery.validate and jquery.validate.unobtrusive) don’t? It seems like the problem could be solved by keeping version numbers out of file names.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T19:02:57+00:00Added an answer on May 25, 2026 at 7:02 pm

    I just installed elmah to log errors on my website. It turns out that, if a script tag in html refers to a file that doesn’t exist, this will trigger an error on elmah. Since I have elmah configured to send me emails when errors are encountered, this provides a decent enough alerting mechanism for outdated script references. Receiving an actual compile error or warning would be preferable, but elmah at least prevents the problem from going unnoticed.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In VS2010 and ASP.NET MVC 2, it seems that client-side validation (JQuery Futures or
After reading several questions regarding problems with compilation (particularly C++) and noticing that in
I have a ps1 script that deploys all of my webparts. I started noticing
After a quick subclassing of Windows.Forms.Label and then noticing that the default Label is
I am creating a number of Powershell cmdlet's and am noticing that after I
Is anyone else noticing that facebook and twitters APIs aren't working? For facebook even
I had a navigation application that was working normally. In the table view, the
I'm writing a direct3d application and after noticing strange bugs such as anti-aliasing occurring
After being told by at least 10 people on SO that version control was
After hours of debugging, it appears to me that in FireFox, the innerHTML of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.