Skip to content

Find the .NET SDK in ~/.dotnet when it is not on PATH - #4

Merged
Antaris merged 2 commits into
mainfrom
cursor/find-dotnet-sdk-4329
Aug 16, 2026
Merged

Find the .NET SDK in ~/.dotnet when it is not on PATH#4
Antaris merged 2 commits into
mainfrom
cursor/find-dotnet-sdk-4329

Conversation

@Antaris

@Antaris Antaris commented Aug 16, 2026

Copy link
Copy Markdown
Contributor

bld self-update failed with dotnet was not found on PATH after a script install.

scripts/install.sh puts the SDK in ~/.dotnet and only adds that directory to PATH for the install session. The self-contained bld binary stays on PATH via ~/.local/bin, so later self-update / build runs often cannot see dotnet.

Change

  • Resolve the SDK muxer from PATH, then ~/.dotnet, then well-known system locations
  • Require an sdk directory so a runtime-only install is skipped
  • Point child dotnet processes at that SDK (DOTNET_ROOT / DOTNET_HOST_PATH) so a self-contained bld does not hide it
  • Same lookup is used by build
# reproduces before this change
env PATH="$HOME/.local/bin:/usr/bin:/bin" bld self-update
Open in Web Open in Cursor 

cursoragent and others added 2 commits August 16, 2026 12:00
self-update and build were failing after a script install because the SDK lives in ~/.dotnet and that directory is often omitted from PATH.

Co-authored-by: Matthew Abbott <matt@ingeniumsoftware.dev>
Co-authored-by: Matthew Abbott <matt@ingeniumsoftware.dev>
@Antaris
Antaris marked this pull request as ready for review August 16, 2026 12:00
@cursor

cursor Bot commented Aug 16, 2026

Copy link
Copy Markdown

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

@Antaris
Antaris merged commit 3f55c1f into main Aug 16, 2026
3 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.

2 participants