In VS2010 project file I have this, yet it does not copy the files at all. Why?
<Target Name="AfterBuild">
<Exec Command="xcopy.exe /Y /S $(ProjectDir)Templates\*.tt $(dev_folder)MyWebsites\DotNetNuke%20Community%20Edition\DesktopModules\SharpMod\Templates\"/>
</开发者_运维百科Target>
It might be because you've got spaces in your paths. Try to use double quotes:
<Target Name="AfterBuild">
<Exec Command="xcopy.exe /Y /S "$(ProjectDir)Templates\*.tt" "$(dev_folder)MyWebsites\DotNetNuke%20Community%20Edition\DesktopModules\SharpMod\Templates\""/>
</Target>
XCopy code 4 is a permissions or file space issue
You're missing a backslash after $(dev_folder)
in your destination. Looking at your comment response to Eric, it's resulting in c:\softwareMyWebsites\DotNetNuke Community Edition\DesktopModules\SharpMod\Templates\
- notice the missing path delimiter between software
and MyWebsites
.
精彩评论