【发布时间】:2014-04-22 16:39:53
【问题描述】:
我有一个 .NET 网站,其中包含一些 TypeScript 文件。我正在尝试从 GitHub 将其部署为 Azure 网站,但遇到与 TypeScript 相关的错误。
在我看来,这可能与我使用最新版本 (1.0) 有关,而 kudu 版本只有 0.9 - 但我对此足够新,我不能确定这是问题所在,也不是如何解决它。
这是部署日志(抱歉格式化):
命令:D:\home\site\deployments\tools\deploy.cmd 处理 .NET Web 应用程序部署。 packages.config 中列出的所有软件包都已安装。 正在恢复 NuGet 包... 要防止 NuGet 在构建期间下载包,请打开 Visual Studio 选项对话框,单击包管理器节点并取消选中“允许 NuGet 下载丢失的包”。 packages.config 中列出的所有软件包都已安装。 Shadow_findly -> D:\home\site\repository\Shadow_findly\bin\Release\Shadow_findly.dll D:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\TypeScript\Microsoft.TypeScript.targets(96,5):错误:您的项目文件使用的 TypeScript 编译器和工具版本与当前版本不同安装在这台机器上。在 D:\Program Files (x86)\Microsoft SDKs\TypeScript\1.0\tsc.exe 中未找到编译器。您可以通过更改项目文件中的元素来解决此问题。 [D:\home\site\repository\HiveAdmin\TheHive.Admin.csproj] D:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\TypeScript\Microsoft.TypeScript.targets(96,5): error MSB6004: The specified task executable location "D:\Program Files (x86)\ Microsoft SDKs\TypeScript\1.0\tsc.exe”无效。 [D:\home\site\repository\HiveAdmin\TheHive.Admin.csproj] 失败 exitCode=1, command="D:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe" "D:\home\site\repository\HiveAdmin\TheHive.Admin.csproj" /nologo /verbosity: m /t:Build /t:pipelinePreDeployCopyAllFilesToOneFolder /p:_PackageTempDir="C:\DWASFiles\Sites\thehiveadmin\Temp\cab5b42e-19e1-435e-ae3a-b780b7bb6400";AutoParameterizationWebConfigConnectionStrings=false;Configuration=Release /p:SolutionDir=" D:\home\site\repository.\" 网站部署过程中发生错误。 处理 .NET Web 应用程序部署。 packages.config 中列出的所有软件包都已安装。 正在恢复 NuGet 包... 要防止 NuGet 在构建期间下载包,请打开 Visual Studio 选项对话框,单击包管理器节点并取消选中“允许 NuGet 下载丢失的包”。 packages.config 中列出的所有软件包都已安装。 Shadow_findly -> D:\home\site\repository\Shadow_findly\bin\Release\Shadow_findly.dll D:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\TypeScript\Microsoft.TypeScript.targets(96,5):错误:您的项目文件使用的 TypeScript 编译器和工具版本与当前版本不同安装在这台机器上。在 D:\Program Files (x86)\Microsoft SDKs\TypeScript\1.0\tsc.exe 中未找到编译器。您可以通过更改项目文件中的元素来解决此问题。 [D:\home\site\repository\HiveAdmin\TheHive.Admin.csproj] D:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\TypeScript\Microsoft.TypeScript.targets(96,5): error MSB6004: The specified task executable location "D:\Program Files (x86)\ Microsoft SDKs\TypeScript\1.0\tsc.exe”无效。 [D:\home\site\repository\HiveAdmin\TheHive.Admin.csproj] 失败 exitCode=1, command="D:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe" "D:\home\site\repository\HiveAdmin\TheHive.Admin.csproj" /nologo /verbosity: m /t:Build /t:pipelinePreDeployCopyAllFilesToOneFolder /p:_PackageTempDir="C:\DWASFiles\Sites\thehiveadmin\Temp\cab5b42e-19e1-435e-ae3a-b780b7bb6400";AutoParameterizationWebConfigConnectionStrings=false;Configuration=Release /p:SolutionDir=" D:\home\site\repository.\" 网站部署过程中发生错误。 D:\Program Files (x86)\SiteExtensions\Kudu\1.26.30329.722\bin\scripts\starter.cmd D:\home\site\deployments\tools\deploy.cmd
任何想法如何解决这个问题?
【问题讨论】:
标签: azure typescript