.net Assembly Versioning using Powershell

[cmdletBinding()] param ( ///[parameter(Mandatory =$true)] $PathToProjectRoot, [parameter(Mandatory =$true)] $major, [parameter(Mandatory =$true)] $minor, [parameter(Mandatory =$true)] $svcpck, [parameter(Mandatory =$true)] $rev, ///[parameter(Mandatory =$true)] $AssemblyInfoFileName ) #Unit Testing data <#$PathToProjectRoot = “C:\BambooBld\SVE-SVC-JOB1″ $major=”1″ $minor=”0″ $svcpck=”3″ $rev=”76” $AssemblyInfoFileName = “GlobalAssemblyInfo”#> $PathToProjectRoot = $PathToProjectRoot.Trim(“\”) if (($major -eq $null) -or ($major -eq “”)) { throw “Major version CANNOT be blank!” } if[…]

Deploy window services code using MsDeploy

“C:\Program Files (x86)\IIS\Microsoft Web Deploy V3\msdeploy.exe” -source:package=’\\QAAppPackDrops\xxx-DAILY-BUILD-xxDEV\1.2.0.55\CA.UI_Package\CA.UI.zip’ -dest:auto,ComputerName=”https://webservername:8172/MsDeploy.axd?site=xx.Interface“,UserName=’BuildMachine’,Password=’xx’,IncludeAcls=’False’,AuthType=’Basic’ -verb:sync -disableLink:AppPoolExtension -disableLink:ContentExtension -disableLink:CertificateExtension -setParamFile:”\\QAAppPackDrops\xxx-DAILY-BUILD-CADEV\1.2.0.55\SetParameters_Release – QA.xml” -allowUntrusted -retryAttempts=2 –setParam:name=”IIS Web Application Name”,value=”website”