Skip to content

Commit 8beacf8

Browse files
committed
use system dotnet on freebsd
1 parent b062275 commit 8beacf8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: src/dev.sh

+4
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,10 @@ if [[ (! -d "${DOTNETSDK_INSTALLDIR}") || (! -e "${DOTNETSDK_INSTALLDIR}/.${DOTN
220220
sdkinstallwindow_path=${DOTNETSDK_INSTALLDIR:1}
221221
sdkinstallwindow_path=${sdkinstallwindow_path:0:1}:${sdkinstallwindow_path:1}
222222
$POWERSHELL -NoLogo -Sta -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -Command "& \"./Misc/dotnet-install.ps1\" -Version ${DOTNETSDK_VERSION} -InstallDir \"${sdkinstallwindow_path}\" -NoPath; exit \$LastExitCode;" || checkRC dotnet-install.ps1
223+
# FIXME: binary for freebsd is not on https://dotnetcli.azureedge.net
224+
elif [[ ("$CURRENT_PLATFORM" == "freebsd") ]]; then
225+
echo "Skip installing dotnet, use system dotnet"
226+
command -v dotnet
223227
else
224228
bash ./Misc/dotnet-install.sh --version ${DOTNETSDK_VERSION} --install-dir "${DOTNETSDK_INSTALLDIR}" --no-path || checkRC dotnet-install.sh
225229
fi

0 commit comments

Comments
 (0)