gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-03 01:53:06 25 4
gpt4 key购买 nike

我一直在使用 TypeScript 1.4 和 VS2013 Update 4 开发一个通过 CD 部署到 Windows Azure 的项目。

直到昨天为止都运行得很顺利,但是今天我收到以下错误,该错误似乎与 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.

我尝试删除 <TypeScriptToolsVersion>1.4</TypeScriptToolsVersion>在我的 .csproj 文件中添加一行并将其更新到 1.5,以防 azure 服务器已更新到新的测试版,但这似乎没有帮助。

目前还有其他人看到这个问题吗?自上次成功构建以来,我没有对项目或 Azure 配置进行任何更改。

最佳答案

已将此问题报告给 VS 在线服务交付团队,他们正在努力修复。

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

上面还链接到一个 msdn 论坛主题,同时描述了一些不同的解决方法。

关于azure - 将 TypeScript 部署到 Azure - 您的项目文件使用不同版本的 TypeScript 编译器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31719678/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com