简体   繁体   English

将TypeScript部署到Azure-您的项目文件使用不同版本的TypeScript编译器

[英]Deploying TypeScript to Azure - Your project file uses a different version of the TypeScript compiler

I've been working with TypeScript 1.4 and VS2013 Update 4 on a project which deploys via CD to Windows Azure. 我一直在通过CD部署到Windows Azure的项目上使用TypeScript 1.4和VS2013 Update 4。

This was working happily up til yesterday, but today I'm getting the following error which seem to relate to the version of TypeScript tools on the Azure build server: 直到昨天这一直很愉快,但是今天我收到以下错误,该错误似乎与Azure构建服务器上的TypeScript工具的版本有关:

 4>C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\TypeScript\Microsoft.TypeScript.targets(103,5): error : Your project file uses a different version of the TypeScript compiler and tools than is currently installed on this machine.  No compiler was found at C:\Program Files (x86)\Microsoft SDKs\TypeScript\1.4\1.4\tsc.exe.  You may be able to fix this problem by changing the <TypeScriptToolsVersion> element in your project file. [d:\a\src\MyProject\MyProject.Web\MyProject.Web.csproj]
 4>C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\TypeScript\Microsoft.TypeScript.targets(103,5): error MSB6004: The specified task executable location "C:\Program Files (x86)\Microsoft SDKs\TypeScript\1.4\1.4\tsc.exe" is invalid. [d:\a\src\MyProject\MyProject.Web\MyProject.Web.csproj]
 4>Done Building Project "d:\a\src\MyProject\MyProject.Web\MyProject.Web.csproj" (default targets) -- FAILED.

I've tried removing the <TypeScriptToolsVersion>1.4</TypeScriptToolsVersion> Line in my .csproj file and updating it to 1.5 in case the azure servers have updated to the new beta, but this doesn't seem to have helped. 我尝试删除.csproj文件中的<TypeScriptToolsVersion>1.4</TypeScriptToolsVersion>行,并将其更新为1.5,以防azure服务器已更新到新的beta,但这似乎没有帮助。

Is anyone else seeing this issue at the moment? 目前还有其他人看到此问题吗? I've not changed anything on my project or Azure config since my last successful build. 自上次成功构建以来,我尚未在项目或Azure配置上进行任何更改。

It has been reported to the VS Online Service Delivery Team and they are working on a fix. 已将其报告给VS Online Service Delivery Team,他们正在努力进行修复。

http://blogs.msdn.com/b/vsoservice/archive/2015/07/27/type-script-issues-with-visual-studio-online-build-controllers-7-27-investigating.aspx http://blogs.msdn.com/b/vsoservice/archive/2015/07/27/type-script-issues-with-visual-studio-online-build-controllers-7-27-investigating.aspx

The above also links to an msdn forum thread describing a few different workarounds in the meantime. 上面的内容还链接到msdn论坛线程,该线程描述了与此同时的几种不同的解决方法。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM