We have to store lot of images with nested folder structure levels which is shared by many ASP.NET websites.What is the right approach? Should i Store content images in TFS or share folder? We also want to maintain multiple versions of the same image in future.
-
why do you NOT want to store them in TFS? – Ray Cheng Sep 07 '12 at 20:04
-
Are this images can change during runtime of your website or are they static content ? – MichaelT Sep 07 '12 at 20:06
-
Nope. They don't change during runtime. – Marcer Sep 07 '12 at 20:40
2 Answers
If you want to maintain multiple version of the same image in the future then storing content images in TFS would be better than using a shared folder.
In order to support multiple versions of files with a shared folder then you will need differentiate the different file versions by changing the image name (e.g. put version number at the end) or change the path to the image (e.g. put version as a folder name). This means you need to update all of the reference URLs to these images in the appropriate ASP.Net websites.
Alternatively, by storing the images in TFS the various ASP.Net websites can reference the single shared path in TFS to the images and use workspace mappings to keep the URL references the same. When the time comes where there are different versions of the file that need to be referenced, you can branch the image (or entire folders) and simply change the workspace mappings for the appropriate ASP.Net websites. No need to update all references to the images.
I recommend the Microsoft Team Foundation Server Branching Guidance (see here) as a source of branching information to find a strategy that works best for you.

- 864
- 6
- 7
It depends on your specific situation of course, but I don't care for storing large binary files in version control systems. TFS in my experience really bogs down when you try and load/pull a bunch of binary files.
Two alternatives I can think of are:
- storing the Photoshop or master versions of this files in TFS somewhere and regenerating the images from these as needed.
- Maintaining a separate history folder structure which contains old versions of the files.

- 4,763
- 6
- 35
- 49