{"id":18853418,"url":"https://github.com/zyactions/dotnet-restore","last_synced_at":"2026-05-09T00:09:09.477Z","repository":{"id":65162481,"uuid":"576945421","full_name":"zyactions/dotnet-restore","owner":"zyactions","description":"A GitHub Action that wraps the .NET CLI `dotnet restore` command.","archived":false,"fork":false,"pushed_at":"2023-05-21T19:26:28.000Z","size":15,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-03-11T18:28:53.505Z","etag":null,"topics":["continuous-integration","dotnet","github-actions"],"latest_commit_sha":null,"homepage":"","language":"YAML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zyactions.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-12-11T13:57:22.000Z","updated_at":"2022-12-23T16:25:00.000Z","dependencies_parsed_at":"2024-11-08T03:44:25.743Z","dependency_job_id":"33f01f8d-8c06-46a1-b4d0-6242db5f09dd","html_url":"https://github.com/zyactions/dotnet-restore","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/zyactions/dotnet-restore","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zyactions%2Fdotnet-restore","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zyactions%2Fdotnet-restore/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zyactions%2Fdotnet-restore/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zyactions%2Fdotnet-restore/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zyactions","download_url":"https://codeload.github.com/zyactions/dotnet-restore/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zyactions%2Fdotnet-restore/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32802563,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-08T08:22:46.396Z","status":"ssl_error","status_checked_at":"2026-05-08T08:22:45.650Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["continuous-integration","dotnet","github-actions"],"created_at":"2024-11-08T03:44:19.001Z","updated_at":"2026-05-09T00:09:09.459Z","avatar_url":"https://github.com/zyactions.png","language":"YAML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# .NET Setup\n\n![License: MIT][shield-license-mit]\n[![CI][shield-ci]][workflow-ci]\n[![Ubuntu][shield-platform-ubuntu]][job-runs-on]\n[![macOS][shield-platform-macos]][job-runs-on]\n[![Windows][shield-platform-windows]][job-runs-on]\n\nA GitHub Action that wraps the .NET CLI `dotnet restore` command. \n\n## Features\n\n- Wraps the `dotnet restore` [.NET CLI][dotnet-sdk] command\n  - Provides a structured way of using this command in a workflow\n- Supports all platforms (Linux, macOS, Windows)\n\n\u003e **Note**\n\u003e\n\u003e This action provides a wrapper around the `dotnet restore` [.NET CLI][dotnet-sdk] command. \n\u003e For further details, please check out the [official documentation][dotnet-restore].\n\n## Usage\n\n### Restore Packages\n\n```yaml\nsteps:\n  - ...\n  - name: .NET Restore\n    uses: zyactions/dotnet-restore@v1\n```\n\nThe `dotnet restore` command automatically searches for a Visual Studio Solution file (`*.sln`) in the repository root.\n\n### Restore Packages for a specific Project- or Solution\n\n```yaml\nsteps:\n  - ...\n  - name: .NET Restore\n    uses: zyactions/dotnet-restore@v1\n    with:\n      working-directory: test\n      workspace: Tests.sln\n```\n\n## Inputs\n\n### `working-directory`\n\nThe working-directory for the action.\n\nDefaults to the repository root directory (`github.workspace`).\n\n\u003e **Note**\n\u003e\n\u003e If a specific .NET SDK version is to be used, the working directory must point to the directory that contains the `global.json` or a subdirectory of it.\n\n### `workspace`\n\nThe Visual Studio workspace (directory, project- or solution-file).\n\nThis path is relative to the `working-directory` unless an absolute path is used.\n\nThe `dotnet restore` command automatically searches for a Visual Studio Solution file (`*.sln`) in the specified workspace directory, if no explicit solution- or project- file is specified.\n\nExample values:\n\n- `path/to/workspace`\n- `path/to/Solution.sln`\n- `path/to/Project.csproj`\n\n### `configfile`\n\nThe NuGet configuration file (nuget.config) to use. If specified, only the settings from this file will be used. If not specified, the hierarchy of configuration files from the current directory will be used. \nFor more information, see [Common NuGet Configurations][nuget-configurations].\n\n### `ignore-failed-sources`\n\nOnly warn about failed sources if there are packages meeting the version requirement.\n\n### `force`\n\nForces all dependencies to be resolved even if the last restore was successful. Specifying this flag is the same as deleting the `project.assets.json` file.\n\n### `force-evaluate`\n\nForces `restore` to reevaluate all dependencies even if a lock file already exists.\n\n### `use-lock-file`\n\nEnables project lock file to be generated and used with restore.\n\n### `lock-file-path`\n\nOutput location where project lock file is written. By default, this is `PROJECT_ROOT\\packages.lock.json`.\n\n### `locked-mode`\n\nDon't allow updating project lock file. This is useful when deterministic builds are required.\n\n## Requirements\n\nThe [.NET CLI][dotnet-sdk] needs to be installed on the runner. To be independent from the GitHub defaults, it's recommended to install a specific version of the SDK prior to calling this action.\n\nTo install the .NET SDK in your workflow, the following actions can be used:\n\n- [zyactions/dotnet-setup][zyactions-dotnet-setup]\n- [actions/setup-dotnet][actions-setup-dotnet]\n\n## Dependencies\n\nThis action does not use external dependencies.\n\n## Versioning\n\nVersions follow the [semantic versioning scheme][semver].\n\n## License\n\n.NET Restore Action is licensed under the MIT license.\n\n[actions-setup-dotnet]: https://github.com/actions/setup-dotnet\n[dotnet-restore]: https://learn.microsoft.com/en-us/dotnet/core/tools/dotnet-restore\n[dotnet-sdk]: https://github.com/dotnet/sdk\n[job-runs-on]: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on\n[nuget-configurations]: https://learn.microsoft.com/en-us/nuget/consume-packages/configuring-nuget-behavior\n[semver]:https://semver.org\n[shield-license-mit]: https://img.shields.io/badge/License-MIT-blue.svg\n[shield-ci]: https://github.com/zyactions/dotnet-restore/actions/workflows/ci.yml/badge.svg\n[shield-platform-ubuntu]: https://img.shields.io/badge/Ubuntu-E95420?logo=ubuntu\\\u0026logoColor=white\n[shield-platform-macos]: https://img.shields.io/badge/macOS-53C633?logo=apple\\\u0026logoColor=white\n[shield-platform-windows]: https://img.shields.io/badge/Windows-0078D6?logo=windows\\\u0026logoColor=white\n[workflow-ci]: https://github.com/zyactions/dotnet-restore/actions/workflows/ci.yml\n[zyactions-dotnet-setup]: https://github.com/zyactions/dotnet-setup\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzyactions%2Fdotnet-restore","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzyactions%2Fdotnet-restore","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzyactions%2Fdotnet-restore/lists"}