tag:blogger.com,1999:blog-7806605514179331942.post2775324396915463602..comments2023-09-08T01:45:44.128-07:00Comments on Ramblings from Rhys: PowerShell to save the day!Anonymoushttp://www.blogger.com/profile/05255012174375838982noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-7806605514179331942.post-88282208097303852442009-09-14T19:20:25.349-07:002009-09-14T19:20:25.349-07:00Unfortunatley i can not post those scripts as ther...Unfortunatley i can not post those scripts as there were written on compnay time, which mean they have company IP.<br />I can however explain what i did.<br />I have a PowerShell script that takes in the application name, display name and version (supplied by the build server).<br />The script does some checks (ie do files exist is the version in the right format etc). The powershell file calls an MSbuild file which does a basic build and test (using gallio) running my tests (unit integration etc).<br />Next it prepares the solution for staging. we push our versioned environemnt specific clickonce builds to a staging area so we have at any given time the dev test uat and prod version of the software. why? we are not a very mature department and this mean we have on the network share a back up and can quicly release application or push out a build toi the next environment quickly. this has work very well for us.<br />As we have 4 environments we loop thru this process 4 times.<br />Firstly we copy over the env specifc configs, then update the assembly info (uisng MSBuild Com ex tasks)<br />We then publish to the staging folder again using msbuild.<br />Ideally i will be pushing this to a PSake script for more clarity but it can/is easily done with naitve PS. its actually quite simple code, its just facilitating a process. Without a decent process then it doesnt mean muchAnonymoushttps://www.blogger.com/profile/05255012174375838982noreply@blogger.comtag:blogger.com,1999:blog-7806605514179331942.post-39979753459057305652009-09-14T15:29:39.055-07:002009-09-14T15:29:39.055-07:00Would be very interested to see your solution as I...Would be very interested to see your solution as I am almost exactly the same situation you were in. <br /><br />I want to let this company keep their click-once deployment strategy if at all possible as they are very comfortable with it.Chris Nicolahttps://www.blogger.com/profile/00427805306827828707noreply@blogger.com