为新团队项目自动创建文件/文件夹 [英] Automating File/Folder Creation for New Team Projects
问题描述
有没有办法在新创建的团队项目中创建文件夹/文件?实际上每个项目都有物理文件夹和文件,我的项目至少有一个"文档"文件。文件夹,"Src"文件夹,"自述文件"文件,
等。如果有一种方法可以在创建项目时将选择的文件/文件夹作为默认值包含在内,那就太好了。如果这已经实施,我很想知道。如果它没有实现,那么我猜这是一个无赖。
Is there a way to have folders/files created along newly created team projects? Practically every project has physical folders and files, and my projects have, at the very least, a "Docs" folder, "Src" folder, "README" file, and so on. It would be nice if there were a way to have a selection of files/folders to be included as a default when creating projects. If this is already implemented, I am dying to know. If it is not implemented, then I guess that's a bummer.
推荐答案
你好Thucydideez,
Hi Thucydideez,
在当前版本的TFS中不支持在创建新团队项目期间自动创建文件夹和文件。
Creating folders and files automatically during a new team project creation is not supported in current version of TFS.
我在这里帮您提交功能请求,您可以投票:
https://visualstudio.uservoice.com/forums/330519-team-services/suggestions/18391849-allow-creating-code-source-default-folder-when-cre
I help you submit a feature request here and you can vote it: https://visualstudio.uservoice.com/forums/330519-team-services/suggestions/18391849-allow-creating-code-source-default-folder-when-cre
如果使用TFVC作为版本控制,则可以尝试使用API创建文件夹和文件。此链接供您参考:
https://blogs.msdn.microsoft.com/buckh/2012/03/10/team-foundation-version-control-client-api -example-for-tfs-2010-and-newer /
这篇关于为新团队项目自动创建文件/文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!