Visual Studio 2008 "AfterBuild" Web Deploy Project

I am experimenting with an assembly file that is part of a web deployment project. My goal is to do something in the "AfterBuild" goal. I am doing the following.

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

      

For some reason, the folder is never created. Why is this happening?

+2


source to share


1 answer


I just realized that I had a forward slash in front of the word upload

, which is not necessary, and that was what caused the problem.



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

      

+2


source







All Articles