Is there a timeline for a VS2012 version?

Jul 31, 2012 at 6:45 PM

Wondering if a 2012 version is in the works.  

Sep 29, 2012 at 1:33 AM
Edited Sep 29, 2012 at 1:41 AM

Open the 2010 source project up in 2012 and re-compile it.

Then change this line in install.cmd from:

echo [HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\10.0\TeamFoundation\SourceControl\Checkin Policies]>>"%r%"

to:

echo [HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\11.0_Config\TeamFoundation\SourceControl\Checkin Policies]>>"%r%"

 

Worked for me :)

Nov 20, 2012 at 8:59 PM

When trying to Add a Check-in Policy I get the following Error:

"Error loading the Log Substitution Policy: Inserts Comments on
Check-In policy. Installation instructions: Log Substitution Policy: To
install this policy, read InstallInstructions.txt."

To get the error:

- VS 20212
- Team Explorer
- Settings
- Source Control (Team Project)
- $log% Substitution Policy Editor
- Check-in Policy Tab (nothing had been added yet)
- Clicked Add Button
- Selected Log Substitution Policy: Inserts Comments on Check-In
- Clicked OK
- Clicked Ok

I had recompiled the assembly in 2012.  If I use the provided one I get a message saying it is an invalid Policy so I know I am using the new one.

I modified the Reg Location in the install.cmd per above.

I am using Windows 8 Pro in a Windows 2012 Server Domain with VS2012 and TFS 2012.

I have to run VS2012 as Administrator so I even logged in as Administrator and did the Install.cmd and still got the error.

Is there something more I can look at for a clue?

Thanks,

Doug

Jun 4, 2013 at 6:50 AM
I got the recompiled version to work with VS2012. To do this you have to add additional registry-values:

Here is my install.cmd
@echo off

set p=%USERPROFILE%\Local Settings\Application Data\Microsoft\LogSubstPol
set r=%p%\LogSubstPol.reg
mkdir "%p%" 1>nul 2>&1
copy LogSubstPol.* "%p%\*.*"

echo Windows Registry Editor Version 5.00>"%r%"
echo.>>"%r%"
set fn="LogSubstPol"="%p%\LogSubstPol.dll"
set fn2=%fn:\=\\%
echo [HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\11.0_Config\TeamFoundation\SourceControl\Checkin Policies]>>"%r%"
echo %fn2%>>"%r%"
echo [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\11.0\TeamFoundation\SourceControl\Checkin Policies]>>"%r%"
echo %fn2%>>"%r%"

echo Registering Check-In Policy...
regedit /s "%r%"

echo Reconfigure Visual Studio...
echo Set objShell = CreateObject("Shell.Application") > "%p%\sudo.tmp.vbs"
echo objShell.ShellExecute "c:/Program Files (x86)/Microsoft Visual Studio 11.0/Common7/IDE/devenv.exe", "/setup", "", "runas" >> "%p%\sudo.tmp.vbs"
cscript "%p%\sudo.tmp.vbs"

echo Done.
echo.
echo.
echo Now restart VS
echo And activate this plugin (if not already activated)
echo   via "Team Explorer | Richt-Click Project | Team Project Settings | Source Control... | Check-In Policy | Add...
echo   select "Log substition policy: Auto Comments Policy" and press "Ok".
echo.
echo.
pause
Jun 21, 2013 at 12:24 PM
Edited Jun 21, 2013 at 1:21 PM
Thanks.

Will there be a proper 2012 version soon?

I need to get one out to my team and would rather have a "released" version to use.
I tried the above and getting the error

"Error loading the Log Substitution Policy: Inserts Comments on
Check-In policy. Installation instructions: Log Substitution Policy: To
install this policy, read InstallInstructions.txt."
Jun 24, 2013 at 11:15 AM
I tried to debug the error and somehow it displays the following Error message.

"Error loading the Log Substitution Policy: Inserts Comments on
Check-In policy (Object of type
'LogSubstPol.UserNameMappingListe' cannot be converted to type
'LogSubstPol.UserNameMappingListe'.). Installation instructions:
Log Substitution Policy: To install this policy, read
InstallInstructions.txt."

The error is about type conversion but it looks to me the conversion of the same type.
Apr 8, 2014 at 8:37 AM
Yes, it would be nice to have a "proper" v2012 version.
It is difficult to convince other people to use this when you say they have to manipulate this and that...

Has anyone tried with Visual Studio online?