VS trying to create odd folders
I was nosing around with Sysinternals Procmon today, just to see where some disk activity was coming from. In the process (pardon the pun) I noticed that Visual Studio was constantly testing for the presence of a bunch of web folders which didn't exist.
Procmon log:
http://i46.tinypic.com/n4gyrs.gif
"D:\wwwroot" is my web root. The folder "csharp" doesn't exist.
This happens continually, every few seconds. When I create "csharp" and those subfolders, VS stops checking for them. But they don't exist in my project file and there's no need for them as far as I know. I don't know what they are for.
Does anyone know why VS wants those folders? Their absence doesn't seem to affect anything, yet VS keeps checking if they exist, which is weird.
Cheers
Re: VS trying to create odd folders
Hello,
What version/edition of Visual Studio are you using?
I can't say that I have noticed this behaviour before. It is almost as though it is looking for the project templates. Have you made any changes to the default settings of Visual Studio?
Gary
Re: VS trying to create odd folders
Hi Gary, I haven't made any changes, no. Using VS 2008, and this particular project is a web app (ie. not a "web site"). I'm not even sure what those folders are used for.
Re: VS trying to create odd folders
I am curious now...
I will try and run a test later on today to see if I have the same results.
Gary
Re: VS trying to create odd folders
Thanks. :) It also keeps checking for the same subfolders under "visualbasic".
So csharp/general, csharp/wpf, etc.
and visualbasic/general, visualbasic/wpf, etc.
To see the events in ProcMon, hit CTRL+L to bring up the Filter dialog.
Add the filters:
a) "EventClass is FileSystem then Include"
b) "EventClass is not FileSystem then Exclude"
That will just show you FileSystem events, otherwise it'll be a zoo.
Re: VS trying to create odd folders
I found a clue.. it seems the folders it's looking for in my web root folder correspond *exactly* to the folder structure found in the VS2008 "ProjectTemplates" folder, here: C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\ProjectTemplates\
It's looking for them in my web root for some reason. Could VS have somehow been told to look for those template folders somewhere other than the default C: location?
Re: VS trying to create odd folders
This is what I mentioned in my first post, and why I asked if you have changed a setting in VS to look somewhere else for the ProjectTemplates.
Gary
Re: VS trying to create odd folders
I realise that, but as I said I haven't (to my knowledge) changed anything like that. I don't even know how. So how do I work out if something is wrong there and set it back to what it should be (assuming that's the problem)?
Re: VS trying to create odd folders
You could try:
Code:
devenv /ResetSettings
Re: VS trying to create odd folders
This actually might be worth a try.
I haven't been able to replicate the issue that you are seeing at this end.
Gary
Re: VS trying to create odd folders
Cool, thanks for the replies guys. I'll try the reset, once I'm finished this load of work.. can't afford to mess with my setup just yet. :) I'll report back if it works.