VS.NET 2003: MACRO - Cleanup temp web folder when closing
• Richard Szalay
This problem has got to annoy at least someone as much as it annoys me:
You close a Web project and open another than has a similar folder structure
You attempt to create a folder that existed in the previous web project but not in the new one.
Visual Studio tells you that the folder already exists
You swear and delete everything in c:\Documents and Settings\[Username]\VSWebCache\[ComputerName]
You close and open the project
You create the folder
To solve this annoying problem, I came up with an EnvironmentEvents macro a while back that cleans up the VSWebCache folder when you close a solution that contains a web project. To implement, paste the code below into a EnvironmentEvents macro module.