Team Foundation Server checkin policies.
Questions tagged [checkin-policy]
53 questions
18
votes
4 answers
How to include assemblies from NuGet packages in a VSIX Installer?
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…

myermian
- 31,823
- 24
- 123
- 215
7
votes
2 answers
Restricting TFS check-in policy to specific users
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…

julealgon
- 7,072
- 3
- 32
- 77
6
votes
2 answers
Custom policies in Visual Studio 2012 and TFS 2010
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…

Sławomir Rosiek
- 4,038
- 3
- 25
- 43
4
votes
2 answers
TFS Client side hook
We have using TFS as version control. Currently the project management is done through our local PMS application. We have a requirement like when a team member check in the project, show a custom dialog for entering task details and update our…

Vipin RT
- 298
- 4
- 16
4
votes
1 answer
Does anyone know how I can set unit test check-in policy for a selected portion of my source code in TFS 2010?
In fact when I configure check-in policies for unit test it is applied for the overall solution but I need a customized unit test check-in policy to be able to limit the scope of the policy only to a specific project, source file or smaller portions…

Saeed6162
- 43
- 3
3
votes
1 answer
Custom Checkin Policy: Access to filecontent from changeset files
I'm trying to write my own checking 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 overridden Initialize-Method and/or Evaluate-Method (from…

rhe1980
- 1,557
- 1
- 15
- 36
3
votes
2 answers
How to load Checkin Policy in custom TFS-Plugin
I've created a plugin for a program adding TFS-VCS integration to that program using the Microsoft.TeamFoundation.*-Namespaces.
Basicaly that works, but now I have a problem with custom checkin policies:
We have 2 checkin policies activated for the…

Christoph Fink
- 22,727
- 9
- 68
- 113
3
votes
2 answers
TFS Check-In Policy for Roslyn-Analyzer Warnings
We recently switched to Visual Studio 2015 and now want to make use of the new Roslyn-Analyzer feature. In fact we want to replace the "legacy" StyleCop with the newer StyleCop Analyzers (https://github.com/DotNetAnalyzers/StyleCopAnalyzers).
In…

huserben
- 1,034
- 1
- 10
- 19
3
votes
1 answer
Error Loading Custom Check-In Policy Visual Studio 2015
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.…

jpsnow72
- 965
- 2
- 15
- 45
3
votes
1 answer
Code analysis check-in policy kills productivity when combined with Test-driven development
We are working with VS2012+TFS2012 and I wanted to add code analysis check-in policy to remind every team members to fix code warnings before checking-in, but then I noticed it forces us to check "activate code analysis on build" project option.
We…

Jonathan
- 1,276
- 10
- 35
3
votes
2 answers
Block Check-In on Policy Failure
I've created the check-in policy from this MSDN article as an example (code is just copy / pasted).
This works fine, it appears when I try and do a check-in, however it appears as an warning. So I can ignore it by just pressing Check In again. How…

MattR
- 641
- 3
- 17
- 38
3
votes
1 answer
Registering Custom checkin policy for VS2013
I installed Visual Studio 2013 and having problem with Custom Check in policies. I added new Key and Value to the registry:
HKEY_LOCAL_MACHINE\Software\Microsoft\VisualStudio\12.0\TeamFoundation\SourceControl\Checkin
…

Dilshod
- 3,189
- 3
- 36
- 67
2
votes
2 answers
TFS2010: Prevent check-in if code analysis warning exists
In my team I want to prevent developer to check-in code with warnings from code analysis.
Like I found in some blogs and stackoverflow-questions I tried to make this with a check-in policy:
Enable Code Analysis in Visual Studio Project and set the…

rhe1980
- 1,557
- 1
- 15
- 36
2
votes
1 answer
Team Foundation Server: Custom check-in policy working in VS2010 but not VS2008
We've got a server with Team Foundation Server 2008 installed on it. Clients using Visual Studio 2008 and Visual Studio 2010 connect to it. I've written a custom check-in policy for TFS which is working as expected in VS2010 but not in VS2008.
I…

millie
- 2,642
- 10
- 39
- 58
2
votes
1 answer
How to register custom check-in policies in Visual Studio 2019?
In Visual Studio 2017, to register custom check-in policies we would use privateregistry.bin located in %localappdata%\Microsoft\VisualStudio\15_..., and we would add keys to the following…

mohammad rostami siahgeli
- 6,787
- 9
- 49
- 89