加载自定义签入策略 Visual Studio 2015 时出错 [英] Error Loading Custom Check-In Policy Visual Studio 2015

查看:23
本文介绍了加载自定义签入策略 Visual Studio 2015 时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

几年前,我问过这个问题:TFS 自定义签入策略不在添加框中 并且能够让我的自定义签入策略在 Visual Studio 2012 中工作.我终于升级到 VS2015RC 并尝试使用相同的入住政策.我尝试在以下注册表项中添加引用:

A few years ago, I asked this question: TFS Custom Check-In Policy is not in the Add box and was able to get my custom check-in policy to work in Visual Studio 2012. I have finally upgraded to VS2015RC and am trying to use the same check-in policy. I have tried to add a reference at the following registry keys:

HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\14.0_Config\TeamFoundation\SourceControl\Checkin Policies

HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\14.0\TeamFoundation\SourceControl\Checkin Policies

但没有运气.我还在 VS2015 中打开了我的签入策略项目并重新构建了它(尝试针对各种不同的框架:4、4.5、4.5.1、4.5.2、4.6),但都没有成功.

but have had no luck. I also opened my check-in policy project in VS2015 and rebuilt it (attempting to target various different frameworks: 4, 4.5, 4.5.1, 4.5.2, 4.6) all with no luck.

我还将 Microsoft.TeamFoundation.versionControl.Client 的引用更改为版本 14.0.0.0

I also changed my references of Microsoft.TeamFoundation.versionControl.Client to version 14.0.0.0

有谁知道为什么我无法在添加签入策略"对话框中显示此策略?

Does anyone know why I can't get this policy to show up in the Add Check-In Policy dialog?

推荐答案

它所需要的只是一个晚上的休息.

All that it needed was a night of rest.

今天早上我醒来发现入住政策按预期工作.我的计算机已在一夜之间重新启动,我认为这已解决了问题.

This morning I woke up to the Check-In policy working as expected. My computer had restarted overnight which I assume corrected the issue.

我确实想指出,在昨天处理这个问题时,我每次更改注册表等时都尝试关闭 Visual Studio 2015,但这似乎没有帮助.我也注销/登录过一次,但没有解决.

I do want to note that while working on this issue yesterday, I tried closing Visual Studio 2015 every time that I changed the registry, etc, but that didn't seem to help. I also logged off/on once and that didn't fix it.

所以最终答案:计算机重启似乎解决了这个问题.此外,为了将来参考,我的自定义签入策略针对 .Net Framework 4.5.1

So final answer: computer restart seemed to fix the issue. Also, for future reference, my custom check-in policy is targeting .Net Framework 4.5.1

这篇关于加载自定义签入策略 Visual Studio 2015 时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆