这个 funnelweb 命令在 Visual Studio 中意味着什么?为什么退出时是 4?

发布于 2024-12-13 03:05:58 字数 791 浏览 2 评论 0原文

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

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

及其创建错误:

错误 1 ​​命令“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) 的设置位置感到困惑,以及为什么会发生此错误?

In visual studio on the post build event command line I have the following:

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

and its creating the error:

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" exited with code 4. FunnelWeb.Extensions.MetaWeblog

Im confused as to where the $(TargetPath) and $(SolutionDir) are set, and why this error happened?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

绻影浮沉 2024-12-20 03:05:58

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 文件的根文件夹。

希望有帮助。

xcopy exit codes can be found here: http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/xcopy.mspx?mfr=true

I suspect the problem is that you need double quotes around your paths:

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

Becouse of spaces inside your path.

When you open a .sln, $(SolutionDir) is the directory where it came from. If you
want to change it, move the root folder for your .sln file.

Hope it helps.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文