建置後事件命令以返回碼 255 結束

參照:http://stackoverflow.com/questions/4850421/vs-2010-build-on-32bit-and-64-bit-program-files?answertab=votes#tab-top

image

for /f "tokens=2,*" %a in (‘reg query "HKLM\Software\Microsoft\Microsoft SDKs\Windows\v7.0a" /v InstallationFolder ^| findstr InstallationFolder’) do "%b\bin\gacutil.exe" -if "$(TargetPath)"

結果始終回傳:

錯誤    16    "for /f "tokens=2,*" %a in (‘reg query "HKLM\Software\Microsoft\Microsoft SDKs\Windows\v7.0a" /v InstallationFolder ^| findstr InstallationFolder’) do "%b\bin\gacutil.exe" -if "C:\Xecho\Develop\MentorTrust.Xecho.Web\MentorTrust.Xecho.Web.Identity\bin\Debug\MentorTrust.Xecho.Web.Identity.dll"" 命令以返回碼 255 結束。    MentorTrust.Xecho.Web.Identity

實際 Copy 指令 for /f "tokens=2,*" %a in (‘reg query "HKLM\Software\Microsoft\Microsoft SDKs\Windows\v7.0a" /v InstallationFolder ^| findstr InstallationFolder’) do "%b\bin\gacutil.exe" -if "C:\Xecho\Develop\MentorTrust.Xecho.Web\MentorTrust.Xecho.Web.Identity\bin\Debug\MentorTrust.Xecho.Web.Identity.dll" 在 Console 執行是 OK 的…

這份說明似乎沒有幫助:http://stackoverflow.com/questions/3919528/post-build-script-returning-errorlevel-255

抱憾過中秋了…傷心

發表迴響

在下方填入你的資料或按右方圖示以社群網站登入:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / 變更 )

Twitter picture

You are commenting using your Twitter account. Log Out / 變更 )

Facebook照片

You are commenting using your Facebook account. Log Out / 變更 )

Google+ photo

You are commenting using your Google+ account. Log Out / 變更 )

連結到 %s

%d 位部落客按了讚: