开发者

MSBuild: why does it not copy my files

开发者 https://www.devze.com 2023-02-23 11:52 出处:网络
In VS2010 project file I have this, yet it does not copy the files at all. Why? <Target Name=\"AfterBuild\">

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

精彩评论

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