Essentially, what I want to do is use a wildcard for a directory.
The post build event is on a PageComponents project:
PageComponents WidgetTemplates WidgetTemplate1 Usercontrol1 WidgetTemplate2 Usercontrol2
And I want to copy all user controls to a Web project, but to a different relative location:
Web CtrlPresentation Usercontrol1 Usercontrol2
I tried to wildcard the WidgetTemplates directory:
xcopy "$(ProjectDir)WidgetTemplates\*\*.ascx" "$(SolutionDir)Client.Web\CtrlPresentation" /y /s
But this fails all together. So then I tried the following:
xcopy "$(ProjectDir)WidgetTemplates\*.ascx" "$(SolutionDir)Client.Web\CtrlPresentation" /y /s
But this copies each individual WidgetTemplate folder over as well.
Is there a way to achieve what I'm trying to do?