views:

93

answers:

3

Is there an easy way to keep VS2005 project in sync with changes made directly on filesystem? In eclipse I can simply "refresh" the project and any changes show up. Does something similar exist in VS?

+1  A: 

VS2005 will automatically detect file system changes on the files in your project and ask you if you'd like to reload the source code. If you have unsaved changes, it will ask you if you want to discard the old changes or not.

So no extra work is needed to setup VS2005 staying in sync with your file system for files that are added to your project.

As for files that are added to the file system but not in your project, you can for example create a new web solution on top of an existing location, it will automatically add all files that's in your folder.

Brian R. Bondy
I think the question was directed toward picking up files added or removed from a folder automatically... in which case the answer is no.
Michael Meadows
ah I see. I will leave my answer in case it helps someone else.
Brian R. Bondy
Regarding this answer, you can enable automatic reloading on files that have no unsaved changes. Tools > Options >Environment >Documents > Auto-load changes, if saved
phsr
A: 

You have to explicitly add files to the project. If files belonging to the project are updated Visual Studio will prompt for reload. Also there is a refresh button in the solution explorer tool window which behaves in a Ronseal fashion.

JDKing
+2  A: 

You can click the Show All Files button in the Solution Explorer, which will show files that are not currently in your project. From there, you can right click and include the file in your project.

You will have to occasionally click refresh to see the new files

phsr
+1, probably the best solution (short of building an add-in)
Michael Meadows
I took a quick look at making a macro to do what is desire, but it seems to be somewhat involved
phsr