Hi all:
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.:
<Target Name="CopyScript">
<MsBuild Projects="JsProject.csproj" />
<Copy SourceFiles="$(ProjectDir)\myScript.js" DestinationFolder="$(systemdrive)\Documents and Settings\$(userProfileName)" />
</Target>
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?
Thanks.