Skip to content

Move dotnet.cmd/sh helper scripts into the repo root - #672

Merged
ViktorHofer merged 10 commits into
dotnet:masterfrom
ViktorHofer:DotNetHelperScripts
Dec 11, 2019
Merged

ViktorHofer merged 10 commits into
dotnet:masterfrom
ViktorHofer:DotNetHelperScripts

Conversation

@ViktorHofer

@ViktorHofer ViktorHofer commented Dec 8, 2019 •

Copy link
Copy Markdown
Member

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.

@ViktorHofer
ViktorHofer requested a review from trylek December 8, 2019 12:05
@ViktorHofer ViktorHofer self-assigned this Dec 8, 2019
@ViktorHofer ViktorHofer changed the title Dot net helper scripts Move dotnet.cmd/sh helper scripts into the repo root Dec 8, 2019
Comment thread dotnet.cmd Resolved
Introducing a dotnet.ps1 wrapper script which invokes the bootstrapping
logic so that output in dotnet.cmd isn't swallowed.

@wjk wjk left a comment

Copy link
Copy Markdown
Contributor

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.

Comment thread dotnet.sh
__dotnetDir=${_InitializeDotNetCli}

dotnetPath=${__dotnetDir}/dotnet
${dotnetPath} "$@"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
${dotnetPath} "$@"
${dotnetPath} "$@"
exec ${dotnetPath} "$@"

@trylek trylek left a comment

Copy link
Copy Markdown
Member

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!

Comment thread dotnet.cmd Resolved
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.
Comment thread dotnet.ps1 Resolved
@ViktorHofer

ViktorHofer commented Dec 9, 2019 •

Copy link
Copy Markdown
Member Author

I could submit a PR to arcade which handles the temporary file creation and get rid of the dotnet.ps1 here.

@ViktorHofer

Copy link
Copy Markdown
Member Author

Merging as the arcade PR is merged which means we won't loose the changes that I made to the tools.ps1 file.

@ViktorHofer
ViktorHofer merged commit f5957b1 into dotnet:master Dec 11, 2019
@ViktorHofer
ViktorHofer deleted the DotNetHelperScripts branch December 11, 2019 20:02
@ghost ghost locked as resolved and limited conversation to collaborators Dec 11, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants