title: Index Sources & Publish Symbols step not publish symbols in TFS 2015
body: <p>I have a problem with publishing symbols (move to shared directory on symbol server) using Index Sources &amp; Publish Symbols step in TFS 2015 build definition. </p>
  
  <p>I have simple Hello World project - one dll, one pdb in output and simple TFS 2015 build definition. Build definition contains two steps.  </p>
  
  <ol>
  <li>VS Build - Build solution \**\*.sln (with default configuration)</li>
  <li>Index Sources and Publish Symbols - Publish symbols path: \\sw\\symbols (with default configuration and shared directory symbols on sw pc). This location works ok with XAML Build Definitions!</li>
  </ol>
  
  <p><strong>When i queue new build, everything seems ok (variables have right content and so on) but shared folder on symbol server not contains desired pdb file.</strong> </p>
  
  <p>Please check following (truncation) TFS 2015 build log. Thanks.  </p>
  
  <pre><code>Starting: Build  
  Starting: Get sources  
  Checked out branch refs/heads/master for repository 1400666 at commit bd3b859e312be62d8af976f233f7407863ba33b8
  Running tasks  
  
  Starting task: Build solution \**\*.sln  
  Build succeeded.  
      0 Warning(s)
      0 Error(s)
  Time Elapsed 00:00:00.60  
  Finishing task: VSBuild  
  
  Starting task: Publish symbols path: \\sw\\symbols  
  Executing the powershell script: C:\BuildAgent\tasks\PublishSymbols\1.0.4\PublishSymbols.ps1  
  Find-Files -SearchPattern **\bin\**\*.pdb -RootFolder C:\BuildAgent\_work\57cae171\1400666  
  &gt;pdbFile= C:\BuildAgent\_work\57cae171\1400666\HelloWorld\bin\Debug\HelloWorld.pdb  
  &gt;Found 1 files to index...  
  Invoke-IndexSources -RepositoryEndpoint repositoryEndpoint -SourceFolder C:\BuildAgent\_work\57cae171\1400666 -PdbFiles pdbFiles  
  &gt;Invoke-PublishSymbols -PdbFiles pdbFiles -Share \\sw02\\symbols -Product Build -Version 20160108.7 -MaximumWaitTime 7200000 -MaximumSemaphoreAge 1440 -ArtifactName Symbols_debug  
  Start: AssociateArtifact  
  Associated artifact 15 with build 986  
  End: AssociateArtifact  
  Finishing task: PublishSymbols  
  
  Worker Worker-e99a050a-0cc5-477e-bf6f-cd374173434f finished running job e99a050a-0cc5-477e-bf6f-cd374173434f  
  Finishing Build  
  </code></pre>
  
  <p><strong>NOTE:</strong> publish symbols using symstore.exe (in my ps1 script in powershell build step) works.</p>