Skip to content

eng: add --no-restore to CI build steps after dotnet restore#200

Merged
shanselman merged 1 commit intoopenclaw:masterfrom
AlexAlves87:repo-assist/eng-ci-no-restore-2026-04-22
Apr 23, 2026
Merged

eng: add --no-restore to CI build steps after dotnet restore#200
shanselman merged 1 commit intoopenclaw:masterfrom
AlexAlves87:repo-assist/eng-ci-no-restore-2026-04-22

Conversation

@AlexAlves87
Copy link
Copy Markdown
Contributor

@AlexAlves87 AlexAlves87 commented Apr 23, 2026

Each dotnet build / dotnet publish step in the test, build, and build-extension jobs was redundantly re-checking NuGet dependencies even though dotnet restore had already run as an explicit prior step. Adding --no-restore eliminates that overhead.

Five commands updated:

  • test job: Build Shared Library, Build Tests (both projects)
  • build job: Publish WinUI Tray App
  • build-extension job: Build Command Palette Extension

Note: the WinUI test build (dotnet build src/OpenClaw.Tray.WinUI -c Debug -r win-x64) is excluded — the generic dotnet restore in the test job runs without -r win-x64, so adding --no-restore there causes NETSDK1047.

No source changes. Existing test suite is unaffected.

Closes #195.

@AlexAlves87
Copy link
Copy Markdown
Contributor Author

The patch from issue #195 originally included --no-restore on the WinUI test build (dotnet build src/OpenClaw.Tray.WinUI -c Debug -r win-x64), but that step failed with NETSDK1047: the generic dotnet restore in the test job runs without -r win-x64, so project.assets.json doesn't include that RID target. Removed --no-restore from that step only — the other five steps are safe because their restore covers the same scope.

Each dotnet build / dotnet publish step that followed an explicit
dotnet restore was redundantly re-checking NuGet dependencies.
Adding --no-restore eliminates that I/O on every CI run.

Five steps updated: Build Shared Library, Build Tests (x2),
Publish WinUI Tray App, Build Command Palette Extension.

The WinUI test build (-r win-x64) is excluded: the generic
dotnet restore in the test job runs without -r win-x64, so
project.assets.json lacks that RID target and --no-restore
would fail with NETSDK1047.

Closes openclaw#195.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@AlexAlves87 AlexAlves87 force-pushed the repo-assist/eng-ci-no-restore-2026-04-22 branch from b499cb7 to d1d1e7e Compare April 23, 2026 00:21
@shanselman shanselman merged commit 7454ffb into openclaw:master Apr 23, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Repo Assist] eng: add --no-restore to CI build steps after dotnet restore

2 participants