title: Having trouble getting MSBuild and MSBuildCommunityTasks (VSS) to work together
body: <p>I am trying to learn how to do certain source control tasks with VSS and MSBuildCommunityTasks, like how to use tasks like GetVSS and VssLabel?  Docs don't make this clear.  And when I poke a stick at it to see if the error messages can tell me anything, it isn't really very clear what to do then, either.  Let me show what I'm doing and what I'm getting -- I hope someone can point me in the right direction.</p>
  
  <p>Project is written in C# using VS2005. Here's the MSBuild project file source: </p>
  
  <pre><code>&lt;Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"&gt;
      &lt;Import Project="$(MSBuildExtensionsPath)\MSBuildCommunityTasks\MSBuild.Community.Tasks.Targets"/&gt;
      &lt;Target Name="GetLatestVersionVSS"&gt;
          &lt;VssGet DatabasePath="C:\VSS\Astronom_VSS" 
              Path="$/Astronom_VSS" 
              LocalPath="C:\VisualStudioSource\AstronomySolution\Astronom" UserName="build" Password="build" /&gt;
      &lt;/Target&gt;
      &lt;Target Name="Compile" DependsOnTargets="GetLatestVersionVSS"&gt;
          &lt;MSBuild Projects="Astronomer.x.csproj" /&gt;
      &lt;/Target&gt;
  &lt;/Project&gt;
  </code></pre>
  
  <p>I get error messages as follows:</p>
  
  <pre>
  Target GetLatestVersionVSS:
  C:\Documents and Settings\michaelc\My Documents\Visual Studio 2005\Projects\Astronom\Astronomer\msbuild_UseVSS.xml(7,5): 
     error MSB4018: The "VssGet" task failed unexpectedly.
  C:\Documents and Settings\michaelc\My Documents\Visual Studio 2005\Projects\Astronom\Astronomer\msbuild_UseVSS.xml(7,5): 
     error MSB4018: System.IO.FileNotFoundException: Could not load file or assembly 
     'Microsoft.VisualStudio.SourceSafe.Interop, Version=5.2.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' 
     or one of its dependencies. The system cannot find the file specified.
  C:\Documents and Settings\michaelc\My Documents\Visual Studio 2005\Projects\Astronom\Astronomer\msbuild_UseVSS.xml(7,5): 
     error MSB4018: Filename: 'Microsoft.VisualStudio.SourceSafe.Interop, Version=5.2.0.0, Culture=neutral, 
     PublicKeyToken=b03f5f7f11d50a3a'
  ...And so on.
  </pre>
  
  <p>It occurs to me that I might need to put some sort of Import item in there to point to VSS, specifically to point to Microsoft.VisualStudio.SourceSafe.Interop, but I cannot find a .dll file by that name, and it is not in the list of components in the .NET tab of the Add Reference dialog in Visual Studio.</p>