summaryrefslogtreecommitdiff
path: root/eng/update-dependencies.cmd
diff options
context:
space:
mode:
authorTanner Gooding <tagoo@outlook.com>2019-02-19 07:29:07 -0800
committerGitHub <noreply@github.com>2019-02-19 07:29:07 -0800
commitdd5a4952942fbdda01ad779d648d21e5a91a87a6 (patch)
treefb9f942a56f36c2523cf6c439002b0101497b75c /eng/update-dependencies.cmd
parent388a7d415d8f5b45c3ca6e74d8b0885a20d0b962 (diff)
downloadcoreclr-dd5a4952942fbdda01ad779d648d21e5a91a87a6.tar.gz
coreclr-dd5a4952942fbdda01ad779d648d21e5a91a87a6.tar.bz2
coreclr-dd5a4952942fbdda01ad779d648d21e5a91a87a6.zip
Adding an update-dependencies.cmd script, like CoreFX has. (#22672)
Diffstat (limited to 'eng/update-dependencies.cmd')
-rw-r--r--eng/update-dependencies.cmd23
1 files changed, 23 insertions, 0 deletions
diff --git a/eng/update-dependencies.cmd b/eng/update-dependencies.cmd
new file mode 100644
index 0000000000..8a81f5b8d8
--- /dev/null
+++ b/eng/update-dependencies.cmd
@@ -0,0 +1,23 @@
+@if not defined _echo @echo off
+setlocal
+
+:: Clear the 'Platform' env variable for this session, as it's a per-project setting within the build, and
+:: misleading value (such as 'MCD' in HP PCs) may lead to build breakage (issue: #69).
+set Platform=
+
+:: Restore the Tools directory
+call "%~dp0..\init-tools.cmd"
+if NOT [%ERRORLEVEL%]==[0] (
+ exit /b 1
+)
+
+set "DotNetCli=%~dp0..\Tools\dotnetcli\dotnet.exe"
+set "DependenciesBuildProj=%~dp0..\tests\build.proj"
+
+echo Running: "%DotNetCli%" msbuild "%DependenciesBuildProj%" %*
+call "%DotNetCli%" msbuild "%DependenciesBuildProj%" %*
+if NOT [%ERRORLEVEL%]==[0] (
+ exit /b 1
+)
+
+exit /b 0