[英]Issue with upgrading TFS Checkin Policies to VS2015
I have two policies that works with VS2013. 我有两个适用于VS2013的策略。 I wanted to make those policies work with VS2015, but can't find the TFS API libraries for VS2015.
我想使这些策略与VS2015一起使用,但是找不到VS2015的TFS API库。 I tried adding this
我尝试添加
"C:\\Program Files (x86)\\Microsoft Visual Studio 12.0\\Common7\\IDE\\ReferenceAssemblies\\v2.0\\Microsoft.TeamFoundation.VersionControl.Client.dll"
“ C:\\ Program Files(x86)\\ Microsoft Visual Studio 12.0 \\ Common7 \\ IDE \\ ReferenceAssemblies \\ v2.0 \\ Microsoft.TeamFoundation.VersionControl.Client.dll”
as a reference to my Policy projects and it compiled fine. 作为我的政策项目的参考,并且编译得很好。 When I try to register them, one of them worked, other one didn't.
当我尝试注册它们时,其中一个起作用了,另一个没有起作用。 I get the exception below:
我得到以下异常:
Internal error in [MyPolicy].
[MyPolicy]中的内部错误。 Error loading the [MyPolicy] policy (The policy assembly 'MyPolicy, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' is not registered.).
加载[MyPolicy]策略时出错(未注册策略程序集'MyPolicy,版本= 1.0.0.0,区域性=中性,PublicKeyToken =空”。) Installation instructions: Please see the web based installation instructions.
安装说明:请参阅基于Web的安装说明。
Why the first policy got regsitered fine, but not the second one? 为什么第一个策略可以重新注册,而第二个策略却不能? Someone know the issue?
有人知道这个问题吗?
You've tried referencing a VS2013 assembly (v12.0). 您已尝试引用VS2013程序集(v12.0)。 You need to reference VS2015 assemblies (v14.0) at
"%CommonProgramFiles%\\microsoft shared\\Team Foundation Server\\14.0"
您需要在
"%CommonProgramFiles%\\microsoft shared\\Team Foundation Server\\14.0"
处引用VS2015程序集(v14.0)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.