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 8878131
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T19:38:24+00:00 2026-06-14T19:38:24+00:00

How do I force Visual Studio 2012 to always use the most recent version

  • 0

How do I force Visual Studio 2012 to always use the most recent version of the generated JavaScript file created by TypeScript?

I am using the following definition in my project file:

<Target Name="BeforeBuild">
    <Exec Command="&quot;$(PROGRAMFILES)\Microsoft SDKs\TypeScript\0.8.0.0\tsc&quot; -out scripts\app.js scripts\app.ts  -target ES5 @(TypeScriptCompile ->'&quot;%(fullpath)&quot;', ' ')" IgnoreExitCode="true" />
  </Target>

When I clean and rebuild the project, app.js is updated accordingly.

However, for some strange reason, when I try to debug the solution using Internet Explorer, Visual Studio is using an outdated version of app.js, which invalidates my breakpoints.

What is going on here?

  • 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-06-14T19:38:26+00:00Added an answer on June 14, 2026 at 7:38 pm

    The most likely problem here isn’t really TypeScript or JavaScript – Internet Explorer is just caching the JavaScript file and using the out-dated version.

    If you are referencing an individual script, you can cache-bust it by changing an arbitrary part of the URI:

    <script src="myscript.js?1"></script>
    

    If you increment the 1 each time you want to replace the cached version, it will cause the new script to be loaded. You could automate this by dumping a timestamp in place of the 1.

    If you are using bundling, which I recommend in MVC4, the bundler will append a hash of the scripts, which does the same thing.

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

Sidebar

Related Questions

On Visual studio I can force use of 32-bit time_t by declaring _USE_32BIT_TIME_T .
How can I force Visual Studio 2010 to use MSBuild 3.5 instead of the
In Visual Studio 2012, using publish profiles along with web deploy simplifies the deployments
How can I force Visual Studio 2012 to rebuild all dependent projects when a
I'm using C++/CLI and .Net 4.0 (managed c++), my IDE is visual studio 2012
When I use Visual Studio 2010 to debug a crash dump file (native code),
Is there a way to force C# compiler, visual studio 2010, to call a
I am trying to grab a visual force element using jQuery and having some
Visual Studio 2010 installs version ...4974 of the VC9 runtime whose .pdbs are unavailable
I'am using CMake to create a Visual Studio 2008 project. In this project I

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.