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=""\\amon\dfs\VSS ilitia""
Project="$\Proyectos\PeopleTracker"
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 =
C:\Proyectos\MyProject\build.proj(30,3): error : Label =
C:\Proyectos\MyProject\build.proj(30,3): error : GetParameter =
C:\Proyectos\MyProject\build.proj(30,3): error : WorkingDirectory = .\
C:\Proyectos\MyProject\build.proj(30,3): error : VersionNumber =
C:\Proyectos\MyProject\build.proj(30,3): error : VersionNumberConfigFileLocation =
C:\Proyectos\MyProject\build.proj(30,3): error : VersionNumberConfigVSSLocation =
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)
I have posted this issue in the Visual Studio MSBuild Forum, at http://forums.microsoft.com/msdn/ShowPost.aspx?PostID=80162#80162
posted on Tuesday, August 30, 2005 12:46 PM
Feedback
# re: Visual Studio 2005, Error using MSBuild and the SourceSafe.Get Task
12/6/2005 6:21 PM |
I'm getting the same problem too - using reflector you can see that the task is written to look for VSS 6.0 not 2005.
# re: Visual Studio 2005, Error using MSBuild and the SourceSafe.Get Task
12/30/2005 6:46 PM |
I found a way around this.
Modify the path system enviromnent variable so that c:\program files\microsoft visual sourcesafe is part of the path.
Few other things worth mentioning... Password is ignored, so if the task hangs, its because ss.exe is prompting for a password (and of course you don't have a console..). Make sure the user doesn't have a password to get around this.
The last problem i'm having is that after the get, LoadVersionNumber is called. Why this is even needed is beyond me... but not having the xml file causes the task to bomb. I'm through working aroiund this task, i'm going to find the source and remove the offending lines..
# re: Visual Studio 2005, Error using MSBuild and the SourceSafe.Get Task
3/2/2007 3:19 PM |
You Blog is Best!
Hello this is online news for you! Thank you!
http://www.usa-online-payday-loan.com
# re: Visual Studio 2005, Error using MSBuild and the SourceSafe.Get Task
6/13/2007 9:14 PM |
Thanks, great solution
# re: Visual Studio 2005, Error using MSBuild and the SourceSafe.Get Task
11/18/2007 10:31 PM |
thxx
# re: Visual Studio 2005, Error using MSBuild and the SourceSafe.Get Task
12/8/2007 9:37 PM |
We offer the largest collection of polyphonic ringtones, monophonic ringtones, mobile videos, color wallpapers, color screensavers, real sounds.
# re: Visual Studio 2005, Error using MSBuild and the SourceSafe.Get Task
12/20/2007 9:15 PM |
If you are looking for the replica watch and information about it, you came to the right place.
# re: Visual Studio 2005, Error using MSBuild and the SourceSafe.Get Task
7/16/2008 6:02 PM |
thank you..
# re: Visual Studio 2005, Error using MSBuild and the SourceSafe.Get Task
7/25/2008 8:40 PM |
very very nice