Permalink
Browse files

Add MSBuild to .deployment

  • Loading branch information...
guitarrapc committed Jan 10, 2017
1 parent 9762822 commit 09ab6e95f631756941ec8bd074002a649f3b62ea
Showing with 17 additions and 0 deletions.
  1. +17 −0 deploy.cmd
View
@@ -48,6 +48,23 @@ IF NOT DEFINED KUDU_SYNC_CMD (
SET KUDU_SYNC_CMD=%appdata%\npm\kuduSync.cmd
)
+::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
+:: Build
+:: -----
+
+:: NuGet package restore
+echo "Restoring solution packages"
+FOR /F %%d in ('DIR "*.sln" /S /B') DO (
+ call nuget restore %%d
+)
+
+:: MSBuild
+echo "MSBuild solution"
+FOR /F %%d in ('DIR "*.sln" /S /B') DO (
+ call msbuild.exe %%d /p:Configuration=Release
+ IF !ERRORLEVEL! NEQ 0 goto error
+)
+
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: Deployment
:: ----------

0 comments on commit 09ab6e9

Please sign in to comment.