开发者

How do I add IIS Virtual Directories and arbitrary files in TFS Solution

开发者 https://www.devze.com 2022-12-19 17:12 出处:网络
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

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. 开发者_如何学JAVAHow 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


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.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号