-
Notifications
You must be signed in to change notification settings - Fork 90
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
Using packages from custom NuGet repositories #143
Comments
We have created an issue in Pivotal Tracker to manage this: https://www.pivotaltracker.com/story/show/145076297 The labels on this github issue will be updated when the story is started. |
You can provide a NuGet.Config file in the root directory of your application to specify which repositories should be used. You can find a basic example here which just specifies the standard nuget.org repository. Also see NuGet.Config File Reference for more details. |
Even using the default
before it attempts to restore any packages. I think this might be related to NuGet/Home#2667. |
What version of NuGet is the buildpack currently using, and is there any way to bump it to 3.4.4 which apparently fixes this? |
@amellnik The buildpack uses the .NET Core SDK to restore packages, which uses NuGet internally, so the version of NuGet is tied to the SDK version. SDK versions can be specified in the global.json file. |
Seems like this was answered. Closing. |
What's the suggested method for providing the location for NuGet packages in private repositories to CF? Is there a way to specify this in the .csproj file or manifest.yml?
What version of Cloud Foundry and CF CLI are you using? (i.e. What is the output of running
cf curl /v2/info && cf version
?What version of the buildpack you are using?
If you were attempting to accomplish a task, what was it you were attempting to do?
Push a .NET Core application that relies on a NuGet package installed from a custom repository.
What did you expect to happen?
I had hoped
Install-Package Package.Name -Source MyRepo
would record the source repo somewhere (which is not an issue with this buildpack). Because it does not, I'm hoping that there's a way to specify it in the project or as an option in manifest.yml or similar.What was the actual behavior?
CF push gets a "unable to resolve Package.Name" error:
Please confirm where necessary:
The text was updated successfully, but these errors were encountered: