Skip to content

Instantly share code, notes, and snippets.

@vtml
Created October 31, 2018 12:43
Show Gist options
  • Save vtml/c8745ba08a191a405c8f8ec6f92bdaad to your computer and use it in GitHub Desktop.
Save vtml/c8745ba08a191a405c8f8ec6f92bdaad to your computer and use it in GitHub Desktop.
Building a TDS Package on a Developer's workstation
@echo off
:: global parameters
set msbuild="C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe"
set solution="..\Some.Sitecore.sln"
echo Please enter a Git Commit Hash, leaving it empty to build the entire TDS packages.
set GitCommitId =
set /P GitCommitId=
If "%GitCommitId%" == "" GOTO BuildFullTds
If "%GitCommitId%" NEQ "" GOTO GitDeltaDeploy
:GitDeltaDeploy
%msbuild% %solution% /property:Configuration=Tds /property:LastDeploymentGitCommitID=%GitCommitId% /property:LastDeploymentGitTagName=
GOTO END
:BuildFullTds
%msbuild% %solution% /property:Configuration=Tds /property:CullProjectFiles=False /property:CustomGitDeltaDeploy=False
GOTO END
:END
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment