【问题标题】:What does this funnelweb command mean in visual studio? and why did it exit with 4?这个 funnelweb 命令在 Visual Studio 中是什么意思?为什么它以 4 退出?
【发布时间】:2011-12-18 23:26:24
【问题描述】:

在构建后事件命令行的 Visual Studio 中,我有以下内容:

 xcopy $(TargetPath) $(SolutionDir)FunnelWeb.Web\bin\Extensions\ /Y

及其产生的错误:

Error 1   The command "xcopy C:\Users\Exitos\Desktop\FunnelWeb-2.0.2.572-source\src\FunnelWeb.Extensions.MetaWeblog\bin\Debug\FunnelWeb.Extensions.MetaWeblog.dll

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) 的设置位置感到困惑,为什么会发生这个错误?

【问题讨论】:

    标签: c# visual-studio-2010 model-view-controller funnelweb


    【解决方案1】:

    xcopy 退出代码可以在这里找到: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 文件的根文件夹。

    希望对你有帮助。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2023-04-06
      • 1970-01-01
      • 2013-06-15
      • 2023-03-11
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多