Jeroen Haegebaert

To content | To menu | To search

Monday 4 August 2008

purging VSWebCache and Temporary ASP.Net files

Here's my batch script to purge the VS caches (VSWebCache and Temporary ASP.Net files)

@echo off
iisreset /stop
echo clearing VSWebCache
rmdir /s /q "%USERPROFILE%\VSWebCache"
echo Clearing Temporary ASP.Net Files
for /d %%d in ("%SYSTEMROOT%\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\*") do echo %%d && rmdir /s /q "%%d"
for /d %%d in ("%SYSTEMROOT%\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\*") do echo %%d && rmdir /s /q "%%d"
iisreset /start

Thursday 24 July 2008

Getting started with Git

Today I got fed up with some of the quirks of TFS, and decided to try git, to see whether I could set it up so that I would be developing under git, setting up a water-proof system integrating with TFS some way or another.

Here's how to get started with git on windows:

  • Installing git: just run the windows installer from The installer lets you choose whether to add Git to the PATH environment variable (so git is available in the Windows command prompt). You can also opt to exclusively use the BASH shell that comes with the installer.
  • Configuring Git: at the command prompt, type the following commands:
      git config --global "Your Name Here"
      git config --global "YourEmail@YourDomain"
  • Importing code:
      git init
      git add *
      git commit -m "initial commit"

For actually synchronizing TFS with git, I think the following scheme may work, but I'm not entirely satisfied with it yet. For now, I created just one branch, 'working' (using 'git branch working'). I'm synchronizing my git environment with TFS as follows:

  • in TFS, do a 'get latest version'
  • in git, make sure everything is committed in branch 'working' + switch the 'git' working copy to 'master' (using 'git checkout master')
  • sync the TFS working copy to the git working copy (I'm using robocopy for this)
  • commit the TFS changes the 'master' branch (git commit -a -m "get latest version from TFS")

Then, I merge my own changes from 'working' to 'master' (git merge working) and still need to synchronize everything back to TFS.

For this I need to

  • check out all files changed by the merge (working -> master)
  • copy all changed files from git -> tfs working copy
  • check in in TFS

I'm not yet entirely satisfied with this scheme (I don't really like the 'robocopy' steps), but I'm not sure if there is a better way at this point...

Monday 14 July 2008

My essential tools and utilities

Utilities I typically install on a Windows box. All of this software is free (at least as in beer), unless otherwise mentioned. No adware, shareware, nagware or spyware.

System Utilities:

  • notepad2: The Best Notepad Replacement. Ever.
  • 7-zip: Zip compression as it should be.
  • unlocker: simple tool to unlock files and folders locked for mysterious reasons (not open source).
  • SysInternals suite: swiss army knife of system utilities.
  • Windows Resource Kit
  • unxutils: Win32 port of the classic suite of unix utilities (grep e.a.)
  • StExBar: very useful Windows Explorer extension, by the author of TortoiseSVN.

(.Net) development:

Visual Studio Plugins

  • ReSharper (not free, but well worth every penny)
  • VisualSVN Subversion integration for VS (not free, but miles ahead of Ankh IMO)

General Applications

Friday 20 June 2008

Subversion 1.5 released

Subversion 1.5 has arrived:

TortoiseSVN 1.5 is not yet released, but has reached RC3 status. I tried it and must admit there are quite some improvements to note. There is also a beta of VisualSVN 1.5 (also for the server).

You can get the binaries, and read more about the new features here:

Edit: In the mean time, both TortoiseSVN and VisualSVN have released 1.5 final

S#arp Architecture project

Bill McCafferty put together a 'Best Practices' project using ASP.Net MVC for the UI layer, NHibernate as an ORM, Spring.Net for DI and NUnit as a unit testing tool. mvc storefront series

Rob Conery has an interesting series of webcasts on his blog, leveraging ASP.Net MVC in a real-world excercise for building a 'storefront' application using TDD. Check out the series here:

Thursday 19 June 2008

CSC : warning CS1668: Invalid search path 'C:\Program Files\\Microsoft SDKs\Windows\v6.0A\lib' specified in 'LIB environment variab le' -- 'The system cannot find the path specified. '

I got this compiler warning after installing the Visual Studio 2008 SDK. After digging into it, turns out that the path to 'C:\Program Files\\Microsoft SDKs\Windows\v6.0A\lib' gets added to the LIB environment variable in the VS2008 console. However, the installer did not seem to create that folder (or maybe I skipped an option in the installer, who knows?).

Anyway, just creating the 'lib' subfolder in the SDK installation dir makes the warning go away... I don't know what's supposed to be in that folder, but obviously anything relying on that would still be broken.

Friday 30 May 2008

Let's spice this blog up a bit

I haven't been posting much on this blog lately, but I intend to post some more from now on. We'll see how it turns out, but I promise I'll take this blog down if I haven't posted more than a few posts around this time next year ;-)

Friday 4 August 2006


CakePHP is a 'RAD' framework for developing PHP-based web applications. Looks promising!

Thursday 3 August 2006

A blog: why not?

With you can not only register domains (reasonable pricing, good reliability), they also offer a blog service these days ( I activated it for my domain; let's see how intensively we'll use it ;-)

page 2 of 2 -