Error Copying Typescript files when packaging Azure project - Visual Studio 2015 Update1

雨燕双飞 提交于 2020-01-01 08:57:29

问题


After updating to VS 2015 Update 1 (including Typescript 1.7) and the Azure SDK 2.8, I am unable to package my Azure application for deployment because of an error in the path the packager is trying to copy the js output file to:

Error Unable to copy file "D:\X\XX\XXX\App\services\editor\ruler-manager.js" to "D:\X\XX\XXX\obj\Debug\PE.Web\D:\X\XX\XXX\App\services\editor\ruler-manager.js". The given path's format is not supported. PE.Architecture C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\Windows Azure Tools\2.8\Microsoft.WindowsAzure.targets 2787

Note that the directory has been included twice, causing an illegal colon in the middle of the output path.

It seems likely this is related to TFS Build error after installing Visual Studio 2015 Update 1 and https://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=required and https://github.com/Microsoft/TypeScript/issues/5894

Update: The following workaround has been suggested, but we were still unable to publish after implementing it:

We worked around it by manually adding ContinueOnError="WarnAndContinue" to the Copy task within the CopyWebRoleFiles target, within Microsoft.WindowsAzure.targets.

(Source: https://github.com/Microsoft/TypeScript/issues/5894#issuecomment-162261090)

Does anyone have any workarounds or fixes other than the ones suggested in the linked threads?


回答1:


This was a bug in the Typescript 1.7 tooling. Fixes have been released:

For VS 2015 (TS 1.7.6)

For VS 2013 (TS 1.7.5)

Details here: https://github.com/Microsoft/TypeScript/issues/5894#issuecomment-163798025



来源:https://stackoverflow.com/questions/34100740/error-copying-typescript-files-when-packaging-azure-project-visual-studio-2015

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!