New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to install Microsoft.CodeAnalysis.CSharp in VS 2013 #12780

Closed
adamsitnik opened this Issue Jul 27, 2016 · 15 comments

Comments

Projects
None yet
8 participants
@adamsitnik
Member

adamsitnik commented Jul 27, 2016

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.

@tanveerbadar

This comment has been minimized.

Show comment
Hide comment
@tanveerbadar

tanveerbadar Jul 27, 2016

Are you using System.Collections.Immutable already somewhere? Remove the explicit reference and try again. You'll probably have to retest if this results in a package upgrade for immutable collections, but it seems the most likely cause to me.

Are you using System.Collections.Immutable already somewhere? Remove the explicit reference and try again. You'll probably have to retest if this results in a package upgrade for immutable collections, but it seems the most likely cause to me.

@adamsitnik

This comment has been minimized.

Show comment
Hide comment
@adamsitnik

adamsitnik Jul 28, 2016

Member

Are you using System.Collections.Immutable already somewhere?

@tanveerbadar No, I am not. I created new project in VS 2013 and tried to install Microsoft.CodeAnalysis.CSharp and it fails

Member

adamsitnik commented Jul 28, 2016

Are you using System.Collections.Immutable already somewhere?

@tanveerbadar No, I am not. I created new project in VS 2013 and tried to install Microsoft.CodeAnalysis.CSharp and it fails

@Pilchie

This comment has been minimized.

Show comment
Hide comment
Member

Pilchie commented Jul 29, 2016

@adamsitnik

This comment has been minimized.

Show comment
Hide comment
@adamsitnik

adamsitnik Aug 12, 2016

Member

@shyamnamboodiripad @Pilchie Hello! Any progress with this issue?

Member

adamsitnik commented Aug 12, 2016

@shyamnamboodiripad @Pilchie Hello! Any progress with this issue?

@tannergooding

This comment has been minimized.

Show comment
Hide comment
@tannergooding

tannergooding Aug 12, 2016

Member

@adamsitnik, what version of NuGet do you have installed to VS 2013?

I am currently imaging a machine to see if I can repro the bug.

Member

tannergooding commented Aug 12, 2016

@adamsitnik, what version of NuGet do you have installed to VS 2013?

I am currently imaging a machine to see if I can repro the bug.

@adamsitnik

This comment has been minimized.

Show comment
Hide comment
@adamsitnik

adamsitnik Aug 13, 2016

Member

Hi @tannergooding the version is 2.8.50313.46 (Nuget Package Manager for VS 2013)

Member

adamsitnik commented Aug 13, 2016

Hi @tannergooding the version is 2.8.50313.46 (Nuget Package Manager for VS 2013)

@kasajian

This comment has been minimized.

Show comment
Hide comment
@kasajian

kasajian Aug 24, 2016

Normal computer with VS2013. Attempting to install the Benchmark component yields the same message

Attempting to resolve dependency 'System.Collections.Immutable (≥ 1.2.0)'.
'System.Reflection.Metadata' already has a dependency defined for 'System.Collections.Immutable'.

Normal computer with VS2013. Attempting to install the Benchmark component yields the same message

Attempting to resolve dependency 'System.Collections.Immutable (≥ 1.2.0)'.
'System.Reflection.Metadata' already has a dependency defined for 'System.Collections.Immutable'.

@tannergooding

This comment has been minimized.

Show comment
Hide comment
@tannergooding

tannergooding Aug 24, 2016

Member

Sorry, I got pulled off onto other work and forgot to update.

I was able to repro this bug in VS. However, I am not able to get this to repro in VS2015 or with the command line version of NuGet.

My best guess, at this point, is that the package is simply incompatible with the older version of NuGet that is available for VS2013.

I am trying to see if I can find some kind of workaround (for use within VS).

Member

tannergooding commented Aug 24, 2016

Sorry, I got pulled off onto other work and forgot to update.

I was able to repro this bug in VS. However, I am not able to get this to repro in VS2015 or with the command line version of NuGet.

My best guess, at this point, is that the package is simply incompatible with the older version of NuGet that is available for VS2013.

I am trying to see if I can find some kind of workaround (for use within VS).

@adamsitnik

This comment has been minimized.

Show comment
Hide comment
@adamsitnik

adamsitnik Aug 24, 2016

Member

@tannergooding Thanks for the update. Maybe it's a nuget bug? Can you try to reach the Nuget team?

Member

adamsitnik commented Aug 24, 2016

@tannergooding Thanks for the update. Maybe it's a nuget bug? Can you try to reach the Nuget team?

@Pilchie

This comment has been minimized.

Show comment
Hide comment
@Pilchie

Pilchie Aug 24, 2016

Member

Tagging @emgarten from NuGet.

Member

Pilchie commented Aug 24, 2016

Tagging @emgarten from NuGet.

@kasajian

This comment has been minimized.

Show comment
Hide comment
@kasajian

kasajian Aug 24, 2016

I'm unable to reproduce this with 2015 either. interestingly enough, after
I add the package to the solution using VS2015 and get it to wok, I can
close and reopen the same solution with VS2013 and it works.
On Wed, Aug 24, 2016 at 9:55 AM Kevin Pilch-Bisson notifications@github.com
wrote:

Tagging @emgarten https://github.com/emgarten from NuGet.


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#12780 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ACRjnYZuS6mAS77Gb8RhlrRNCMWSgrtIks5qjHedgaJpZM4JV6Ji
.

I'm unable to reproduce this with 2015 either. interestingly enough, after
I add the package to the solution using VS2015 and get it to wok, I can
close and reopen the same solution with VS2013 and it works.
On Wed, Aug 24, 2016 at 9:55 AM Kevin Pilch-Bisson notifications@github.com
wrote:

Tagging @emgarten https://github.com/emgarten from NuGet.


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#12780 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ACRjnYZuS6mAS77Gb8RhlrRNCMWSgrtIks5qjHedgaJpZM4JV6Ji
.

@emgarten

This comment has been minimized.

Show comment
Hide comment
@emgarten

emgarten Aug 24, 2016

@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.

@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.

@adamsitnik

This comment has been minimized.

Show comment
Hide comment
@adamsitnik

adamsitnik Aug 25, 2016

Member

@emgarten @kasajian Thanks for help! NuGet 2.12 solved the initial issue, but I got new one:

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.Runtime (≥ 4.0.0)'.
Attempting to resolve dependency 'System.Resources.ResourceManager (≥ 4.0.0)'.
The 'System.Resources.ResourceManager 4.0.0' package requires NuGet client version '3.0' or above, but the current NuGet version is '2.12.0.817'.
Member

adamsitnik commented Aug 25, 2016

@emgarten @kasajian Thanks for help! NuGet 2.12 solved the initial issue, but I got new one:

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.Runtime (≥ 4.0.0)'.
Attempting to resolve dependency 'System.Resources.ResourceManager (≥ 4.0.0)'.
The 'System.Resources.ResourceManager 4.0.0' package requires NuGet client version '3.0' or above, but the current NuGet version is '2.12.0.817'.
@emgarten

This comment has been minimized.

Show comment
Hide comment
@emgarten

emgarten Aug 26, 2016

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

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

@Aslam-Shareef-Avalara

This comment has been minimized.

Show comment
Hide comment

Hahahahahaha

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment