2016-08-17 230 views
2

enter image description here建立zhcon失敗的TFS

錯誤:

C:\LR\MMS\Services\Mms\TaskAgentProvisioner\Tools\agents\1.103.2\agent\Worker\Tools\nuget.exe failed with return code: 1 Packages failed to install Return code: 1 Delivery_Analytics\Delivery_Analytics\Delivery_Analytics.csproj (0, 0) Cannot resolve Assembly or Windows Metadata file 'System.Runtime.Handles.dll' C:\Program Files (x86)\MSBuild\Microsoft\WindowsXaml\v14.0\8.2\Microsoft.Windows.UI.Xaml.Common.targets (264, 5)
Type universe cannot resolve assembly: System.Runtime.Handles, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a.

Process 'msbuild.exe' exited with code '1' 2016-08-16T12:16:14.5082366Z System.Security.Cryptography.Cng 4.2.0 is not compatible with UAP,Version=v10.0 (win10-x64-aot). 2016-08-16T12:16:14.5082366Z System.Security.Cryptography.Encoding 4.0.0 is not compatible with UAP,Version=v10.0 (win10-x64-aot). 2016-08-16T12:16:14.5092363Z System.Security.Cryptography.Primitives 4.0.0 is not compatible with UAP,Version=v10.0 (win10-x64-aot). 2016-08-16T12:16:14.5092363Z System.Collections.NonGeneric 4.0.1 is not compatible with UAP,Version=v10.0 (win10-x64-aot). 2016-08-16T12:16:14.5092363Z System.Collections.Specialized 4.0.1 is not compatible with UAP,Version=v10.0 (win10-x64-aot). 2016-08-16T12:16:14.5102364Z System.Private.Uri 4.0.1 is not compatible with UAP,Version=v10.0 (win10-x64-aot). 2016-08-16T12:16:14.5102364Z System.Net.Requests 4.0.11 provides a compile-time reference assembly for System.Net.Requests on UAP,Version=v10.0, but there is no run-time assembly compatible with win10-x64-aot. 2016-08-16T12:16:14.5112357Z System.Runtime.WindowsRuntime.UI.Xaml 4.0.1 provides a compile-time reference assembly for System.Runtime.WindowsRuntime.UI.Xaml on UAP,Version=v10.0, but there is no run-time assembly compatible with win10-x64-aot. 2016-08-16T12:16:14.5112357Z System.IO.Compression 4.1.1 provides a compile-time reference assembly for System.IO.Compression on UAP,Version=v10.0, but there is no run-time assembly compatible with win10-x64-aot. 2016-08-16T12:16:14.5412349Z Generating MSBuild file Delivery_Analytics.nuget. targets. 2016-08-16T12:16:14.5432359Z Generating MSBuild file Delivery_Analytics.nuget. props. 2016-08-16T12:16:14.5712346Z ##[debug]rc:1 2016-08-16T12:16:14.5722353Z ##[debug]success:false 2016-08-16T12:16:14.5812337Z ##[error]Error: C:\LR\MMS\Services\Mms\TaskAgentProvisioner\Tools\agents\1.104.1\ agent\ Worker\ Tools\nuget.exe failed with return code: 1 2016-08-16T12:16:14.5812337Z ##[error]Packages failed to install 2016-08-16T12:16:14.5822348Z ##[debug]task result: Failed 2016-08-16T12:16:14.5822348Z ##[error]Return code: 1

+0

基於我在主機代理上構建新的UWP應用程序的測試,它失敗了,但在更改UWP應用程序的目標和最小版本後,它工作正常。 (目標版本:Windows 10(10.0;內部版本10586),最低版本:Windows 10(10.0;內部版本10240),因此請更改這些版本並重試 –

+0

我將更改目標版本(Windows 10(10.0; Build 10586)版本(Windows 10(10.0; Build 10240)),但同樣的錯誤已被收回 – sekhar

+0

您是否建立託管代理?是否與新的UWP應用程序有相同的問題?在OneDrive上分享 –

回答

1

根據我的測試,改變Microsoft.NetCore.UniversalWindowsPlatform依賴版本5.1.0,然後正常工作。根據此線程https://github.com/dotnet/coreclr/issues/3520,5.2.0預發佈,並且尚不支持被UWP應用程序使用。