11

Đột nhiên từ hôm qua (31 tháng 8 năm 2015) Tôi đã gặp lỗi trên Visual Studio Online xây dựng máy chủ khi chạy tích hợp liên tục xây dựng. Lỗi này xảy ra trong bước xây dựng cho dự án DNX tôi (Build Foo.Api.xproj) với nội dung sau:Lỗi trong khi xây dựng VSO ASP.NET5 CI - "Dự án của bạn sử dụng phiên bản khác của trình biên dịch TypeScript" nhưng tôi không sử dụng TypeScript

Lỗi: tập tin dự án của bạn sử dụng một phiên bản khác của nguyên cảo trình biên dịch và các công cụ hơn là hiện được cài đặt trên máy này. Không tìm thấy trình biên dịch tại C: \ Program Files (x86) \ Microsoft SDKs \ TypeScript \ 1.4 \ 1.4 \ tsc.exe. Bạn có thể khắc phục sự cố này bằng cách thay đổi phần tử trong tệp dự án của bạn.

Vấn đề là, tôi không sử dụng TypeScript trong dự án và tất cả đều không bật lên. Tôi đã kiểm tra với các đồng nghiệp của mình và có vẻ như họ đang gặp phải các lỗi tương tự về các tích hợp liên tục của họ, bao gồm cả một dự án không có thay đổi gì cả.

Điều này khiến tôi tin rằng đó là vấn đề với máy chủ xây dựng của VSO, có lẽ là bản nâng cấp. Có ai biết điều gì đang diễn ra ở đây và cách khắc phục nó không?

Để cung cấp một số bối cảnh, đây là toàn bộ sản lượng trên việc xây dựng giao diện điều khiển cho bước này:

Executing the powershell script: C:\LR\MMS\Services\Mms\TaskAgentProvisioner\Tools\tasks\VSBuild\1.0.13\VSBuild.ps1 
C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe "C:\a\12345678\Root\src\Foo.Api\Foo.Api.xproj" /nologo /m /nr:false /fl /flp:"logfile=C:\a\12345678\Root\src\Foo.Api\Foo.Api.xproj.log" /dl:CentralLogger,"C:\LR\MMS\Services\Mms\TaskAgentProvisioner\Tools\agent\worker\Microsoft.TeamFoundation.DistributedTask.MSBuild.Logger.dll"*ForwardingLogger,"C:\LR\MMS\Services\Mms\TaskAgentProvisioner\Tools\agent\worker\Microsoft.TeamFoundation.DistributedTask.MSBuild.Logger.dll" /t:Build,FileSystemPublish /p:PublishConfiguration=Release /p:PublishOutputPathNoTrailingSlash=C:\a\12345678\staging/Foo.Api /p:platform="any cpu" /p:configuration="Release" /p:VisualStudioVersion="14.0" 
Build started 9/1/2015 6:36:28 AM. 
The target "AfterGenerateAppxManifest" listed in an AfterTargets attribute at "C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\Microsoft.Net.CoreRuntime.targets (68,11)" does not exist in the project, and will be ignored. 
The target "_GeneratePrisForPortableLibraries" listed in a BeforeTargets attribute at "C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\Microsoft.Net.CoreRuntime.targets (177,11)" does not exist in the project, and will be ignored. 
The target "AfterGenerateAppxManifest" listed in an AfterTargets attribute at "C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\Microsoft.NetNative.targets (126,11)" does not exist in the project, and will be ignored. 
The target "AfterGenerateAppxManifest" listed in an AfterTargets attribute at "C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\Microsoft.NetNative.targets (174,11)" does not exist in the project, and will be ignored. 
The target "BeforeGenerateProjectPriFile" listed in a BeforeTargets attribute at "C:\Program Files (x86)\MSBuild\Microsoft\NuGet\Microsoft.NuGet.targets (149,61)" does not exist in the project, and will be ignored. 
    1>Project "C:\a\12345678\Root\src\Foo.Api\Foo.Api.xproj" on node 1 (Build;FileSystemPublish target(s)). 
    1>PrepareForBuild: 
     Creating directory "..\artifacts\bin\Foo.Api\". 
     Creating directory "..\artifacts\obj\Foo.Api\any cpu\Release\". 
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. 
    1>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. [C:\a\12345678\Root\src\Foo.Api\Foo.Api.xproj] 
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. 
    1>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. [C:\a\12345678\Root\src\Foo.Api\Foo.Api.xproj] 
    1>Done Building Project "C:\a\12345678\Root\src\Foo.Api\Foo.Api.xproj" (Build;FileSystemPublish target(s)) -- FAILED. 
Build FAILED. 
     "C:\a\12345678\Root\src\Foo.Api\Foo.Api.xproj" (Build;FileSystemPublish target) (1) -> 
     (PreComputeCompileTypeScript target) -> 
     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. [C:\a\12345678\Root\src\Foo.Api\Foo.Api.xproj] 
     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. [C:\a\12345678\Root\src\Foo.Api\Foo.Api.xproj] 
    0 Warning(s) 
    2 Error(s) 
Time Elapsed 00:00:01.81 
+2

Ngoài ra còn có một báo cáo vấn đề về Github về điều này, nó nói rằng nó đã bị đóng, nhưng ai đó nhận xét hôm nay nói rằng họ đang phù hợp với các triệu chứng này: https://github.com/Microsoft/TypeScript/issues/3493 – Ivan

+2

Chúng tôi xin lỗi vì sự bất tiện này. Chúng tôi đã triển khai bản cập nhật hình ảnh đã giải quyết một vấn đề khác và đồng thời hoàn nguyên bản hack mà chúng tôi đã đưa ra để giải quyết vấn đề về loại này. Chúng tôi đã chuẩn bị một hình ảnh mới và sẽ sớm bắt đầu phát hành hình ảnh đó. –

Trả lời

2

Chúng tôi đang tung ra một bản cập nhật để chế độ VSO xây dựng hình ảnh bây giờ.

Vấn đề là do thứ tự cài đặt VS và cập nhật TS. Đây là vấn đề gốc: https://github.com/Microsoft/TypeScript/issues/3493#issuecomment-136722977

+0

Bản dựng của tôi đang hoạt động trở lại, cảm ơn Bryan! –

+0

Cảm ơn @bryanmac, các bản dựng của tôi cũng đang được thực hiện. Đánh giá cao phản ứng nhanh của bạn! – Ivan

4

Có một workaround cho điều này được đăng trên MSDN (link bên dưới). Nó làm việc cho tôi! Về cơ bản, bạn thêm dòng sau vào các luận cứ phần MSBuild định nghĩa xây dựng của bạn:

/p:TscToolExe="..\tsc.exe" 

vì vậy bây giờ định nghĩa xây dựng của tôi trông như thế này:

"Build" tab of build definition for "Visual Studio Build" step

Tôi cũng mở ra một vấn đề mới trên GitHub, nhưng tôi đã nhận được một phản ứng rằng nó không phải là một vấn đề với TypeScript mà là một vấn đề với Visual Studio Online, và rằng đội VSO là nhận thức và làm việc trên một sửa chữa. Hi vọng điêu nay co ich!

tham khảo như đã hứa: https://social.msdn.microsoft.com/Forums/en-US/c6443c18-23d7-4bd2-a0f9-1fa558f18d22/typescript-build-failing-for-visual-studio-online-hosted-build-controller-due-to-typescript?forum=TFService

+0

Cảm ơn @koppinjo ... đội VSO quá nhanh và tôi đã không có cơ hội để kiểm tra điều này (đang ngủ ... UTC + 2 ở đây) nhưng +1 cho điều này !! – Ivan

Các vấn đề liên quan