Skip to content
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

Merged
merged 10 commits into from
Dec 11, 2019

Conversation

ViktorHofer
Copy link
Member

@ViktorHofer ViktorHofer commented Dec 8, 2019

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
Introducing a dotnet.ps1 wrapper script which invokes the bootstrapping
logic so that output in dotnet.cmd isn't swallowed.
Copy link
Contributor

@wjk wjk left a 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} "$@"
Copy link
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} "$@"

Copy link
Member

@trylek trylek left a 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.
@ViktorHofer
Copy link
Member Author

ViktorHofer commented Dec 9, 2019

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

@ViktorHofer
Copy link
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