Deploying user policies on TFS2010 using VSIX and PKGDEF

I have time trying to get a custom policy for installing on TFS2010 using VSIX.

I have a policy that works and works fine on my development computer, I wrote the value to the registry manually, and the policy is applied.

The problem is setting up the VSIX project and deploying it to our other development machines.

I followed the instructions below:

http://blogs.msdn.com/b/jimlamb/archive/2010/03/31/how-to-implement-package-and-deploy-custom-check-in-policy-for-tfs-2010.aspx

The preferred method is to use a new type of VSIX project in VS 2010, I am adding a VSIX project to my solution, but the instructions on the blog are very vague as to what to do next. I understand that the PKGDEF file means that you do not write the value to the registry during deployment, and the contents of the PKGDEF file are loaded into the configuration when Visual Studio starts. This is great, but how are you building up the VSIX package?

I tried to add a user policy project to a VSIX project as a type of VS package, but when I create, I get an error: the target "PkgdefProjectOutputGroup" does not exist in the project.

I tried adding only dll, pkgdef file as a custom content type, etc., but nothing works.

I modified the PKGDEF file on the blog according to my own project.

VSIX , Visual Studio, TFS, " ".

VSIX , - ?

+5
3

. , , pkgdef VSIX ( vsixmanifest) VS Package. VSIX ( DLL VSIX).

.... "VS-" , ... VS- ( #/VB).

+6

, NArrange.CheckinPolicy.dll " Policy.pkgdef. , , Policies.pkgdef :

[$RootKey$\TeamFoundation\SourceControl\Checkin Policies]
"TeamFoundation.Samples.CheckinPolicies"="$PackageFolder$\NArrange.CheckinPolicy.dll"

, , " " source.extension.vsixmanifest NArrange.CheckinPolicy. , VS-.

+1
+1
source

All Articles