Skip to content

Use released packages in on-demand sandbox sample#750

Closed
YunchuWang wants to merge 1 commit into
microsoft:mainfrom
YunchuWang:wangbill/ondemand-sample-released-packages
Closed

Use released packages in on-demand sandbox sample#750
YunchuWang wants to merge 1 commit into
microsoft:mainfrom
YunchuWang:wangbill/ondemand-sample-released-packages

Conversation

@YunchuWang

Copy link
Copy Markdown
Member

Summary

  • Update the on-demand sandbox sample projects to consume the released 1.25.0-preview.2 Azure Managed packages instead of SDK project references.
  • Remove the unnecessary Microsoft.DurableTask.Worker.AzureManaged.Sandboxes dependency from the main app sample.
  • Change the remote worker container build to copy only the sample files and restore released NuGet packages, instead of copying the full durabletask-dotnet source tree.

Validation

  • dotnet build .\samples\on-demand-sandbox\main-app\main-app.csproj
  • dotnet build .\samples\on-demand-sandbox\remote-worker\remote-worker.csproj
  • Built and pushed sample worker image: wbdtspoc76f6bd.azurecr.io/dts-ondemand-sandbox-dotnet-sample:releasedpkg-20260617153611
  • Ran the .NET on-demand sample against wbserverless34san / ondemandsandbox; orchestration 89b9255469f24e3a8ff04e79bb356e5e completed and executed the remote activity in ADC sandbox.

Copilot AI review requested due to automatic review settings June 17, 2026 22:39

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the on-demand sandbox sample to consume released Azure Managed Durable Task Scheduler NuGet packages (instead of source project references), and streamlines the remote worker container build to only include the sample tree and restore from packages—making the sample easier to use outside of the repo.

Changes:

  • Switch main-app and remote-worker samples from ProjectReference to PackageReference for Azure Managed (and related sandbox) packages at 1.25.0-preview.2.
  • Remove the unnecessary Microsoft.DurableTask.Worker.AzureManaged.Sandboxes dependency from the main-app sample.
  • Update the remote-worker Containerfile to copy only required build inputs and disable signing during publish.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
samples/on-demand-sandbox/remote-worker/remote-worker.csproj Replaces SDK project references with released Azure Managed worker package references.
samples/on-demand-sandbox/remote-worker/Containerfile Builds the worker image from only sample sources + NuGet restore, avoiding copying the full repo.
samples/on-demand-sandbox/main-app/main-app.csproj Moves the main app to released client/worker packages and generator analyzer package; removes unneeded worker sandbox dependency.

Comment thread samples/on-demand-sandbox/remote-worker/remote-worker.csproj
Comment thread samples/on-demand-sandbox/main-app/main-app.csproj
@YunchuWang YunchuWang closed this Jun 18, 2026
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.

2 participants