-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Move dotnet.cmd/sh helper scripts into the repo root #672
Conversation
Introducing a dotnet.ps1 wrapper script which invokes the bootstrapping logic so that output in dotnet.cmd isn't swallowed.
…runtime into DotNetHelperScripts
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just one thought, mostly stylistic in nature.
__dotnetDir=${_InitializeDotNetCli} | ||
|
||
dotnetPath=${__dotnetDir}/dotnet | ||
${dotnetPath} "$@" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
${dotnetPath} "$@" | |
${dotnetPath} "$@" | |
exec ${dotnetPath} "$@" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thanks for cleaning this up!
Add the powershell script back and invoke the SDK in the corresponding root script.
To avoid a nested process chain in which the inner process then invokes the host, we instead create a temporary file to store the sdk location.
I could submit a PR to arcade which handles the temporary file creation and get rid of the dotnet.ps1 here. |
Merging as the arcade PR is merged which means we won't loose the changes that I made to the tools.ps1 file. |
Several people expressed their interest in having the dotnet.cmd/ps1/sh helper scripts, which invoke the correct dotnet, in the repo root. This also improves the local developer workflow as it offers an alternative to invoking the globally installed dotnet.