我試圖在Visual Studio中BenchmarkDotNet軟件包安裝到一個全新的,空白的控制檯項目2012最終,我得到這個錯誤日誌:無法在Visual Studio的終極安裝BenchmarkDotNet 0.10.2 2012
PM> Install-Package BenchmarkDotNet
Attempting to resolve dependency 'BenchmarkDotNet.Toolchains.Roslyn (≥ 0.10.2)'.
Attempting to resolve dependency 'BenchmarkDotNet.Core (≥ 0.10.2)'.
Attempting to resolve dependency 'System.Threading.Tasks.Extensions (≥ 4.0.0)'.
Attempting to resolve dependency 'Microsoft.CodeAnalysis.CSharp (≥ 1.3.2)'.
Attempting to resolve dependency 'Microsoft.CodeAnalysis.Common (= 1.3.2)'.
Attempting to resolve dependency 'System.Collections.Immutable (≥ 1.1.37)'.
Attempting to resolve dependency 'System.Reflection.Metadata (≥ 1.2.0)'.
Install-Package : 'System.Reflection.Metadata' already has a dependency defined for 'System.Collections.Immutable'.
At line:1 char:1
+ Install-Package BenchmarkDotNet
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Install-Package], InvalidOperationException
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand
BenchmarkDotNet看起來非常簡單...但它只是不會爲我安裝!有沒有人有這個問題,或在Visual Studio 2012上克服它?
注意:它確實安裝在Visual Studio 2015社區中,但這不是我可用於實際開發的版本。
這應該是對問題本身的評論!但它的目標是.Net 4.5 – Loudenvier
就是這樣。太糟糕了!謝謝 – Loudenvier