Skip to content
Permalink
Browse files

Run nuget restore in the .bat files

  • Loading branch information
dgrunwald committed Dec 4, 2019
1 parent 31fe4f7 commit 2bb03f556cdaf4bcb7d25c7d232121f72dc7b5a7
Showing with 6 additions and 43 deletions.
  1. +3 −7 debugbuild.bat
  2. +0 −29 preparerelease.bat
  3. +3 −7 releasebuild.bat
@@ -1,6 +1,6 @@
@setlocal enabledelayedexpansion
@set MSBUILD=
@for /D %%M in ("%ProgramFiles(x86)%\Microsoft Visual Studio\2019"\*) do (
@for /D %%M in ("%ProgramFiles(x86)%\Microsoft Visual Studio\2019"\*) do @(
@if exist "%%M\MSBuild\Current\Bin\MSBuild.exe" (
@set "MSBUILD=%%M\MSBuild\Current\Bin\MSBuild.exe"
)
@@ -9,9 +9,5 @@
@echo Could not find VS2019 MSBuild
@exit /b 1
)
"%MSBUILD%" ILSpy.sln /p:Configuration=Debug "/p:Platform=Any CPU"
@IF %ERRORLEVEL% NEQ 0 (
@pause
@exit /b 1
)
@exit /b 0
@nuget restore ILSpy.sln || (pause && exit /b 1)
"%MSBUILD%" ILSpy.sln /p:Configuration=Debug "/p:Platform=Any CPU" || (pause && exit /b 1)

This file was deleted.

@@ -1,6 +1,6 @@
@setlocal enabledelayedexpansion
@set MSBUILD=
@for /D %%M in ("%ProgramFiles(x86)%\Microsoft Visual Studio\2019"\*) do (
@for /D %%M in ("%ProgramFiles(x86)%\Microsoft Visual Studio\2019"\*) do @(
@if exist "%%M\MSBuild\Current\Bin\MSBuild.exe" (
@set "MSBUILD=%%M\MSBuild\Current\Bin\MSBuild.exe"
)
@@ -9,9 +9,5 @@
@echo Could not find VS2019 MSBuild
@exit /b 1
)
"%MSBUILD%" ILSpy.sln /p:Configuration=Release "/p:Platform=Any CPU"
@IF %ERRORLEVEL% NEQ 0 (
@pause
@exit /b 1
)
@exit /b 0
@nuget restore ILSpy.sln || (pause && exit /b 1)
"%MSBUILD%" ILSpy.sln /p:Configuration=Release "/p:Platform=Any CPU" || (pause && exit /b 1)

0 comments on commit 2bb03f5

Please sign in to comment.
You can’t perform that action at this time.