checkin-policy

Error Loading Custom Check-In Policy Visual Studio 2015

余生颓废 提交于 2019-12-23 19:27:35
问题 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

VS 2013 doesn't see my custom check-in policies

社会主义新天地 提交于 2019-12-19 04:26:32
问题 I have custom check-in policies deploying via VSIX. Now I'm trying to use them in Visual Studio 2013. What I did: I opened my policies in VS 2013. Changed "Install Targets" in vsixmanifest to [10.0, 13.0). Then built project, installed VSIX and opened both VS. VSIX project uses .NET Framework 4.5, policies project uses 4.0. What I have: Last version of my policies in C:\Users\...\AppData\Local\Microsoft\VisualStudio\12.0Exp\Extensions directory Copies of policies for both 2012 and 2013 VS in

How to include assemblies from NuGet packages in a VSIX Installer?

耗尽温柔 提交于 2019-12-18 18:55:24
问题 I'm working on creating a Visual Studio 2017 custom Check-In Policy extension. My current solution is structured as follows: Note: I am taking advantage of the new NuGet PackageReference approach, which is why there is no packages.config file. I believe I have setup my VSIX manifest appropriately since everything works perfectly when I don't reference Microsoft.Net.Http (originally I was hard-coding in values instead of retrieving the values). I'm not sure why the Microsoft

TFS Check-in note Fields different per user?

一个人想着一个人 提交于 2019-12-11 16:14:46
问题 I have a Team Project set up with custom Check-in Notes : "Ticket" and "Code Reviewer". This is displayed to all in-house users on check-in. However, when the one external dev tries to check in, he is presented with the default "Code Reviewer","Performance Reviewer","Security Reviewer". I haven't found anything different between his permissioning and the in-house dev's. Why would one person see different fields? 来源: https://stackoverflow.com/questions/24541667/tfs-check-in-note-fields

PolicyDefinition result return empty collection using Java SDK of TFS 2015 “tp.getCheckinPolicies()” or “vcc.getCheckinPoliciesForServerPaths()”

我是研究僧i 提交于 2019-12-11 07:35:23
问题 Does anyone tried to retrieve PolicyDefinition using Java SDK of TFS 2015? I have used following code to retrieve the PolicyDefinition under intelliJ Plugin. Code execute fine but I am getting empty collection of PolicyDefinition. I am working on CustomPath Policy and I know on particular team project customPath Policy is applied. Before allowing user checkin I want to validate that weather this policy is applied or not. Sample Code: Project myProject = policyContext.getProject(); //

Is it possible to setup a private TFS checkin policy?

霸气de小男生 提交于 2019-12-11 03:24:10
问题 As I understand the checkin-policy are set on the server, but enforced on the client. Since they are enforced on the client, is there a way to setup a private checkin policy. I want to have a checkin policy for myself, but I can't set it on the TFS server as that would force everyone to follow that policy as well. 回答1: No that is not possible. If you're creating custom check-in policies you could have it filter by user, but you'd still have to turn it on at the server level and have every

“TF237124: Work Item is not ready to save” on associated workitem, but code is checked in regardless

心不动则不痛 提交于 2019-12-10 23:58:53
问题 We made a few fields in bugs required before allowing to resolve. However, when a developer tries to resolve with a checkin and those fields are not filled in, it still allows the checkin to occur w/out associating that bug - is there a way to NOT allow the checkin to occur so the developer fixes it, and the bug can be associated with it properly? here is the full message: Failed to update the following work item: ID 9073. Reason: TF237124: Work Item is not ready to save Changeset 548

Custom Checkin Policy: Access to filecontent from changeset files

最后都变了- 提交于 2019-12-10 18:53:26
问题 I'm trying to whrite my own checkin policy. I want to review if any .cs file contains some code. So my question is, if its possible to get the content of every file from the changeset in the overriden Initialize-Methode and/or Evaluate-Methode (from PolicyBase). Thanks in advanced! 回答1: You can't get the contents from the files directly, you'll need to open them yourselves. For each checked In your Evaluate method, you should look at the PendingCheckin.PendingChanges.CheckedPendingChanges (to

Custom policies in Visual Studio 2012 and TFS 2010

妖精的绣舞 提交于 2019-12-10 13:37:49
问题 I installed Visual Studio 2012 and connect to TFS 2010. Unfortunately I can't check-in because of policy. I get an error: Internal error in Custom Path Policy. Error loading the Custom Path Policy (The policy assembly 'Microsoft.TeamFoundation.PowerTools.CheckinPolicies.CustomPathPolicy, Version=10.0.0.0, ...' is not registered.). Does anybody know how to resolve this problem? 回答1: Ok, after installing Power Tools for TFS11 I don't have this problem. 回答2: In Team Explorer, try right clicking

Restricting TFS check-in policy to specific users

梦想的初衷 提交于 2019-12-05 23:59:49
问题 The title says it all really. Our team wants to somehow restrict a TFS check-in policy to some select users. We are currently using something similar, but to restrict server paths. We have a Custom Path Policy policy attached to a Work Items policy in our project, and it is working as expected. I wondered if it would be reasonable to create another policy like that, that scopes a certain other policy to a group of predefined users. We would like to use a feature like that with this code