在post build事件命令行的visual studio中,我有以下内容:
xcopy $(TargetPath) $(SolutionDir)FunnelWeb.Web\bin\Extensions\ /Y它创建了一个错误:
命令"xcopy C:\Users\Exitos\Desktop\FunnelWeb-2.0.2.572-source\src\FunnelWeb.Extensions.MetaWeblog\bin\Debug\FunnelWeb.Extensions.MetaWeblog.dll“1
错误
C:\Users\Exitos\Desktop\FunnelWeb-2.0.2.572-source\src\FunnelWeb.Web\bin\Extensions\ /Y xcopy C:\Users\Exitos\Desktop\FunnelWeb-2.0.2.572-source\src\FunnelWeb.Extensions.MetaWeblog\bin\Debug\CookComputing.XmlRpcV2.dll C:\Users\Exitos\Desktop\FunnelWeb-2.0.2.572-source\src\FunnelWeb.Web\bin\Extensions\ /Y与代码4. FunnelWeb.Extensions.MetaWeblog一起退出
我不知道$(TargetPath)和$(SolutionDir)是在哪里设置的,为什么会发生这个错误?
发布于 2011-10-31 18:42:05
在这里可以找到x拷贝退出代码:http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/xcopy.mspx?mfr=true
我怀疑问题是,你需要双引号围绕你的路径:
xcopy "$(TargetPath)" "$(SolutionDir)FunnelWeb.Web\bin\Extensions" /Y因为你的路里有空位。
当您打开一个.sln时,$(SolutionDir)是它来自的目录。如果要更改它,请移动.sln文件的根文件夹。
希望能帮上忙。
https://stackoverflow.com/questions/7958113
复制相似问题