Unable to find the Visual SourceSafe registry key in SourceSafe.Get Task

I'm trying to get the latest version of my project through msbuild project. I have defined a SourceSafe.Get task (from Microsoft.Sdc.Tasks project) to do that. When I try to execute the task I get the following error:"Unable to find the Visual SourceSafe registry key"

I can't find any information about this issue...

This is the task in the .proj file:
<Target Name="Latest">
<SourceSafe.Get
UserName="raul"
Password=""
Database="&quot;\\amon\dfs\VSS ilitia&quot;"
Project="$\Proyectos\MyProject"
WorkingDirectory=".\" >
</SourceSafe.Get>
</Target>
Following, the complete output:
C:\Proyectos\MyProject\build.proj(30,3): error : A task error has occured.
C:\Proyectos\MyProject\build.proj(30,3): error : Message = Unable to find the Visual SourceSafe registry key.
C:\Proyectos\MyProject\build.proj(30,3): error : Project = $\Proyectos\MyProject
C:\Proyectos\MyProject\build.proj(30,3): error : Database = "vss ilitia"
C:\Proyectos\MyProject\build.proj(30,3): error : Username = raul
C:\Proyectos\MyProject\build.proj(30,3): error : Password = <String.Empty>
C:\Proyectos\MyProject\build.proj(30,3): error : Label = <String.Empty>
C:\Proyectos\MyProject\build.proj(30,3): error : GetParameter = <String.Empty>
C:\Proyectos\MyProject\build.proj(30,3): error : WorkingDirectory = .\
C:\Proyectos\MyProject\build.proj(30,3): error : VersionNumber = <String.Empty>
C:\Proyectos\MyProject\build.proj(30,3): error : VersionNumberConfigFileLocation = <String.Empty>
C:\Proyectos\MyProject\build.proj(30,3): error : VersionNumberConfigVSSLocation = <String.Empty>
C:\Proyectos\MyProject\build.proj(30,3): error : OnlyIncrementRevision = False
C:\Proyectos\MyProject\build.proj(30,3): error :
C:\Proyectos\MyProject\build.proj(30,3): error : at Microsoft.Sdc.Tasks.SourceSafe.Get.VSSGet(ShellExecute shellExecute, String project, String label, String getParameter, String workingDirecto
ry)
C:\Proyectos\MyProject\build.proj(30,3): error : at Microsoft.Sdc.Tasks.SourceSafe.Get.InternalExecute()
C:\Proyectos\MyProject\build.proj(30,3): error : at Microsoft.Sdc.Tasks.TaskBase.Execute()
0 Warning(s)
1 Error(s)

Any help is welcomed!

[2426 byte] By [ragc] at [2007-12-30]
# 1

Hello,

I'm not very familiar with the library of MSBuild tasks that you are using, but form the problem that you are getting, it seems that its failing to find SourceSafe's automation dll.

You should try running the command line below (from the SourceSafe install location)
>regsvr32 ssapi.dll

Regards,

AlfredoMendezMSFT at 2007-9-5 > top of Msdn Tech,Visual Studio,Visual Studio Source Control and SourceSafe...
# 2

HI I am getting same problem as yours..Did u find any solution to this problem. Please help me out..how to resolve this problem...

Thanks n regards

Nishant

nishu at 2007-9-5 > top of Msdn Tech,Visual Studio,Visual Studio Source Control and SourceSafe...
# 3

Try adding SourceSafe install folder (D:\Program Files\Microsoft Visual SourceSafe) to the Path environment variable

RomanGolovinMSFT at 2007-9-5 > top of Msdn Tech,Visual Studio,Visual Studio Source Control and SourceSafe...
# 4
Setting the ssdir variable worked for me.......thanks...
nishu at 2007-9-5 > top of Msdn Tech,Visual Studio,Visual Studio Source Control and SourceSafe...
# 5

Hi,

I am using MSBuild.As MSbuild is not providing the SourceSafe/SourceDepot tasks, I found SDC as a feasible solution. Can you please guide me how can I install or configure it with MSBuild ? I couldn't get any help for installing it. If you have any link for any documentation, please forward me.

Your help is highly appreciable.

DeepakMakhija at 2007-9-5 > top of Msdn Tech,Visual Studio,Visual Studio Source Control and SourceSafe...
# 6

When i ran this project file using MSBuild command line i am getting below message.. and unable to continue

<SourceSafe.Get UserName="Test"
Password="Test"
Database="C:\Program Files\Microsoft Visual Studio\Common\VSS"
Project="$\Autoscript"
WorkingDirectory="D:\Autoscript\Build\" />

Output

Connecting to VSS
Getting latest version.

After this message i am unable to continue.

Thanks in advance for any help.

Ravana at 2007-9-5 > top of Msdn Tech,Visual Studio,Visual Studio Source Control and SourceSafe...

Visual Studio

Site Classified