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

Find-Package fails to display but Install-Package works #3068

Closed
chauncat opened this Issue Jun 30, 2016 · 18 comments

Comments

Projects
None yet
3 participants
@chauncat

chauncat commented Jun 30, 2016

We have a teamcity feedservice that has our private feeds. In VS 2013 using Nuget 2.8.60318.734 we call get-package -ListAvailable and we get full list of packages. When in VS2015 we use Find-Package and only get a small subset of available feeds. Install-Package in VS2015 can find and usually works to install the package. Sometime it will just update the package.config file but not the project.

@chauncat

This comment has been minimized.

Show comment
Hide comment
@chauncat

chauncat Jun 30, 2016

Forgot to mention version in VS2015. 3.4.4.1321

Found the issue with the package not installing but updated in the package.config. VS2015 does not show the error but in VS2013. When I corrected the targetfamework the error goes away. not sure whey the error data does not display in 2015

Install failed. Rolling back...
Install-Package : Could not install package 'XXX.Core.Droid 1.2.683-dev'. You are trying to install this package into a project that targets 'MonoAndroid,Version=v4.4', but the package does not contain any assembly
references or content files that are compatible with that framework. For more information, contact the package author.At line:1 char:1

  • install-package XXX.Core.Droid -IncludePrerelease
  • - CategoryInfo          : NotSpecified: (:) [Install-Package], InvalidOperationException
    - FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand
    

chauncat commented Jun 30, 2016

Forgot to mention version in VS2015. 3.4.4.1321

Found the issue with the package not installing but updated in the package.config. VS2015 does not show the error but in VS2013. When I corrected the targetfamework the error goes away. not sure whey the error data does not display in 2015

Install failed. Rolling back...
Install-Package : Could not install package 'XXX.Core.Droid 1.2.683-dev'. You are trying to install this package into a project that targets 'MonoAndroid,Version=v4.4', but the package does not contain any assembly
references or content files that are compatible with that framework. For more information, contact the package author.At line:1 char:1

  • install-package XXX.Core.Droid -IncludePrerelease
  • - CategoryInfo          : NotSpecified: (:) [Install-Package], InvalidOperationException
    - FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand
    
@rrelyea

This comment has been minimized.

Show comment
Hide comment
@rrelyea

rrelyea Jun 30, 2016

Contributor

#2926 similar/same?

Contributor

rrelyea commented Jun 30, 2016

#2926 similar/same?

@rrelyea rrelyea added this to the 3.5 RTM milestone Jun 30, 2016

@chauncat

This comment has been minimized.

Show comment
Hide comment
@chauncat

chauncat Jun 30, 2016

Sounds like the same issue.

Date: Thu, 30 Jun 2016 11:22:32 -0700
From: notifications@github.com
To: Home@noreply.github.com
CC: chauncat@hotmail.com; author@noreply.github.com
Subject: Re: [NuGet/Home] Find-Package fails to display but Install-Package works (#3068)

#2926 similar/same?


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.

chauncat commented Jun 30, 2016

Sounds like the same issue.

Date: Thu, 30 Jun 2016 11:22:32 -0700
From: notifications@github.com
To: Home@noreply.github.com
CC: chauncat@hotmail.com; author@noreply.github.com
Subject: Re: [NuGet/Home] Find-Package fails to display but Install-Package works (#3068)

#2926 similar/same?


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.

@jainaashish jainaashish self-assigned this Jun 30, 2016

@jainaashish

This comment has been minimized.

Show comment
Hide comment
@jainaashish

jainaashish Jun 30, 2016

Contributor

@chauncat can you try to reproduce this with nuget 3.0.0 version? other thread mentioned it was not reproducible with that version so just wanted to confirm that with you.

Contributor

jainaashish commented Jun 30, 2016

@chauncat can you try to reproduce this with nuget 3.0.0 version? other thread mentioned it was not reproducible with that version so just wanted to confirm that with you.

@chauncat

This comment has been minimized.

Show comment
Hide comment
@chauncat

chauncat Jun 30, 2016

Do you have to link to download the vsix for version 3. I can say that if I use the command line it works. Just not the powershell or vsix forms.

chauncat commented Jun 30, 2016

Do you have to link to download the vsix for version 3. I can say that if I use the command line it works. Just not the powershell or vsix forms.

@jainaashish

This comment has been minimized.

Show comment
Hide comment
@jainaashish

jainaashish Jun 30, 2016

Contributor

issue is with Find-Package command? otherwise get-package -ListAvailable is working good with vs 2015 or 2013 right?

Contributor

jainaashish commented Jun 30, 2016

issue is with Find-Package command? otherwise get-package -ListAvailable is working good with vs 2015 or 2013 right?

@chauncat

This comment has been minimized.

Show comment
Hide comment
@chauncat

chauncat Jun 30, 2016

VS 2013Id Version Description/Release Notes -- ------- ------------------------- XXX.Core 1.2.112 XXX Core Portable Class Library, YoXXX.Core.Droid 1.2.112 The Android implmentation of the XXX Core Droid Class LibraryXXX.Core.Library 1.2.112 XXX Core Portable Class LibraryXXX.Core.Test 1.2.112 DescriptionXXX.Emdk.Bindings.Droid 1.2.12 DescriptionXXX.Messaging 1.2.112 XXX messaging pclXXX.Messaging.Droid 1.2.112 XXX Messaging - Android implementationXXX.Messaging.Proxy.Droid 1.2.112 XXX Messaing - Proxy / Android implmeentationXXX.Mvvm 1.2.112 XXX MvvmCross Portable Class Library Use this package to use shared XXX mvvmcrossXXX.Mvvm.Droid 1.2.112 XXX Mvvm Cross Droid LibraryEsri.Binding.Droid 1.2.7 ESRI SDK BindingsKaazing 1.2.10 NuGet package for Kaazing Gateway and JMS DLLsPlacard 1.2.10 NuGet package for Placard Wizard DLLs

VS 2015PM> get-package -ListAvailable
Id Versions Description -- -------- ----------- Kaazing {1.2.10} NuGet package for Kaazing Gateway and JMS DLLs Placard {1.2.10} NuGet package for Placard Wizard DLLs
Date: Thu, 30 Jun 2016 14:09:40 -0700
From: notifications@github.com
To: Home@noreply.github.com
CC: chauncat@hotmail.com; mention@noreply.github.com
Subject: Re: [NuGet/Home] Find-Package fails to display but Install-Package works (#3068)

issue is with Find-Package command? otherwise get-package -ListAvailable is working good with vs 2015 or 2013 right?


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

chauncat commented Jun 30, 2016

VS 2013Id Version Description/Release Notes -- ------- ------------------------- XXX.Core 1.2.112 XXX Core Portable Class Library, YoXXX.Core.Droid 1.2.112 The Android implmentation of the XXX Core Droid Class LibraryXXX.Core.Library 1.2.112 XXX Core Portable Class LibraryXXX.Core.Test 1.2.112 DescriptionXXX.Emdk.Bindings.Droid 1.2.12 DescriptionXXX.Messaging 1.2.112 XXX messaging pclXXX.Messaging.Droid 1.2.112 XXX Messaging - Android implementationXXX.Messaging.Proxy.Droid 1.2.112 XXX Messaing - Proxy / Android implmeentationXXX.Mvvm 1.2.112 XXX MvvmCross Portable Class Library Use this package to use shared XXX mvvmcrossXXX.Mvvm.Droid 1.2.112 XXX Mvvm Cross Droid LibraryEsri.Binding.Droid 1.2.7 ESRI SDK BindingsKaazing 1.2.10 NuGet package for Kaazing Gateway and JMS DLLsPlacard 1.2.10 NuGet package for Placard Wizard DLLs

VS 2015PM> get-package -ListAvailable
Id Versions Description -- -------- ----------- Kaazing {1.2.10} NuGet package for Kaazing Gateway and JMS DLLs Placard {1.2.10} NuGet package for Placard Wizard DLLs
Date: Thu, 30 Jun 2016 14:09:40 -0700
From: notifications@github.com
To: Home@noreply.github.com
CC: chauncat@hotmail.com; mention@noreply.github.com
Subject: Re: [NuGet/Home] Find-Package fails to display but Install-Package works (#3068)

issue is with Find-Package command? otherwise get-package -ListAvailable is working good with vs 2015 or 2013 right?


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

@chauncat

This comment has been minimized.

Show comment
Hide comment
@chauncat

chauncat Jul 1, 2016

Issue is with VS2015. Things are very inconsistent. it is so bad I would use VS2013 if we still could.
Browse tab, Find-pacakge, and Get-package -ListAvailable all have the same result in VS2015 which is a small subset of available packages. I get 2 packages in VS2015 and 13 in VS2013.

chauncat commented Jul 1, 2016

Issue is with VS2015. Things are very inconsistent. it is so bad I would use VS2013 if we still could.
Browse tab, Find-pacakge, and Get-package -ListAvailable all have the same result in VS2015 which is a small subset of available packages. I get 2 packages in VS2015 and 13 in VS2013.

@jainaashish

This comment has been minimized.

Show comment
Hide comment
@jainaashish

jainaashish Jul 1, 2016

Contributor

It looks similar to #2456 And there's good explanation in this thread about moving away from teamcity nuget server since they only support nuget v1 protocol and that too there're bugs in here which they don't want to invest in.

Also, you could try changing your teamcity feed to use V2 with Teamcity.nuget.api.version=v2 and see if you can query all the packages with nuget 3.4.4

Contributor

jainaashish commented Jul 1, 2016

It looks similar to #2456 And there's good explanation in this thread about moving away from teamcity nuget server since they only support nuget v1 protocol and that too there're bugs in here which they don't want to invest in.

Also, you could try changing your teamcity feed to use V2 with Teamcity.nuget.api.version=v2 and see if you can query all the packages with nuget 3.4.4

@jainaashish

This comment has been minimized.

Show comment
Hide comment
@jainaashish

jainaashish Jul 1, 2016

Contributor

Also share a fiddler trace of working vs and non working vs to further investigate this.

Contributor

jainaashish commented Jul 1, 2016

Also share a fiddler trace of working vs and non working vs to further investigate this.

@chauncat

This comment has been minimized.

Show comment
Hide comment
@chauncat

chauncat Jul 7, 2016

We have V2 on our TeamCity Server.
Looking at the requests made in fiddler I can see the problem.

Working VS2013
http://freightteamcity.con-way.com:8080/tc/guestAuth/app/nuget/v1/FeedService.svc/Search()?$filter=IsLatestVersion&$orderby=DownloadCount%20desc,Id&$skip=0&$top=30&searchTerm=%27%27&targetFramework=%27portable-net45%2Bwp80%2BMonoAndroid10%2Bxamarinios10%2BMonoTouch10%7Cportable-net45%2Bwp80%2BMonoAndroid10%2Bxamarinios10%2BMonoTouch10%7CMonoAndroid60%7Cnet45%7Cnet45%27&includePrerelease=false

Not working VS2015
http://freightteamcity.con-way.com:8080/tc/guestAuth/app/nuget/v1/FeedService.svc/Search()?$filter=IsLatestVersion&searchTerm=%27%27&targetFramework=%27unsupported%27&includePrerelease=false&$skip=0&$top=26

The targetFramework is unsupported for some reason in VS2015. If I replace the target framework querystring it works.
&targetFramework=%27portable-net45%2Bwp80%2BMonoAndroid10%2Bxamarinios10%2BMonoTouch10%7Cportable-net45%2Bwp80%2BMonoAndroid10%2Bxamarinios10%2BMonoTouch10%7CMonoAndroid60%7Cnet45%7Cnet45%27

Why would it be unsupported in VS2015?

chauncat commented Jul 7, 2016

We have V2 on our TeamCity Server.
Looking at the requests made in fiddler I can see the problem.

Working VS2013
http://freightteamcity.con-way.com:8080/tc/guestAuth/app/nuget/v1/FeedService.svc/Search()?$filter=IsLatestVersion&$orderby=DownloadCount%20desc,Id&$skip=0&$top=30&searchTerm=%27%27&targetFramework=%27portable-net45%2Bwp80%2BMonoAndroid10%2Bxamarinios10%2BMonoTouch10%7Cportable-net45%2Bwp80%2BMonoAndroid10%2Bxamarinios10%2BMonoTouch10%7CMonoAndroid60%7Cnet45%7Cnet45%27&includePrerelease=false

Not working VS2015
http://freightteamcity.con-way.com:8080/tc/guestAuth/app/nuget/v1/FeedService.svc/Search()?$filter=IsLatestVersion&searchTerm=%27%27&targetFramework=%27unsupported%27&includePrerelease=false&$skip=0&$top=26

The targetFramework is unsupported for some reason in VS2015. If I replace the target framework querystring it works.
&targetFramework=%27portable-net45%2Bwp80%2BMonoAndroid10%2Bxamarinios10%2BMonoTouch10%7Cportable-net45%2Bwp80%2BMonoAndroid10%2Bxamarinios10%2BMonoTouch10%7CMonoAndroid60%7Cnet45%7Cnet45%27

Why would it be unsupported in VS2015?

@chauncat

This comment has been minimized.

Show comment
Hide comment
@chauncat

chauncat Jul 11, 2016

Can you say why the query string shows unsupported for the targetFramework on vs2015 and not vs2013?

chauncat commented Jul 11, 2016

Can you say why the query string shows unsupported for the targetFramework on vs2015 and not vs2013?

@jainaashish

This comment has been minimized.

Show comment
Hide comment
@jainaashish

jainaashish Jul 12, 2016

Contributor

Can you update to latest version 2.12.0 and try again? And what's your project target framework with vs 2013?

Contributor

jainaashish commented Jul 12, 2016

Can you update to latest version 2.12.0 and try again? And what's your project target framework with vs 2013?

@chauncat

This comment has been minimized.

Show comment
Hide comment
@chauncat

chauncat Jul 12, 2016

Not sure why updating vs2013 is needed the error is in vs2015.

Updated to 2.12.0.817

It works still here is link it is using.

http://freightteamcity.con-way.com:8080/tc/guestAuth/app/nuget/v1/FeedService.svc/Search()?$filter=IsLatestVersion&$orderby=DownloadCount%20desc,Id&$skip=0&$top=30&searchTerm=%27%27&targetFramework=%27portable-net45%2Bwin%2Bwp80%2BMonoAndroid10%2Bxamarinios10%2BMonoTouch10%7Cportable-net45%2Bwin%2Bwp80%2BMonoAndroid10%2Bxamarinios10%2BMonoTouch10%7Cportable-net45%2Bwin%2Bwp80%2BMonoAndroid10%2Bxamarinios10%2BMonoTouch10%7Cnet45%7CMonoAndroid50%7Cnet45%7CMonoAndroid44%7Cnet45%7CMonoAndroid50%7Cnet451%7Cportable-net45%2Bwin%2Bwp80%2BMonoAndroid10%2Bxamarinios10%2BMonoTouch10%7CMonoAndroid50%7Cnet45%27&includePrerelease=false

chauncat commented Jul 12, 2016

Not sure why updating vs2013 is needed the error is in vs2015.

Updated to 2.12.0.817

It works still here is link it is using.

http://freightteamcity.con-way.com:8080/tc/guestAuth/app/nuget/v1/FeedService.svc/Search()?$filter=IsLatestVersion&$orderby=DownloadCount%20desc,Id&$skip=0&$top=30&searchTerm=%27%27&targetFramework=%27portable-net45%2Bwin%2Bwp80%2BMonoAndroid10%2Bxamarinios10%2BMonoTouch10%7Cportable-net45%2Bwin%2Bwp80%2BMonoAndroid10%2Bxamarinios10%2BMonoTouch10%7Cportable-net45%2Bwin%2Bwp80%2BMonoAndroid10%2Bxamarinios10%2BMonoTouch10%7Cnet45%7CMonoAndroid50%7Cnet45%7CMonoAndroid44%7Cnet45%7CMonoAndroid50%7Cnet451%7Cportable-net45%2Bwin%2Bwp80%2BMonoAndroid10%2Bxamarinios10%2BMonoTouch10%7CMonoAndroid50%7Cnet45%27&includePrerelease=false

@jainaashish

This comment has been minimized.

Show comment
Hide comment
@jainaashish

jainaashish Jul 12, 2016

Contributor

oops sorry, I wanted you to check with nuget 3.5 beta2 release with vs2015 and mean time if you can tell me the project configurations as well...

Contributor

jainaashish commented Jul 12, 2016

oops sorry, I wanted you to check with nuget 3.5 beta2 release with vs2015 and mean time if you can tell me the project configurations as well...

@chauncat

This comment has been minimized.

Show comment
Hide comment
@chauncat

chauncat Jul 12, 2016

I get more but it is not included all the target frameworks that are in the solution. It only picks up profile78
Here is the link
http://freightteamcity.con-way.com:8080/tc/guestAuth/app/nuget/v1/FeedService.svc/Search()?$filter=IsLatestVersion&searchTerm=%27%27&targetFramework=%27net-profile78%2F.netframework%27&includePrerelease=false&$skip=0&$top=26

chauncat commented Jul 12, 2016

I get more but it is not included all the target frameworks that are in the solution. It only picks up profile78
Here is the link
http://freightteamcity.con-way.com:8080/tc/guestAuth/app/nuget/v1/FeedService.svc/Search()?$filter=IsLatestVersion&searchTerm=%27%27&targetFramework=%27net-profile78%2F.netframework%27&includePrerelease=false&$skip=0&$top=26

@jainaashish

This comment has been minimized.

Show comment
Hide comment
@jainaashish

jainaashish Jul 12, 2016

Contributor

i see, does it work good for individual projects?

Contributor

jainaashish commented Jul 12, 2016

i see, does it work good for individual projects?

@chauncat

This comment has been minimized.

Show comment
Hide comment
@chauncat

chauncat Jul 12, 2016

Version v3.5.0-beta2 works for individual projects. Having issue rolling back to 3.4.4 atm

chauncat commented Jul 12, 2016

Version v3.5.0-beta2 works for individual projects. Having issue rolling back to 3.4.4 atm

jainaashish added a commit to NuGet/NuGet.Client that referenced this issue Jul 12, 2016

Search packages with multiple projects now pass all supported framewo…
…rks in search querystring which helps it to list all available packages as per supported frameworks.

Fix NuGet/Home#3068

jainaashish added a commit to NuGet/NuGet.Client that referenced this issue Jul 14, 2016

Search packages with multiple projects now pass all supported framewo…
…rks in search querystring which helps it to list all available packages as per supported frameworks.

Fix NuGet/Home#3068
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment