Adding an update-dependencies.cmd script, like CoreFX has. (#22672)
authorTanner Gooding <tagoo@outlook.com>
Tue, 19 Feb 2019 15:29:07 +0000 (07:29 -0800)
committerGitHub <noreply@github.com>
Tue, 19 Feb 2019 15:29:07 +0000 (07:29 -0800)
eng/update-dependencies.cmd [new file with mode: 0644]

diff --git a/eng/update-dependencies.cmd b/eng/update-dependencies.cmd
new file mode 100644 (file)
index 0000000..8a81f5b
--- /dev/null
@@ -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