2015-12-05 29 views
9

更新到VS 2015 Update 1(包括Typescript 1.7)和Azure SDK 2.8後,我無法打包Azure應用程序以進行部署,因爲打包程序試圖將js輸出文件複製到:錯誤在打包Azure項目時複製打字稿文件 - Visual Studio 2015 Update1

錯誤無法將文件「D:\ X \ XX \ XXX \ App \ services \ editor \ ruler-manager.js」複製到「D: \ X \ XX \ XXX \ OBJ \調試\ PE.Web \ d:\ X \ XX \ XXX \軟件\服務\編輯\尺子manager.js」。給定路徑的格式不受支持。 PE.Architecture C:\ Program Files文件(x86)的\的MSBuild \微軟\ VisualStudio的\ v14.0 \的Windows Azure工具\ 2.8 \ Microsoft.WindowsAzure.targets 2787

注意,在目錄已包含了兩次,引起輸出路徑中間的非法冒號。

這很可能這是關係到TFS Build error after installing Visual Studio 2015 Update 1https://social.msdn.microsoft.com/Forums/en-US/300a59bc-0f23-41a4-927a-05ae9978f3a4/unable-to-build-project-with-tyepscript-since-upgrading-to-vs-2015-update-1?forum=msbuild&prof=requiredhttps://github.com/Microsoft/TypeScript/issues/5894

更新: 以下解決方法已經被提出,但我們仍然無法實現它之後公佈:

我們通過在Microsoft.WindowsAzure.targets中CopyWebRoleFiles目標內的Copy任務手動添加ContinueOnError =「WarnAndContinue」來解決此問題。

(來源:https://github.com/Microsoft/TypeScript/issues/5894#issuecomment-162261090

沒有人有比聯線建議以外任何解決方法或修復?

+0

我打這個問題了。同樣的情況:使用VS 2015 Update 1的TypeScript嘗試發佈到Azure Cloud Service。 VS說,「給定路徑的格式不被支持。」而且,像父母的海報一樣,它顯示的目錄包含兩次,導致路徑中間出現非法冒號。 –

+1

在GitHub上https://github.com/Microsoft/TypeScript/issues/5894#issuecomment-162261090上提出了一種解決方法,但在嘗試之後我們沒有看到錯誤發生任何更改。 – JcFx

回答