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

Restore the NuGet tool when no existing executable can be found #626

Closed
AdmiringWorm opened this issue Aug 17, 2020 · 0 comments · Fixed by #645
Closed

Restore the NuGet tool when no existing executable can be found #626

AdmiringWorm opened this issue Aug 17, 2020 · 0 comments · Fixed by #645
Milestone

Comments

@AdmiringWorm
Copy link
Member

When trying to call any of the NuGet aliases when running under .NET Core (or if Cake haven't been installed through nuget, or no nuget.exe exist on the system), an exception happens when trying to run any of the NuGet aliases (NuGetPush, NuGetPack, and so on).

I would suggest to implement the following:

Before trying to run any of these aliases, make a check using Context.Tool.Resolve and if it is null, try restoring the NuGet.CommandLine nuget package.

@AdmiringWorm AdmiringWorm added this to the 2.0.0 milestone Sep 2, 2020
AdmiringWorm added a commit to AdmiringWorm/Cake.Recipe that referenced this issue Sep 2, 2020
gep13 pushed a commit to AdmiringWorm/Cake.Recipe that referenced this issue Sep 2, 2020
@gep13 gep13 closed this as completed in #645 Sep 2, 2020
gep13 added a commit that referenced this issue Sep 2, 2020
(GH-626) Add restoring of nuget if none is found
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant