Add configuration option so action can run ``dotnet restore`` for us.
See original GitHub issueDescription:
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:
- Created 2 years ago
- Comments:8 (2 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi @AraHaan, thank you for your proposal. In my opinion, restoring of nuget packages is not in the scope of
setup-dotnet
task functionality andrestore
operation will be better to execute explicitly as separated step.@AraHaan https://github.com/actions/setup-dotnet/issues/206#issuecomment-864096990