开发者

MSBuild: why does it not copy my files

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 &quot;$(ProjectDir)Templates\*.tt&quot;  &quot;$(dev_folder)MyWebsites\DotNetNuke%20Community%20Edition\DesktopModules\SharpMod\Templates\&quot;"/>
</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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜