TF unable to determine workspace
<p>I get this error:</p>

<pre><code> Unable to determine the workspace. You may be able to correct this by running 'tf workspaces /collection:TeamProjectCollectionUrl'.
</code></pre>

<p>I have checkout the workspace from Jenkins plugin (TFS-plugin). Then I run a MSBuild script where I want to checkout a file with this target:</p>

<pre><code> &lt;!-- Checkout before building --&gt;
 &lt;Target Name="CheckoutUpdateVersion"&gt;
    &lt;Message Text="***** Checkout $(UpdateVersionFile) *****" /&gt;
    &lt;Exec WorkingDirectory="E:\WS\Jenkins\workspace\TD_-_Build_TFS\" Command="$(tf)  checkout E:\WS\Jenkins\workspace\TD_-_Build_TFS\src\rubin\Scripts\update_version.sql" /&gt;       
&lt;/Target&gt;
</code></pre>

<p>I have checked so my workspace I mapped and it is mapped to the WorkingDirectory that is above.</p>