2016-08-17 171 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应用程序使用。