RSS Feed Feed your read!

Scot Hillier is an independent consultant and Microsoft SharePoint Most Valuable Professional focused on creating solutions for Information Workers with SharePoint, Office, and related .NET technologies. A frequent speaker at TechEd and SharePoint Connections, he is also the author many books on Microsoft technologies including 5 for SharePoint 2010. Scot splits his time between consulting on SharePoint projects and training for Critical Path Training. Scot is a former U. S. Navy submarine officer and graduate of the Virginia Military Institute. Scot can be reached at scot@shillier.com

Archives

January 2010 (17)
February 2010 (1)
March 2010 (1)
April 2010 (2)
May 2010 (1)
June 2010 (1)
August 2010 (4)
September 2010 (6)
October 2010 (3)
November 2010 (2)
February 2011 (1)
March 2011 (4)
April 2011 (3)
May 2011 (1)
August 2011 (1)

Links

Todd Baginski's Blog
BCS Team Blog
SharePoint Team Blog
SharePoint Workspace Team Blog
Andrew Connell's Blog
Ted Pattison's Blog

Tag Cloud

Business Data Connectivity, Claims, Conferences, MOSS 2007 Archived Post, PowerShell, Search, SharePoint 2010,

Quickly Clear the Browser Cache while Developing Client-Side Apps in Visual Studio 2010 

Tags:

I develop a lot of Silverlight and JavaScript (jQuery plus client OM) features for SharePoint 2010. Whenever I'm working on these solutions, I constantly forget to clear the browser cache. Furthermore, clearing it manually is annoyingly painful. So here's a quick couple of tips for making it easier.
 
The first tip is to set up an External Tool entry that will let you clear the browser cache from within Visual Studio. Here's how you do it.
 
1. In Visual Studio, select Tools>>External Tools
2. In the External Tools dialog, click Add
3. In the Title field, type Clear Browser Cache
4. In the Command field, type RunDLL32.exe
5. In the Arguments field type InetCpl.cpl,ClearMyTracksByProcess 8
6. Click OK
 
There are several other options for the command that allow clearing of the cookies, form data, history, etc. There is a nice article here that explains the options.
 
The second tip is a different use of the same command. You can simply write a batch file that executes the command above and reference it from the Build Events tab in the Project Properties. That way, the browser cache will be cleared every time you run the solution from Visual Studio.
 
Posted by Scot Hillier on 21-Mar-11
0 Comments  |  Trackback Url  |  Link to this post | Bookmark this post with:        
 

Links to this post

Comments