Skip to content
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

Cannot restore packages from teamcity nuget server #19

Closed
dtretyakov opened this issue Sep 28, 2016 · 8 comments
Closed

Cannot restore packages from teamcity nuget server #19

dtretyakov opened this issue Sep 28, 2016 · 8 comments

Comments

@dtretyakov
Copy link
Contributor

From @prabhakarreddy1234 on September 28, 2016 10:29

I am using teamcity as my nuget feed. I published 1 dotnet core package using TeamCity CI. I can see that nuget package has been dropped into the nuget feed folder in Teamcity. But cannot restore that package using visual studio or command line.

I used dotnet pack command.

image

Copied from original issue: JetBrains/teamcity-dotnet-plugin#19

@dtretyakov
Copy link
Contributor Author

@prabhakarreddy1234, which TeamCity version do you use to host nuget feed?
Could you please navigate to the following link and ensure that output contains your package:

%teamcity%/guestAuth/app/nuget/v1/FeedService.svc/FindPackagesById()?Id=%27API.Framework.Entities.Core%27

If response contains your package, please define internal property teamcity.nuget.feed.filter.targetframework=true and try to restore packages again.

@prabhakarreddy1234
Copy link

prabhakarreddy1234 commented Sep 28, 2016

I am using TeamCity Enterprise 9.1.6 (build 37459) .

I tried to access the link which you provided but getting the below response.

image

I can access Full .Net Framework packages from the same folder in Teamcity Nuget. But not .net core packages.

I used my local nuget store before and it's working fine. I can push and restore easily. Not sure why Teamcity doesn't display the pushed packages in both Manage Nuget Packages window in visual studio and dotnet restore as well.

@dtretyakov
Copy link
Contributor Author

@prabhakarreddy1234, ok, it seems that you have disabled guest authentication in your feed.
In this case navigate to the %teamcity%/httpAuth/app/nuget/v1/FeedService.svc/FindPackagesById()?Id=%27API.Framework.Entities.Core%27

@prabhakarreddy1234
Copy link

prabhakarreddy1234 commented Sep 28, 2016

Actually earlier i tried with httpAuth. Now i tried again with guestAuth. Still i cannot see the package in the response. I am getting HTTP 204 ( No content). I have other package which is API.Framework.Entities it is on Full .Net Framework. I can get response for this package.

@dtretyakov
Copy link
Contributor Author

@prabhakarreddy1234, thanks for details. It seems like a bug in TeamCity 9.1.x.

Latest TeamCity 10.0.2 version contains lots of nuget-related fixes and improvements.
So, it would be great to upgrade your TeamCity installation.

If could not do that, you can try to latest nuget plugin version and install it as additional TeamCity plugin.

@prabhakarreddy1234
Copy link

I will try that and let you know the result in a few days.

@prabhakarreddy1234
Copy link

Latest nuget plugin which you suggested didn't work with TeamCity 9.1.x. So i upgraded to Teamcity 10.0.2. Now i can see .net core package when i browse %teamcity%/httpAuth/app/nuget/v1/FeedService.svc/FindPackagesById()?Id=%27API.Framework.Entities.Core%27 .

But in Visual studio 2015 update 3 , Nuget 3.5.0 i cannot see the package in Manage Nuget Packages window when i select TeamCity feed. I can see the package if i select my local folder feed. Is there anything you can help me with?

@dtretyakov
Copy link
Contributor Author

dtretyakov commented Oct 11, 2016

@prabhakarreddy1234, could you please try to use nuget plugin with a compatibility fix for nuget 3.4+:
https://youtrack.jetbrains.com/issue/TW-47189#comment=27-1645705

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

No branches or pull requests

2 participants