Skip to content

Add notes about dnx #47094

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Add notes about dnx #47094

wants to merge 3 commits into from

Conversation

baronfel
Copy link
Member

@baronfel baronfel commented Jul 3, 2025

Summary

Add a brief snippet about the new dnx script and how it should be packaged by distro maintainers.

Fixes dotnet/sdk#49649


Internal previews

📄 File 🔗 Preview link
docs/core/distribution-packaging.md docs/core/distribution-packaging

Add a brief snippet about the new `dnx` script.
@baronfel baronfel requested a review from a team as a code owner July 3, 2025 17:05
@dotnetrepoman dotnetrepoman bot added this to the July 2025 milestone Jul 3, 2025
@baronfel baronfel requested a review from MichaelSimons July 3, 2025 17:12
@baronfel
Copy link
Member Author

baronfel commented Jul 3, 2025

@MichaelSimons / @tmds is it reasonable to add the version-independent dnx script to the host package as a recommendation? If adding to an existing package isn't allowed for reasons I'm happy to suggest a new package.

@tmds
Copy link
Member

tmds commented Jul 3, 2025

it reasonable to add the version-independent dnx script to the host package as a recommendation?

Yes, this sounds good to me, it's the simplest solution.

@tmds
Copy link
Member

tmds commented Jul 3, 2025

@baronfel we also need a symlink similar to (10).

@baronfel
Copy link
Member Author

baronfel commented Jul 3, 2025

@baronfel we also need a symlink similar to (10).

of course! That's kind of a critical part of making everything Just Work ™️ . Thanks for the review.

@MichaelSimons
Copy link
Member

Attention @dotnet/distro-maintainers

@mateusrodrigues
Copy link
Member

mateusrodrigues commented Jul 4, 2025

If dotnet dnx is an SDK command, should dnx be packaged in the dotnet-host package rather than the dotnet-sdk-X.Y package?

e.g., if the user installs only the runtime (dotnet-runtime-X.Y), which pulls in dotnet-host, they will have a dnx script that doesn't work because there is no SDK, as I understand it.

EDIT: Now that I think about it, I guess the issue is that multiple SDK packages would then provide the same set of files, which is a problem. I'm curious, though, to know how dnx would handle the non-existence of dotnet dnx when there's no SDK installed.

@BillWagner BillWagner requested a review from adegeo July 7, 2025 12:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

dnx packaging guidelines
5 participants