title: Declaring dynamic profile path in MsBuild
body: <p>Currently I'm trying to copy a file to a location inside a user's profile, but hit a problem with declaring dynamic profile name, e.g.:</p>
  
  <pre><code>&lt;Target Name="CopyScript"&gt;
      &lt;MsBuild Projects="JsProject.csproj" /&gt;
      &lt;Copy SourceFiles="$(ProjectDir)\myScript.js" DestinationFolder="$(systemdrive)\Documents and Settings\$(userProfileName)" /&gt;
  &lt;/Target&gt;
  </code></pre>
  
  <p>What is the syntax for declaring a dynamic user profile name?  Do I have to get the profile name from somewhere, or is there another MsBuild task which will find it for me?</p>
  
  <p>Thanks.</p>