tags:

views:

159

answers:

2

We have a web portal product from which we customize portals from customers. We use the precompiled web app and create a virtual directory (vd) where the customization resides. In addition to this we do some changes web.config in the web app folder. We would obviously like to keep these customizations under TFS source control.

When I try to add the precompiled web app (which I don't want to add to source control), a warning tells me that the vds cannot be added. If I only add the folder that is referenced to by the vd, I lose the references to assemblies in the precompiled web app.

My questions are:

  1. How do I structure a solution for adding IIS (sub application level) virtual directories and still retain the references to assemblies?
  2. Is it possible to add other directories/files from the web application level (like App_Theme, web.config etc.) to the solution?

Since we already use Visual Source Safe, we have established a tree structure for each customization project:

Project Root
|
|-Custom Sql
|
|-Custom Portal Files (which is added as a virtual directory)
|
|-Other Customizations

I could probably do a lot of this manually through the source control explorer, but I'd like to have everything done through a solution.

I've followed the instructions using this article: http://msdn.microsoft.com/en-us/library/bb668986.aspx, but this doesn't address the exact problem that I have. Oh, and we are currently using Visual Source Safe for portal customizaton, but are eager to make the move to TFS.

TIA

A: 

Your issue with virtual directories has nothing to do with source control because virtual directories are not sources. You'll need some sort of script to create the virtual directories on the target system, and populate them with files.

You might store the content files in source control.

John Saunders
I've tried to elaborate on my question. We create the folder structure and hook up the portal customization folder to IIS manually prior to adding them to source control. We do not want to have the precompiled web app in source control (which is installed separately), just the folder referenced to as a virtual folder in IIS. Seems like we will have to be adding the structure through source control explorer instead of enjoying the automated goodness that comes with a solution under source control.
chriscena
A: 

The answer is: You can and you can't. That is, if you add the precompiled web application to a solution and then add the physical path to the virtual directory you get partial support for TFS source control in your solution. Posted the question at the MSDN forums and got an answer there.

chriscena