Include Project Name for each document when Team Project is created
-
Friday, August 03, 2012 10:17 PM
I have this XML, for create some structure in Source Control, and I want to put the project name for each document added to my SC
<?xml version="1.0" encoding="utf-8"?> <tasks> <task id="SourceTask" name="Creating Source Control folder" plugin="Microsoft.ProjectCreationWizard.Lab" completionMessage="Control EC-24">
<dependencies /> <taskXml> <ProcessTemplate Type="Upgrade" Filename="Source\Templates\Producto\Product.txt" Description="Producto." ServerPath="$/$$PROJECTNAME$$/[Producto]/" /> <ProcessTemplate Type="Upgrade" Filename="Source\Templates\Product\Doc\A\RDA.xlsx" Description="RDA Doc" ServerPath="$/$$PROJECTNAME$$/[Product]/Doc/A" /> <ProcessTemplate Type="Upgrade" Filename="Source\Templates\Product\Doc\A\RDN.doc" Description="B-Rules" ServerPath="$/$$PROJECTNAME$$/[Product]/Doc/A" /> <permission allow="Read, Create, Write, Edit, Delete, ManagePermissions, ManageChildPermissions, Start, Stop, ManageSnapshots, Pause, ManageLocation, DeleteLocation" identity="$$PROJECTCOLLECTIONADMINGROUP$$" /> <permission allow="Read, Create, Write, Edit, Delete, ManageChildPermissions, Start, Stop, ManageSnapshots, Pause, ManageLocation, DeleteLocation" identity="[$$PROJECTNAME$$]\$$PROJECTADMINGROUP$$" /> <permission allow="Read, Create, Write, Edit, Start, Stop, ManageSnapshots, Pause" identity="[$$PROJECTNAME$$]\Contributors" /> <permission allow="Read" identity="[$$PROJECTNAME$$]\Readers" /> <permission allow="Read, Write, Edit, Start, Stop, ManageSnapshots, Pause" identity="$$BUILDSERVICEGROUP$$" /> </taskXml> </task> </tasks>
For Example, this give me the next structure
$Ecuador(ProjectName)
---[Product]
-----A
----------RDA.xlsx
----------RDN.doc
I want to construct by Process Template for each Team Project something like this, but I want to add for my documents the project name, for this example, i need to get RDA_ProjectName.xlsx and RDN_ProjectName.doc.
Is possible to do this by Process Template????
Thanks
Raymundo Chapa, MCTS http://blogs.inavant.com.mx/ http://projectaserverzone.blogspot.com/
All Replies
-
Monday, August 06, 2012 7:33 AMModerator
Hi Raymundo,
Thank you for your post.
For each version control item, its server name like $/Agile5/ProjectA/ProjectA/Program.cs, it contains team project.
Why do you want to add team project name to each version control item's name?Regards,
Lily Wu [MSFT]
MSDN Community Support | Feedback to us
-
Monday, August 06, 2012 9:17 AM
This is not an answer to your question but...
If you installed Sharepoint along with TFS then I would suggest you put your documents in a Sharepoint document library instead (unless there is a really good reason to put them in Source Control) which is better suited for document handling. Also, but I'm not sure of this, I think what you want to do is possible in the Sharepoint part of the process template as long as you know a thing or two about Sharepoint.
-
Monday, August 06, 2012 4:03 PM
Hi Lily_Wu,
Thanks for your reply, yes I know that, and for me it's ok, but for my client is not the way, they have some methodology that require this nomenclature for each item (Not code, only documents) in the SC, and some type of Team Project not able to use SharePoint site for manage their documentation by this way.
Raymundo Chapa, MCTS http://blogs.inavant.com.mx/ http://projectaserverzone.blogspot.com/
- Edited by Raymundo Chapa Monday, August 06, 2012 4:08 PM
-
Monday, August 06, 2012 4:07 PM
Jesper,
Thanks for your reply, and yes I use SharePoint in some type of Team Projects, and by this way is very simple to rename each item in a document library by a custom SharePoint feature activated in my Process Template, but in particular for this Team Project we need to manage every information in TFS SC.
Thanks again for your reply.
Raymundo Chapa, MCTS http://blogs.inavant.com.mx/ http://projectaserverzone.blogspot.com/
-
Tuesday, August 07, 2012 7:43 AM
Hi Raymundo,
How about the issuenow?
Have you tied edit Sharepoint part of the process template as Jesper suggested?
-
Tuesday, August 07, 2012 1:53 PM
Hi Mini Jacson,
Like I told to Jesper yesterday, I did a SharePoint feature to rename every file in a document library in SharePoint, but in this case I need to do this in TFS Source Control for each document, cause is a requirement for my client, in other types of projects we use the SharePoint feature, but for this is not applicable.
Thanks!
Raymundo Chapa, MCTS http://blogs.inavant.com.mx/ http://projectaserverzone.blogspot.com/
-
Thursday, August 09, 2012 12:48 AM
Raymundo,
I suggest you submit a feedback to uservoice. http://visualstudio.uservoice.com/forums/121579-visual-studio
Thanks,
- Edited by mini jacson Tuesday, August 14, 2012 7:24 AM
- Marked As Answer by Lily_WuMicrosoft Contingent Staff, Moderator Friday, August 17, 2012 5:24 AM
- Unmarked As Answer by Raymundo Chapa Wednesday, November 21, 2012 11:20 PM


