Skip to content

Instantly share code, notes, and snippets.

@shaunluttin
Last active August 29, 2015 14:22
Show Gist options
  • Save shaunluttin/284c3cd126c66640eeef to your computer and use it in GitHub Desktop.
Save shaunluttin/284c3cd126c66640eeef to your computer and use it in GitHub Desktop.
deploy.cmd - Build to the temporary path
:: 2. Build to the temporary path
IF /I "%IN_PLACE_DEPLOYMENT%" NEQ "1" (
call :ExecuteCmd "%MSBUILD_PATH%" "%DEPLOYMENT_SOURCE%\MyWebApp\MyWebApp.csproj" /nologo /verbosity:m /t: Build /t:pipelinePreDeployCopyAllFilesToOneFolder /p:_PackageTempDir="%DEPLOYMENT_TEMP%";AutoParameterizati onWebConfigConnectionStrings=false;Configuration=Release /p:SolutionDir="%DEPLOYMENT_SOURCE%\.\\" %SCM_BUIL D_ARGS%
) ELSE (
call :ExecuteCmd "%MSBUILD_PATH%" "%DEPLOYMENT_SOURCE%\MyWebApp\MyWebApp.csproj" /nologo /verbosity:m /t: Build /p:AutoParameterizationWebConfigConnectionStrings=false;Configuration=Release /p:SolutionDir="%DEPLOY MENT_SOURCE%\.\\" %SCM_BUILD_ARGS%
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment