WssTasks.XML and target filename  
Author Message
sveroa





PostPosted: Team Foundation Server - General, WssTasks.XML and target filename Top

Hi,

I'm trying to customising the filename under <documentLibraries> in the WssTasks.xml file. Is it possible to set the filename to
the corresponding project Shortly, I want to prefix my files with project name. I tried to use the $$PROJECTNAME$$ variable the is used in the workitems.xml file, but got an error when uploaded the new template. See the example below:

<file source="Windows SharePoint Services\Test\[Project Name] - Test Plan.doc"
documentLibrary="Test"
target="$$PROJECTNAME$$ - Test Plan.doc" />

It it possible to get this automatically when creating new projects



Visual Studio Team System16  
 
 
Kathirvel





PostPosted: Team Foundation Server - General, WssTasks.XML and target filename Top

Hi,

i think you can't use the same to get the project name dynamically...the correct syntax would look like this...

<file source="Windows SharePoint Services\Test\[Project Name] - Test Plan.doc"
documentLibrary="Test" target="[Project Name] - Test Plan.doc" />

check out if this works out...

Thanks, Kathir


 
 
sveroa





PostPosted: Team Foundation Server - General, WssTasks.XML and target filename Top

The "[Project Name]" is just my notation for developer to prefix the project files. In mye previous job, we often worked on specifications for several project at the same time. when we prefixed the files, we avoided to mix up the specifications. I found the $$PROJECTNAME$$ syntax in the task description earlier and tought it also might work for the target filename. But it didn't.

Thanks anyway


 
 
Kathirvel





PostPosted: Team Foundation Server - General, WssTasks.XML and target filename Top

hey...i really confused...i found that the source name of the doc file and target name of the doc file is different in your case..that' y i rearranged those thing and written.....but

if you don't mind....can you please give me, what exactly u r looking for

Thanks, Kathir


 
 
sveroa





PostPosted: Team Foundation Server - General, WssTasks.XML and target filename Top

The Process Template contains a file called '[Project Name] - Test Plan.doc' and when a new project is created based on the process template I want TFS to create a file where '[Project Name]' is replaced with the name of the Team Project.

Thanks...


 
 
Kathirvel





PostPosted: Team Foundation Server - General, WssTasks.XML and target filename Top

ok...whtever i understood is correct....if you want to generate dynamically the Project Name...i think upto my knowledge is not possible ....anyhow..i will check it out..

Thanks,
Kathir


 
 
sveroa





PostPosted: Team Foundation Server - General, WssTasks.XML and target filename Top

Thanks...I can't understand why this isn't implemented/working for the target attribute since it is used in the description. Should be difficult to implement both places. As far as I know, this should be standard feature
 
 
Dennis Habib MSFT





PostPosted: Team Foundation Server - General, WssTasks.XML and target filename Top

Hi,

The $$ProjectName$$ macro is not supported by the WSS plugin (each plugin has it's own XML format that it parses). There is no variable substitution support in the WSS plugin. Unfortunately I don't believe there is a way to change the target name of a document during project creation.

-Dennis