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

Add configuration for default NuGet source #960

Closed
wwwlicious opened this issue Jun 5, 2016 · 2 comments
Closed

Add configuration for default NuGet source #960

wwwlicious opened this issue Jun 5, 2016 · 2 comments
Milestone

Comments

@wwwlicious
Copy link
Contributor

wwwlicious commented Jun 5, 2016

When using the #tool preprocessor directive in cake scripts, it is possible to use an absolute uri to specify a specific nuget source.

It is not possible to override the nuget system default, as can be done for the ROSLYN_NUGET key using the cake.config file for the bootstrapper.

Allowing the default nuget sources for tooling and addins to be specified is useful for those without access to public nuget servers but with access to internal private nuget sources

I am proposing that a config key called NUGET_SOURCE be checked for a value in the cake.config file when installing packages via the NuGetPackageInstaller

example of config

[NuGet]
Source=http://myfeed/nuget/

If no absolute uri is specified. The value of this key will be a semi-colon separated list of nuget package sources.

This still will allow specific overrides per directive but a custom source/s can be specified for a project.

@patriksvensson patriksvensson changed the title Feature Request: Add configuration for default NuGet source Add configuration for default NuGet source Jun 5, 2016
@patriksvensson
Copy link
Member

@wwwlicious Perfect! Thanks!

@gep13
Copy link
Member

gep13 commented Jul 14, 2016

This will be shipped in 0.15.0 of Cake.

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

3 participants