簡體   English   中英

這個funnelweb命令在Visual Studio中是什么意思? 為什么它以4退出?

[英]What does this funnelweb command mean in visual studio? and why did it exit with 4?

在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)的設置位置感到困惑,為什么會發生此錯誤?

可在此處找到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文件的根文件夾。

希望能幫助到你。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM