2015-10-20 183 views
0

我想使用Nuget將ServiceStack(https://servicestack.net/)安裝到Visual Studio 2015 C#Umbraco UCommerce Web解決方案中,並且出現以下錯誤。任何幫助理解或解決,這將不勝感激使用Nuget將ServiceStack安裝到Visual Studio 2015解決方案時出錯

感謝

特里·克蘭西

ClanceZ

Attempting to gather dependencies information for package 'ServiceStack.4.0.46' with respect to project 'TeraTastic03', targeting '.NETFramework,Version=v4.6' 
Attempting to resolve dependencies for package 'ServiceStack.4.0.46' with DependencyBehavior 'Lowest' 
Resolving actions to install package 'ServiceStack.4.0.46' 
Resolved actions to install package 'ServiceStack.4.0.46' 
Adding package 'ServiceStack.Interfaces.4.0.46' to folder 'C:\Clancy\A_TeraTastic\Dev\TeraTastic03\packages' 
Added package 'ServiceStack.Interfaces.4.0.46' to folder 'C:\Clancy\A_TeraTastic\Dev\TeraTastic03\packages' 
Added package 'ServiceStack.Interfaces.4.0.46' to 'packages.config' 
Successfully installed 'ServiceStack.Interfaces 4.0.46' to TeraTastic03 
Adding package 'ServiceStack.Text.4.0.46' to folder 'C:\Clancy\A_TeraTastic\Dev\TeraTastic03\packages' 
Added package 'ServiceStack.Text.4.0.46' to folder 'C:\Clancy\A_TeraTastic\Dev\TeraTastic03\packages' 
Added package 'ServiceStack.Text.4.0.46' to 'packages.config' 
Successfully installed 'ServiceStack.Text 4.0.46' to TeraTastic03 
Adding package 'ServiceStack.Client.4.0.46' to folder 'C:\Clancy\A_TeraTastic\Dev\TeraTastic03\packages' 
Added package 'ServiceStack.Client.4.0.46' to folder 'C:\Clancy\A_TeraTastic\Dev\TeraTastic03\packages' 
Added package 'ServiceStack.Client.4.0.46' to 'packages.config' 
Successfully installed 'ServiceStack.Client 4.0.46' to TeraTastic03 
Adding package 'ServiceStack.Common.4.0.46' to folder 'C:\Clancy\A_TeraTastic\Dev\TeraTastic03\packages' 
Added package 'ServiceStack.Common.4.0.46' to folder 'C:\Clancy\A_TeraTastic\Dev\TeraTastic03\packages' 
Added package 'ServiceStack.Common.4.0.46' to 'packages.config' 
Successfully installed 'ServiceStack.Common 4.0.46' to TeraTastic03 
Adding package 'ServiceStack.4.0.46' to folder 'C:\Clancy\A_TeraTastic\Dev\TeraTastic03\packages' 
Added package 'ServiceStack.4.0.46' to folder 'C:\Clancy\A_TeraTastic\Dev\TeraTastic03\packages' 
Added package 'ServiceStack.4.0.46' to 'packages.config' 
Successfully installed 'ServiceStack 4.0.46' to TeraTastic03 

Install failed. Rolling back... 

Removed package 'ServiceStack 4.0.46' from 'packages.config' 
Removed package 'ServiceStack.Common 4.0.46' from 'packages.config' 
Removed package 'ServiceStack.Client 4.0.46' from 'packages.config' 
Removed package 'ServiceStack.Text 4.0.46' from 'packages.config' 
Removed package 'ServiceStack.Interfaces 4.0.46' from 'packages.config' 
Removing package 'ServiceStack 4.0.46' from folder 'C:\Clancy\A_TeraTastic\Dev\TeraTastic03\packages' 
Removed package 'ServiceStack 4.0.46' from folder 'C:\Clancy\A_TeraTastic\Dev\TeraTastic03\packages' 
Removing package 'ServiceStack.Common 4.0.46' from folder 'C:\Clancy\A_TeraTastic\Dev\TeraTastic03\packages' 
Removed package 'ServiceStack.Common 4.0.46' from folder 'C:\Clancy\A_TeraTastic\Dev\TeraTastic03\packages' 
Removing package 'ServiceStack.Client 4.0.46' from folder 'C:\Clancy\A_TeraTastic\Dev\TeraTastic03\packages' 
Removed package 'ServiceStack.Client 4.0.46' from folder 'C:\Clancy\A_TeraTastic\Dev\TeraTastic03\packages' 
Removing package 'ServiceStack.Text 4.0.46' from folder 'C:\Clancy\A_TeraTastic\Dev\TeraTastic03\packages' 
Removed package 'ServiceStack.Text 4.0.46' from folder 'C:\Clancy\A_TeraTastic\Dev\TeraTastic03\packages' 
Removing package 'ServiceStack.Interfaces 4.0.46' from folder 'C:\Clancy\A_TeraTastic\Dev\TeraTastic03\packages' 
Removed package 'ServiceStack.Interfaces 4.0.46' from folder 'C:\Clancy\A_TeraTastic\Dev\TeraTastic03\packages' 
System.NullReferenceException: Object reference not set to an instance of an object. 
    at NuGet.PackageManagement.VisualStudio.AssemblyBinding.Parse(XContainer dependentAssembly) 
    at NuGet.PackageManagement.VisualStudio.BindingRedirectManager.<>c.<GetAssemblyBindings>b__18_0(XElement dependentAssemblyElement) 
    at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext() 
    at System.Linq.Lookup`2.Create[TSource](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector, IEqualityComparer`1 comparer) 
    at NuGet.PackageManagement.VisualStudio.BindingRedirectManager.GetAssemblyBindings(XDocument document) 
    at NuGet.PackageManagement.VisualStudio.BindingRedirectManager.AddBindingRedirects(IEnumerable`1 bindingRedirects) 
    at NuGet.PackageManagement.VisualStudio.RuntimeHelpers.<AddBindingRedirectsAsync>d__3.MoveNext() 
--- End of stack trace from previous location where exception was thrown --- 
    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) 
    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 
    at NuGet.PackageManagement.VisualStudio.RuntimeHelpers.<AddBindingRedirectsAsync>d__2.MoveNext() 
--- End of stack trace from previous location where exception was thrown --- 
    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) 
    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 
    at NuGet.PackageManagement.VisualStudio.RuntimeHelpers.<AddBindingRedirectsAsync>d__0.MoveNext() 
--- End of stack trace from previous location where exception was thrown --- 
    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) 
    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 
    at NuGet.PackageManagement.VisualStudio.VSMSBuildNuGetProjectSystem.<<AddBindingRedirects>b__59_0>d.MoveNext() 
--- End of stack trace from previous location where exception was thrown --- 
    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) 
    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 
    at Microsoft.VisualStudio.Threading.JoinableTask.CompleteOnCurrentThread() 
    at NuGet.PackageManagement.VisualStudio.VSMSBuildNuGetProjectSystem.AddBindingRedirects() 
    at NuGet.ProjectManagement.MSBuildNuGetProject.PostProcessAsync(INuGetProjectContext nuGetProjectContext, CancellationToken token) 
    at NuGet.PackageManagement.NuGetPackageManager.<ExecuteNuGetProjectActionsAsync>d__42.MoveNext() 
--- End of stack trace from previous location where exception was thrown --- 
    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 
    at NuGet.PackageManagement.NuGetPackageManager.<ExecuteNuGetProjectActionsAsync>d__42.MoveNext() 
--- End of stack trace from previous location where exception was thrown --- 
    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) 
    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 
    at NuGet.PackageManagement.UI.UIActionEngine.<ExecuteActionsAsync>d__5.MoveNext() 
--- End of stack trace from previous location where exception was thrown --- 
    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) 
    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 
    at NuGet.PackageManagement.UI.UIActionEngine.<PerformActionAsync>d__3.MoveNext() 
========== Finished ========== 

回答

0

我從來沒見過這個錯誤,但是這是不同的東西約ServiceStack.Interfaces是這是一個簽名的PCL.dll。

你可以嘗試更新的NuGet,或者只是嘗試自行安裝ServiceStack.Interfaces包:

PM> Install-Package ServiceStack.Interfaces 
相關問題