title: How can I define properties dynamically and pass them to another target in msbuild?
body: <p>I am trying to reuse a task in an Ant way:</p>
  
  <pre><code>   &lt;Target Name="Release"&gt;
          &lt;Message Text="Env: $(Env)"/&gt;
     &lt;/Target&gt;
     &lt;Target Name="ReleaseIntegration"&gt;
      &lt;CreateProperty Value="Development"&gt;
        &lt;Output TaskParameter="Value" PropertyName="Env" /&gt;
      &lt;/CreateProperty&gt;
      &lt;Message Text="Env: $(Env)"/&gt;
      &lt;CallTarget Targets="Release"/&gt;
    &lt;/Target&gt;
  </code></pre>
  
  <p>And I get:</p>
  
  <pre><code>Env: Development
  Env: 
  </code></pre>
  
  <p>Any ideas how to get this property into Release target?</p>