Skip to content

Commit

Permalink
Update deploy.function.cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
Vishnu-MSFT authored Mar 26, 2020
1 parent 22d525d commit 601b96f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions deploy.function.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,14 @@ SET MSBUILD_PATH=%MSBUILD_15_DIR%\MSBuild.exe
echo Handling ASP.NET Core Web Application deployment.

:: 1. Restore nuget packages
call :ExecuteCmd nuget restore "%DEPLOYMENT_SOURCE%\Source\Microsoft.Teams.Apps.QBot.sln"

call :ExecuteCmd dotnet restore "%DEPLOYMENT_SOURCE%\Source\Microsoft.Teams.Apps.QBot.sln"
IF !ERRORLEVEL! NEQ 0 goto error

:: 2. Build and publish
call :ExecuteCmd "%MSBUILD_PATH%" "%DEPLOYMENT_SOURCE%\Source\Microsoft.Teams.Apps.QBot.Data\Microsoft.Teams.Apps.QBot.Data.csproj" /verbosity:m /t:Build /t:pipelinePreDeployCopyAllFilesToOneFolder /p:_PackageTempDir="%DEPLOYMENT_TEMP%";Configuration=Release;UseSharedCompilation=false /p:SolutionDir="%DEPLOYMENT_SOURCE%\Source\\"

call :ExecuteCmd dotnet publish "%DEPLOYMENT_SOURCE%\Source\Microsoft.Teams.Apps.QBot.FunctionApp\Microsoft.Teams.Apps.QBot.FunctionApp.csproj" --output "%DEPLOYMENT_TEMP%" --configuration Release
IF !ERRORLEVEL! NEQ 0 goto error

Expand Down

0 comments on commit 601b96f

Please sign in to comment.