Skip to content

Automated sync from private repo (2026-07-14)#818

Merged
foundry-samples-repo-sync[bot] merged 1 commit into
mainfrom
sync/private-to-public-20260714-064925
Jul 14, 2026
Merged

Automated sync from private repo (2026-07-14)#818
foundry-samples-repo-sync[bot] merged 1 commit into
mainfrom
sync/private-to-public-20260714-064925

Conversation

@foundry-samples-repo-sync

Copy link
Copy Markdown
Contributor

Automated sync from private repo.

Synced commits: 1
Authors: Dooriya Li

Validation gate: mode=none; tracked=47; blocked=12.

Rollback point: 19de461b10a21be362deb42ade91ba91dcf9756b — to revert, force-push this SHA to main and clear the sync-marks cache.

Triggered by: schedule
Run: https://github.com/microsoft-foundry/foundry-samples-pr/actions/runs/29312508088

)

* feat: auto-load .env in all C# hosted-agent samples for consistency

Add DotNetEnv (Env.TraversePath().Load()) to the 11 C# hosted-agent samples that did not already load a local .env file, so every C# sample picks up .env the same way. Adds the DotNetEnv 3.1.1 PackageReference to each project's existing package ItemGroup.

* fix: readme

* fix: use Env.NoClobber() so runtime env vars take precedence over .env

Change all C# hosted-agent samples to Env.NoClobber().TraversePath().Load() so environment variables provided by azd, the hosted container, or CI are not overwritten by a local .env file. Applied to all 28 samples (the 11 added in this PR plus the 17 that already loaded .env) for consistency.
@foundry-samples-repo-sync
foundry-samples-repo-sync Bot merged commit 22b2c89 into main Jul 14, 2026
7 checks passed
@foundry-samples-repo-sync
foundry-samples-repo-sync Bot deleted the sync/private-to-public-20260714-064925 branch July 14, 2026 06:53
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.

1 participant