roslyn: Unable to install Microsoft.CodeAnalysis.CSharp in VS 2013

Version Used: 1.3.2

Steps to Reproduce:

  1. Open VS 2013 Professional
  2. Create new project
  3. Try to install Microsoft.CodeAnalysis.CSharp package from https://www.nuget.org/api/v2/ feed

Expected Behavior: It got installed

Actual Behavior:

It fails with: 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)'. 'System.Reflection.Metadata' already has a dependency defined for 'System.Collections.Immutable'.

The problem: we are using this package in BenchmarkDotNet 0.9.8 as the default compiler. People can’t install our package now.

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 15 (11 by maintainers)

Most upvoted comments

@adamsitnik you need NuGet 2.12 for Visual Studio 2013 to use System.Reflection.Metadata.

You can find the VSIX here: https://www.nuget.org/downloads

The error is caused by unknown target frameworks in the nuspec.

Hahahahahaha

@adamsitnik you will need to use Visual Studio 2015 for that package.