PermalinkSwitch branches/tags
Cannot retrieve contributors at this time
master
Could not load branches
Nothing to show
{{ refName }}default
Could not load tags
Nothing to show
{{ refName }}defaultName already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
coreclr/dotnet.sh
Go to file- Go to file
Copy path Copy permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
working_tree_root="$(cd"$( dirname"${BASH_SOURCE[0]}")"&&pwd)" | |
__ProjectDir=${working_tree_root} | |
__RepoRootDir=${working_tree_root}/../.. | |
# BEGIN SECTION to remove after repo consolidation | |
if [!-f"${__RepoRootDir}/.dotnet-runtime-placeholder" ];then | |
__RepoRootDir=${__ProjectDir} | |
fi | |
# END SECTION to remove after repo consolidation | |
# Don't resolve runtime, shared framework, or SDK from other locations to ensure build determinism | |
export DOTNET_MULTILEVEL_LOOKUP=0 | |
# Disable first run since we want to control all package sources | |
export DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1 | |
source${__RepoRootDir}/eng/common/tools.sh | |
InitializeDotNetCli | |
__dotnetDir=${_InitializeDotNetCli} | |
if [$?!= 0 ];then | |
echo"Failed to install dotnet using Arcade" | |
exit$? | |
fi | |
dotnetPath=${__dotnetDir}/dotnet | |
echo"Running:${dotnetPath}$@" | |
${dotnetPath}"$@" | |
if [$?-ne 0 ] | |
then | |
echo"ERROR: An error occurred in${dotnetPath}$@. Check logs under$working_tree_root." | |
exit 1 | |
fi | |
echo"Command successfully completed." | |
exit 0 |