Visual Studio 2010??

Topics: User Forum
Mar 29, 2010 at 1:14 PM

Hi,

A question: does it work with visual studio 2010? if not working, do you have planned out some version in the future for the new VS2010?

Thanks for everything!

Coordinator
Mar 29, 2010 at 4:21 PM

Haven't had a chance to try it yet, but I'd guess that making it work could be as simple as adding an additional registry key.

Chris

Mar 30, 2010 at 10:20 AM
Edited Mar 30, 2010 at 10:22 AM

It would be really nice if there would be a 2010 version until 12th of April.
The 2010 compatible version of this policy is the only no-go criteria left for switching to VS 2010.

Mar 30, 2010 at 10:56 AM

Changing the registry entry is not enough. I've downloaded the source and tried it. You also need to reference the newer version of "Microsoft.TeamFoundation.VersionControl.Client" Version 10 for VS 2010.

Coordinator
Mar 30, 2010 at 11:03 AM
Edited Mar 30, 2010 at 11:03 AM

That's bad, so no 2008 & 2010 combined deliverable... (does it work with changed references+registry?)

Anyways, seems that gated checkin poses additional challenges:

http://blogs.msdn.com/jpricket/archive/2010/03/11/using-the-custom-assembly-path-to-deploy-custom-tfs-checkin-policies.aspx

Chris

Mar 30, 2010 at 12:34 PM
Edited Mar 30, 2010 at 12:35 PM

Changing references  + different registry path works.

Will try to get it working vor VS 2008 and VS  2010 using 2 different Product-Codes for the installer.
Will try that approach ^^ within the next days.

Mar 30, 2010 at 1:22 PM

Ok, couldn't wait ;)

I got it working:
- TFS 2008

Using VS 2008 and VS 2010.

The way it worked:
- get source from codeplex
- compile it in release mode
- open the setup project in SharpDevelop and compile it
- run it and install
- VS 2008 Version is now installed and working
- Make a copy of the folder and modify the reference to "Microsoft.TeamFoundation.VersionControl.Client" Version 9 of projects "cccpol" and "cccpwintestapp" to point to the version 10 of the assembly
- compile it in release mode
- open the setup project in SharpDevelop
- open the "Files.wxs" file and change:

     <Registry Action="write" Id="CccpRegistry" Key="SOFTWARE\Microsoft\VisualStudio\9.0\TeamFoundation\SourceControl\Checkin Policies" Root="HKLM" Type="string" Name="CCCPPol" Value="[#cccppol.dll]" /> 
     to:
    <Registry Action="write" Id="CccpRegistry" Key="SOFTWARE\Microsoft\VisualStudio\10.0\TeamFoundation\SourceControl\Checkin Policies" Root="HKLM" Type="string" Name="CCCPPol" Value="[#cccppol.dll]" />

- open the "Setup.wxs" file and change:
   Name="Code Comment Checking Policy v3 (VSTS 2008)" to Name="Code Comment Checking Policy v3 (VSTS 2010)"
   <Product Id="8F3A52FE-BB54-4BC9-953C-7173D16AA96D" to <Product Id="8F3A52FE-BB54-4BC9-953C-7173D16AA96E"
   Description="Installs Code Comment Checking Policy for VSTS 2008" to Description="Installs Code Comment Checking Policy for VSTS 2010"

- Compile the setup project
- install it using a different path than before

You're done!

Btw. for me it happend that the path in the registry to the cccpol was always C:\Program Files\cccpol\... which I never specified during install. Is this a bug?
I needed to change the path for both installs afterwards using regedit.

Jens

Mar 30, 2010 at 2:03 PM

Thank you very much to both.

Your answers helped me a lot. I got it working with VS2010.