2017-11-08 11 views
0

私は、.netコア(v1.1)IdentityServer(1.1.0)とBrainTree(v3.7.0)もっと。 VS2017にソリューションをロードできますが、依存関係のどれも有効ではありません。それらはすべて小さい黄色い三角形を持っています。ソリューションをVS2017にロードするときにNugetモジュールを更新できません15.4.1

enter image description here

だから私は、依存関係の上で右クリックし、管理パッケージを選択し、それらをインストールしてみてください。私はHololensとUnityに関連する何かを見つけながら、私はいくつかの検索を行なったし、

Restoring packages for C:\Users\justin.hull\Source\Workspaces\Enterprise Repository\Web Applications\JPPAIdentityServer\src\JPPAMobileWebAPI\JPPAMobileAPI.csproj... 
System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary. 
    at System.Collections.Generic.Dictionary`2.get_Item(TKey key) 
    at NuGet.Commands.TransitiveNoWarnUtils.ExtractTransitiveNoWarnProperties(RestoreTargetGraph targetGraph, String parentProjectName, HashSet`1 parentProjectWideNoWarn, Dictionary`2 parentPackageSpecificNoWarn, Dictionary`2 warningPropertiesCache) 
    at NuGet.Commands.TransitiveNoWarnUtils.CreateTransitiveWarningPropertiesCollection(IEnumerable`1 targetGraphs, PackageSpec parentProjectSpec) 
    at NuGet.Commands.RestoreCollectorLogger.get_TransitiveWarningPropertiesCollection() 
    at NuGet.Commands.RestoreCollectorLogger.IsWarningSuppressed(IRestoreLogMessage message) 
    at NuGet.Commands.RestoreCollectorLogger.LogAsync(IRestoreLogMessage message) 
    at NuGet.Commands.RestoreCollectorLogger.LogAsync(ILogMessage message) 
    at NuGet.Commands.Extensions.<LogMessagesAsync>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.Commands.RestoreCommand.<ValidateRestoreGraphsAsync>d__14.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 System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task) 
    at NuGet.Commands.RestoreCommand.<ExecuteAsync>d__8.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.Commands.RestoreRunner.<ExecuteAsync>d__7.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.Commands.RestoreRunner.<CompleteTaskAsync>d__10.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.Commands.RestoreRunner.<RunWithoutCommit>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.DependencyGraphRestoreUtility.<PreviewRestoreAsync>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 System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task) 
    at NuGet.PackageManagement.NuGetPackageManager.<PreviewBuildIntegratedProjectActionsAsync>d__74.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 System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task) 
    at NuGet.PackageManagement.NuGetPackageManager.<PreviewInstallPackageAsync>d__65.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.<GetActionsAsync>d__13.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 System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task) 
    at NuGet.PackageManagement.UI.UIActionEngine.<>c__DisplayClass7_0.<<PerformActionImplAsync>b__0>d.MoveNext() 
Time Elapsed: 00:00:02.6872367 
========== Finished ========== 

:私は詳細を取得し、出力の下

Error The given key was not present in the dictionary. 0

、まだ何も明快:私はとき、私は次のエラーを取得するん私はどちらも使用していません。

enter image description here

私は手動でノーglobal.jsonといくつかのアイデアとあたりcsprojファイルを変更しようとしました:私はメーカーの最新の更新日午前、私は2.0に、.NETのコアと、このバージョンのWindowsをアップグレードそこに行こう。誰でも2015年に戻るというこの問題の解決策は実行可能な選択肢ではないことがわかります。

+0

を参照してください? –

+0

多分あなたは私のケースを持っています: VS2017 Framework 3.5はFramework 4.0と "暗黙的に"置き換えられます(あなたは選択できません、防ぐことはできません)。 既存のVS2015の隣にVS2017をインストールした後も同じことがありました。私に3.5を与えた唯一のことは、VS2015を再インストールしてからVS2017を使用することでした。 – hardyVeles

+0

@ j.hull、この問題のアップデートはありますか?あなたの問題を解決しましたか?そうでない場合は、この問題に関する最新情報をお知らせください。 –

答えて

0

Unable to update Nuget modules when loading a Solution into VS2017 15.4.1

あなたはその後、Visual Studioのでそれを開いて、Visual Studioのでこの.NETのコアプロジェクトを作成しなければなりません。 Visual Studioの2015年の.NETコアバージョンの後のVisual Studio 2017にプロジェクトをアップグレードし、ターゲットフレームワークを使用すると、.NET Blog上の互換性リストを確認することができ、互換性の.NET Standard 1.6ベースに変換されます、1.0.0-previewです:

enter image description here

そして、あなたがそれらの両方が、依存性を持っている、依存関係にMicrosoft.AspNetCore 1.1.0IdentityServer4.AccessTokenValidation 1.1.0について情報をご確認ください:

NETStandard.Library (>= 1.6.1) 

enter image description here

ただし、デフォルトのバージョンNETStandard.Libraryは、プロジェクトをVisual Studio 2017にアップグレードすると、互換性が失われた後に1.6.0になります。それが小さい黄色の三角形を得た理由です。この問題を解決するには

、あなたはパッケージMicrosoft.AspNetCore 1.1.0IdentityServer4.AccessTokenValidation 1.1.0をアンインストールし、代わりに依存性があるNETStandard.Library (>= 1.6.0)持っMicrosoft.AspNetCore1.0.6IdentityServer4.AccessTokenValidation1.0.5を、インストールすることができます。あなたはMicrosoft.AspNetCoreIdentityServer4.AccessTokenValidationのために使用して、以前のバージョン1.1.0を維持したい場合は

あるいは、あなたがのVisual Studio 20152.0に1.6からパッケージNETStandard.Libraryを更新することができ、その後のVisual Studio 2017でプロジェクトを開きます。

0

VS2017バージョン15.4.1で、NuGet Packageバージョン4.4.0で同じ問題が発生しました。それはバグのようです。回避策は、プロジェクトの実際の名前と一致するようにプロジェクトのアセンブリ名を変更することです。詳細情報については

は、あなたがすべて/任意の参照(複数可)を削除し、パッケージマネージャから直接それらをバック追加した場合はどうなりNuget - Issue 6020

関連する問題