question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add configuration option so action can run ``dotnet restore`` for us.

See original GitHub issue

Description: Currently we all have to have shell, powershell, bash, or even use command prompt in github actions in order to run dotnet restore before build + test + pack. I usually run dotnet restore first so that way it speeds up the CI and sometimes I cache the restored output to speed up future CI’s and update it if the cache is outdated due to something like an updated dependency.

Justification: This use case of this is so then users like me who do this as part of speeding up the CI could use the action to execute this command and so that way it makes their workflows smaller, more readable and maintainable.

Are you willing to submit a PR?

If possible, yes.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
vsafonkincommented, May 25, 2021

Hi @AraHaan, thank you for your proposal. In my opinion, restoring of nuget packages is not in the scope of setup-dotnet task functionality and restore operation will be better to execute explicitly as separated step.

Read more comments on GitHub >

github_iconTop Results From Across the Web

dotnet restore command - .NET CLI | Microsoft Learn
Description. The dotnet restore command uses NuGet to restore dependencies as well as project-specific tools that are specified in the project ...
Read more >
Dotnet restore command fails from Dockerfile for a private ...
Dotnet restore command fails from Dockerfile for a private NuGet feed. Note, the private Nuget repository URL is reachable outside docker ...
Read more >
dotnet restore solution is restoring projects like they are .net ...
and when dotnet restore is being run from the GitHub action, I am getting the following error error MSB4057: The target "Restore" does...
Read more >
Setting Up GitHub Actions - Sergey Barskiy's Blog
Get source code from the branch – checkout action · Download and setup NuGet. I could use dotnet restore instead · Run nuget...
Read more >
Deploying an ASP.NET core application with Elastic Beanstalk
config file to create a site archive. The deployment manifest tells Elastic Beanstalk the path at which the site should run and can...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found