title: How to path parameter from MsBuild to TeamCity
body: <p>I need to read xml file for one property and that property should be used in Next teamcity build. 
  For now i have configuration </p>
  
  <pre><code>&lt;Project ToolsVersion="3.5" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"&gt;
  &lt;PropertyGroup&gt;
      &lt;MSBuildCommunityTasksPath&gt;$(MSBuildProjectDirectory)\.build&lt;/MSBuildCommunityTasksPath&gt;
      &lt;ExtensionTasksPath&gt;$(MSBuildProjectDirectory)\.build\&lt;/ExtensionTasksPath&gt;
  &lt;/PropertyGroup&gt;
  
  &lt;Import Project="$(MSBuildCommunityTasksPath)\MSBuild.ExtensionPack.tasks"/&gt;
  &lt;Target Name="SetValue"&gt;
  
      &lt;!--  ReadAttribute  --&gt;
      &lt;MSBuild.ExtensionPack.Xml.XmlFile TaskAction="ReadElementText" File="my.config" XPath="/configuration/version"&gt;
          &lt;Output PropertyName="build.PackageVersion" TaskParameter="Value"/&gt;
      &lt;/MSBuild.ExtensionPack.Xml.XmlFile&gt;
      &lt;Message Text="SourceProtocol = $(build.PackageVersion)"/&gt;
  &lt;/Target&gt;
  </code></pre>
  
  <p></p>
  
  <p>But variable packageversion is still empty in TeamCity. </p>