简体   繁体   English

VS2015缺少禁止模式策略?

[英]Forbidden Patterns Policy missing with VS2015?

I'm trying to add a check-in policy to prevent certain file types from being committed to our source control, however when I go to add a check in policy from within VS2015 the listed options available in the "Add Check-in Policy" window isn't displaying "Forbidden Patterns Policy" as an option: 我正在尝试添加签入策略以防止某些文件类型提交到我们的源代码管理中,但是当我从VS2015中添加签入策略时,“添加签入策略”中列出的选项可用窗口未显示“禁止模式策略”作为选项:

在此处输入图片说明

I got to this option by doing the following: 我通过执行以下操作来选择此选项:

  • Navigating to Team Explorer 导航到团队资源管理器
  • Clicking on "Settings" 点击“设置”
  • Under "Team Project" hitting "Source Control" 在“团队项目”下,点击“源代码管理”
  • Clicking the "Check-in policy" tab 点击“入住政策”标签
  • Pressing "Add" to bring up the "Add Check-in Policy" window (as seen above) 按“添加”以弹出“添加签入策略”窗口(如上所示)

How can I set-up the forbidden patterns policy in VS2015? 如何在VS2015中设置禁止模式策略? Has it moved? 它移动了吗?

I can confirm that this policy is currently not set-up on our source control. 我可以确认当前在我们的源代码管理中未设置此策略。 We are using TFS. 我们正在使用TFS。

Ah finally found out how to get it! 终于知道了如何获得它! To get the option to add the "Forbidden Patterns Policy" to Visual Studio 2015 you need to install "Microsoft Visual Studio Team Foundation Server 2015 Power Tools". 若要获取将“禁止模式策略”添加到Visual Studio 2015的选项,您需要安装“ Microsoft Visual Studio Team Foundation Server 2015 Power Tools”。 You must install the version which matches you VS; 您必须安装与您的VS相匹配的版本。 ei I was running VS2015 so I needed Power Tools 2015. ei我正在运行VS2015,所以我需要Power Tools 2015。

You can download it here: https://visualstudiogallery.msdn.microsoft.com/898a828a-af00-42c6-bbb2-530dc7b8f2e1 您可以在这里下载: https : //visualstudiogallery.msdn.microsoft.com/898a828a-af00-42c6-bbb2-530dc7b8f2e1

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM