部署打字稿网页从GitHub天青 [英] Deploy TypeScript WebSite from GitHub to Azure

查看:212
本文介绍了部署打字稿网页从GitHub天青的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个.NET网站,其中包括一些打字稿文件。我试图将其部署为来自GitHub的一个Azure的网站,但我越来越有打字稿相关联的错误。

I have a .NET website which includes some TypeScript files. I'm attempting to deploy it as an Azure website from GitHub, but I'm getting an error associated with TypeScript.

在我看来,这可能与我使用的最新版本(1.0),而捻建设只有0.9 - 但我是新足这一点,我不能肯定这是个问题,也没有如何解决它。

It appears to me that it may be related to my use of the newest version (1.0) whereas the kudu build only has 0.9 - but I'm new enough to this that I can't be sure that's the issue, nor how to fix it.

下面是部署日志(约格式化不好意思):

Here is the deployment log (sorry about the formatting):

命令:D:\\家\\网站\\部署\\ TOOLS \\ deploy.cmd
处理.NET Web应用程序的部署。
在packages.config列出的所有包都已经安装。
  恢复的NuGet包...
  以prevent的NuGet从下载包生成过程中,打开Visual Studio的选项对话框中,单击程序包管理节点上,取消选中允许的NuGet下载缺失的软件包。
  在packages.config列出的所有包都已经安装。
  Shadow_findly - > D:\\家\\网站\\库\\ Shadow_findly \\ BIN \\发布\\ Shadow_findly.dll
D:\\ Program Files文件(x86)的\\的MSBuild \\微软\\ VisualStudio的\\ 12.0 \\打字稿\\ Microsoft.TypeScript.targets(96,5):错误:您的项目文件使用不同版本的打字稿编译器和工具比目前本机上安装。没有编译器被发现在D:\\ Program Files文件(x86)的\\微软的SDK \\打字稿\\ 1.0 \\ tsc.exe。您可以通过在项目文件更改元素来解决这个问题。 [D:\\家\\网站\\库\\ HiveAdmin \\ TheHive.Admin.csproj]
D:\\ Program Files文件(x86)的\\的MSBuild \\微软\\ VisualStudio的\\ 12.0 \\打字稿\\ Microsoft.TypeScript.targets(96,5):错误MSB6004:指定的任务可执行文件的路径D:\\ Program Files文件(x86)的\\微软的SDK \\打字稿\\ 1.0 \\ tsc.exe是无效的。 [D:\\家\\网站\\库\\ HiveAdmin \\ TheHive.Admin.csproj]
失败退出code = 1,命令=D:\\ WINDOWS \\ Microsoft.NET \\框架\\ v4.0.30319 \\ MSBuild.exeD:\\家\\网站\\库\\ HiveAdmin \\ TheHive.Admin.csproj/ NOLOGO /冗长:M / T:编译/吨:管道preDeployCopyAllFilesToOneFolder /p:_PackageTempDir=\"C:\\DWASFiles\\Sites\\thehiveadmin\\Temp\\cab5b42e-19e1-435e-ae3a-b780b7bb6400\";AutoParameterizationWebConfigConnectionStrings=false;Configuration=Release / P:SolutionDir =D:\\家\\网站\\库\\。
网站在部署过程中出现了错误。
处理.NET Web应用程序的部署。
在packages.config列出的所有包都已经安装。
  恢复的NuGet包...
  以prevent的NuGet从下载包生成过程中,打开Visual Studio的选项对话框中,单击程序包管理节点上,取消选中允许的NuGet下载缺失的软件包。
  在packages.config列出的所有包都已经安装。
  Shadow_findly - > D:\\家\\网站\\库\\ Shadow_findly \\ BIN \\发布\\ Shadow_findly.dll
D:\\ Program Files文件(x86)的\\的MSBuild \\微软\\ VisualStudio的\\ 12.0 \\打字稿\\ Microsoft.TypeScript.targets(96,5):错误:您的项目文件使用不同版本的打字稿编译器和工具比目前本机上安装。没有编译器被发现在D:\\ Program Files文件(x86)的\\微软的SDK \\打字稿\\ 1.0 \\ tsc.exe。您可以通过在项目文件更改元素来解决这个问题。 [D:\\家\\网站\\库\\ HiveAdmin \\ TheHive.Admin.csproj]
D:\\ Program Files文件(x86)的\\的MSBuild \\微软\\ VisualStudio的\\ 12.0 \\打字稿\\ Microsoft.TypeScript.targets(96,5):错误MSB6004:指定的任务可执行文件的路径D:\\ Program Files文件(x86)的\\微软的SDK \\打字稿\\ 1.0 \\ tsc.exe是无效的。 [D:\\家\\网站\\库\\ HiveAdmin \\ TheHive.Admin.csproj]
失败退出code = 1,命令=D:\\ WINDOWS \\ Microsoft.NET \\框架\\ v4.0.30319 \\ MSBuild.exeD:\\家\\网站\\库\\ HiveAdmin \\ TheHive.Admin.csproj/ NOLOGO /冗长:M / T:编译/吨:管道preDeployCopyAllFilesToOneFolder /p:_PackageTempDir=\"C:\\DWASFiles\\Sites\\thehiveadmin\\Temp\\cab5b42e-19e1-435e-ae3a-b780b7bb6400\";AutoParameterizationWebConfigConnectionStrings=false;Configuration=Release / P:SolutionDir =D:\\家\\网站\\库\\。
网站在部署过程中出现了错误。
D:\\ Program Files文件(x86)的\\ SiteExtensions \\捻\\ 1.26.30329.722 \\ BIN \\脚本\\ starter.cmd D:\\家\\网站\\部署\\工具\\ deploy.cmd

Command: D:\home\site\deployments\tools\deploy.cmd Handling .NET Web Application deployment. All packages listed in packages.config are already installed. Restoring NuGet packages... To prevent NuGet from downloading packages during build, open the Visual Studio Options dialog, click on the Package Manager node and uncheck 'Allow NuGet to download missing packages'. All packages listed in packages.config are already installed. 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): 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 D:\Program Files (x86)\Microsoft SDKs\TypeScript\1.0\tsc.exe. You may be able to fix this problem by changing the element in your project file. [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" is invalid. [D:\home\site\repository\HiveAdmin\TheHive.Admin.csproj] Failed 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.\" An error has occurred during web site deployment. Handling .NET Web Application deployment. All packages listed in packages.config are already installed. Restoring NuGet packages... To prevent NuGet from downloading packages during build, open the Visual Studio Options dialog, click on the Package Manager node and uncheck 'Allow NuGet to download missing packages'. All packages listed in packages.config are already installed. 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): 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 D:\Program Files (x86)\Microsoft SDKs\TypeScript\1.0\tsc.exe. You may be able to fix this problem by changing the element in your project file. [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" is invalid. [D:\home\site\repository\HiveAdmin\TheHive.Admin.csproj] Failed 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.\" An error has occurred during web site deployment. D:\Program Files (x86)\SiteExtensions\Kudu\1.26.30329.722\bin\scripts\starter.cmd D:\home\site\deployments\tools\deploy.cmd

任何想法如何解决这一问题?

Any ideas how to fix this?

推荐答案

错误消息的相关部分为

您的项目文件使用不同版本的打字稿编译器和工具比目前这台机器上安装的。没有编译器被发现在D:\\ Program Files文件(x86)的\\微软的SDK \\打字稿\\ 1.0 \\ tsc.exe。您可以通过在项目文件更改元素来解决这个问题。

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 D:\Program Files (x86)\Microsoft SDKs\TypeScript\1.0\tsc.exe. You may be able to fix this problem by changing the element in your project file.

有在像这样的项目文件的标记:

There's a tag in your project file like this:

    <TypeScriptToolsVersion>1.0</TypeScriptToolsVersion>

您将需要作出构建这个值条件环境,如果你有你的编译系统对0.9和某些部件上的一些1.0。

You'll need to make this value conditional on the build environment if you have some parts of your build system on 0.9 and some on 1.0.

这篇关于部署打字稿网页从GitHub天青的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆