tfs - Checking Out AssemblyInfo Files via PowerShell Script -
i wanted post replies following post...
check-out files tfs 2010 powershell
... couldn't don't have reputation yet.
anyway, need check out assemblyinfo* files recursively adjust versioning information during our tfs build process. i've been playing around pre-build scripts build definition, doesn't seem having effect (modified above post)...
#checking out files if ((get-pssnapin -name microsoft.teamfoundation.powershell -erroraction silentlycontinue) -eq $null ) { add-pssnapin microsoft.teamfoundation.powershell -erroraction silentlycontinue if ((get-pssnapin -name microsoft.teamfoundation.powershell -erroraction silentlycontinue) -eq $null ) { #try check out code using command line tf.exe &"c:\program files (x86)\microsoft visual studio 12.0\common7\ide\tf.exe" checkout assemblyinfo* /recursive | out-null } else{ #checkout file using snapin add-tfspendingchange -edit assemblyinfo*| out-null } }else{ #checkout file using snapin add-tfspendingchange -edit assemblyinfo*| out-null } as can see, i'm no powershell guru, want learn. hacked away , combined of concepts in above linked post, isn't working pre-build script. wanted see files checked out during build (not checked in yet testing purposes), after build completes, there no files checked out in tfs. i'm not sure if else checking files in tfs build itself, doesn't appear script working.
what check out assemblyinfo files recursively, update versions, compile binaries, possibly launch post-build script check files in.
i found versioning script here appears work , seems easy implement. hoping combine concepts of checkout , versioning 1 script.
can lead me in right direction or illustrate doing wrong? guess should state i'm using tfs/vs 2013.
Comments
Post a Comment