gpt4 book ai didi

azure - Visual Studio TypeScript 设置部署失败

转载 作者:搜寻专家 更新时间:2023-10-30 20:56:42 25 4
gpt4 key购买 nike

遵循 here 上的说明后为了在 Visual Studio 2012 上启用 TypeScript 支持,我开始在 Azure 部署中遇到以下异常。

这有什么问题吗?

Command: C:\DWASFiles\Sites\apolyon\VirtualDirectory0\site\deployments\tools\deploy.cmd Handling .NET Web Application deployment. C:\DWASFiles\Sites\apolyon\VirtualDirectory0\site\repository\ApolyonRadio\ApolyonRadio.csproj(771,3): error MSB4019: The imported project "D:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\TypeScript\Microsoft.TypeScript.targets" was not found. Confirm that the path in the declaration is correct, and that the file exists on disk. An error has occurred during web site deployment. Handling .NET Web Application deployment. C:\DWASFiles\Sites\apolyon\VirtualDirectory0\site\repository\ApolyonRadio\ApolyonRadio.csproj(771,3): error MSB4019: The imported project "D:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\TypeScript\Microsoft.TypeScript.targets" was not found. Confirm that the path in the declaration is correct, and that the file exists on disk. An error has occurred during web site deployment. D:\kuduservice\wwwroot\bin\scripts\starter.cmd C:\DWASFiles\Sites\apolyon\VirtualDirectory0\site\deployments\tools\deploy.cmd

最佳答案

正如我在 Freshblood 的回答中提到的,有一个更通用的解决方案:

<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersio‌​n)\TypeScript\Microsoft.TypeScript.targets" Condition="Exists('$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualSt‌​udioVersion)\TypeScript\Microsoft.TypeScript.targets')" />

关于azure - Visual Studio TypeScript 设置部署失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18667207/

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