Context
PR #53464 review identified that dotnetup defaultinstall is about the PathPreference mode setting, and that we aren't doing that across all platforms correctly yet.
Related PR Comment
- WalkthroughWorkflows.cs L390 — @dsplaisted: "
dotnetup defaultinstall isn't really related to whether runtimes are copied from the admin install. It's more about the 'PathPreference' mode setting. We should update the defaultinstall command to set the path preference in the config, and to be able to handle the difference between ShellProfile and FullPathReplacement. We can file a follow-up issue for that."
Description
The defaultinstall command should:
- Set the
PathPreference in the dotnetup config
- Handle the difference between
ShellProfile (modifying shell profile to prepend dotnetup path) and FullPathReplacement (replacing the system PATH entry)
- Not be confused with runtime/SDK migration from admin installs
References to dotnetup defaultinstall were removed from the migration prompts in the walkthrough as part of PR #53464, but the command itself needs updating.
Acceptance Criteria
Relevant Code
src/Installer/dotnetup/Commands/Walkthrough/WalkthroughWorkflows.cs
src/Installer/dotnetup/DotnetupConfig.cs
Context
PR #53464 review identified that
dotnetup defaultinstallis about the PathPreference mode setting, and that we aren't doing that across all platforms correctly yet.Related PR Comment
dotnetup defaultinstallisn't really related to whether runtimes are copied from the admin install. It's more about the 'PathPreference' mode setting. We should update the defaultinstall command to set the path preference in the config, and to be able to handle the difference between ShellProfile and FullPathReplacement. We can file a follow-up issue for that."Description
The
defaultinstallcommand should:PathPreferencein the dotnetup configShellProfile(modifying shell profile to prepend dotnetup path) andFullPathReplacement(replacing the system PATH entry)References to
dotnetup defaultinstallwere removed from the migration prompts in the walkthrough as part of PR #53464, but the command itself needs updating.Acceptance Criteria
dotnetup defaultinstallsetsPathPreferencein the configShellProfileandFullPathReplacementmodesRelevant Code
src/Installer/dotnetup/Commands/Walkthrough/WalkthroughWorkflows.cssrc/Installer/dotnetup/DotnetupConfig.cs