diff options
author | Nate McMaster <natemcmaster@users.noreply.github.com> | 2019-01-02 21:30:09 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-02 21:30:09 +0300 |
commit | 97d3a34a3daf848beb0364c73feeb954852a7a0a (patch) | |
tree | 16544d44f55eba370fc11062c73d8799c36e6a1a /startvs.cmd | |
parent | f182b1adaca540574701adfd7b9a93853c30b222 (diff) |
Fix VS errors about repotasks when repotasks have not been built, and update documentation to indicate that VS users should invoke restore.cmd first (#6295)
Diffstat (limited to 'startvs.cmd')
-rw-r--r-- | startvs.cmd | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/startvs.cmd b/startvs.cmd index 79fde11abd..eb5818a0d7 100644 --- a/startvs.cmd +++ b/startvs.cmd @@ -17,11 +17,6 @@ SET PATH=%DOTNET_ROOT%;%PATH% SET sln=%1 -IF NOT EXIST "%DOTNET_ROOT%\dotnet.exe" ( - echo .NET Core has not yet been installed. Run `build.cmd -restore` to install tools - exit /b 1 -) - IF "%sln%"=="" ( echo Error^: Expected argument ^<SLN_FILE^> echo Usage^: startvs.cmd ^<SLN_FILE^> @@ -29,4 +24,9 @@ IF "%sln%"=="" ( exit /b 1 ) +IF NOT EXIST "%DOTNET_ROOT%\dotnet.exe" ( + echo .NET Core has not yet been installed. Run `%~dp0restore.cmd` to install tools + exit /b 1 +) + start %sln% |