This project has moved and is read-only. For the latest updates, please go here.

MakeDir/Copy not exist

Topics: Bindings File, Settings Management and SSO, Server Deployment
May 30, 2013 at 6:57 PM
I was trying to follow an example in the documentation that does the following, however elements like MakeDir and Copy no longer exist. Can anyone help or suggest an alternative?

<Target Name="CustomRedist">
<MakeDir Directories="$(RedistDir)\TestFiles" />
<!-- Force MSBuild to expand the item spec into physical file specs --> <CreateItem Include="..\TestFiles***.*">
<Output TaskParameter="Include" ItemName="TestFilesSourceGroup" />
<!-- Copy all of the files and subfolders from ..\TestFiles to $(RedistDir)\TestFiles --> <Copy DestinationFolder="$(RedistDir)\TestFiles\%(RecursiveDir)" SourceFiles="@(TestFilesSourceGroup)"/>

May 30, 2013 at 7:18 PM
Hi Craig,

Not sure what you mean that they no longer exist. They have been part of MSBuild since the very first release.

What leads you to that conclusion?

May 30, 2013 at 7:29 PM
I'm getting the following error:
The element 'Target' in namespace '' has an invalid element 'MakeDir'..

Maybe I need a different version of MSBuild or something?

May 30, 2013 at 8:38 PM
That's Visual Studio IntelliSense, so just ignore it. It should work fine at runtime.

May 30, 2013 at 8:43 PM
Oh cool - thanks for helping out. A bit new to this framework.