views:

120

answers:

1

Hi all,

I am experimenting with the build file that is part of web deployment project. My goal is do something in the "AfterBuild" target. I am doing the following:

<Target Name="AfterBuild">
    <MakeDir Directories="$(TargetDir)\Upload" />
  </Target>

For some reason the folder never gets created. Any idea why this is happening?

Thanks.

+3  A: 

I just realized i have a slash before the word upload which isn't necessary and that is what was causing the issue.

"$(TargetDir)\Upload" <= wrong
"$(TargetDir)Upload" <= right

Emon