summaryrefslogtreecommitdiff
path: root/init-dotnet.cmd
blob: ad70b4c42af07a8c9c5fc30a61e4b9120f470938 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
@if not defined _echo @echo off
setlocal

echo Installing dotnet using Arcade...
set PS_DOTNET_INSTALL_SCRIPT=". %~dp0eng\configure-toolset.ps1; . %~dp0eng\common\tools.ps1; InitializeBuildTool"
echo running: powershell -NoProfile -ExecutionPolicy unrestricted -Command %PS_DOTNET_INSTALL_SCRIPT%
powershell -NoProfile -ExecutionPolicy unrestricted -Command %PS_DOTNET_INSTALL_SCRIPT%
if NOT [%ERRORLEVEL%] == [0] (
  echo Failed to install dotnet using Arcade.
  exit /b %ERRORLEVEL%
)

exit /b 0