Skip to content

{ Monthly Archives } January 2010

MsBuild execution of SoapUI testrunner

I have just been writing an msbuild runner to wrap testrunner for soapUI. Here it is. There are a couple of techniques to note: stacking the args for the commandline in an ItemGroup (see thanks below) don’t forget to Html Escape quots when invoking command line ie &quot I also dependency check for each And [...]

Tagged , ,

One deployment for all environments

Deploy the package This set of instructions should be reasonably straightforward. Always have the same deployment technique throughout all environments. In this case, I am explaining a strategy that which uses MSBuild to trigger installations and upgrades. This simple tenet that can be hard to follow. Often we also need manual intervention, or simply need [...]

Tagged

Understanding the packaging

Build the package So what we’ll do is actually build a package by using the command msbuild /t:PackageBeta Below is the output that I have shorted so that you can see major targets that create the package as a zip file in the location: CodeToDeploy\Releases\Sample-Beta-0.1.0.0.zip Version Clean Publish Zip C:\src\deployment>msbuild /t:PackageBeta Microsoft ® Build Engine [...]

Tagged

Commandline msbuild in action

Commandline msbuild So you’ve checked out the code. Now commandline it to the root folder of the project. Run msbuild.exe. Did it work? Probably not. That is because you don’t have msbuild on your path environment variable. There’s a couple of ways. When you installed Visual Studio, on the Start Menu it provides you with [...]

Tagged

MSBuild deployment sample for web applications

Check out the code sample Download the Deployment Code Sample from github and select to download the zip archive of the source Overview of the code VERSION.xml build.bat build.proj lib/ MSBuildCommunityTasks/ extensionpack/ migratordotnet/ sdc/ teambuild/ scripts/ build.tasks db/ create.sql domainuser-for-db.sql drop.sql user-for-db.sql db-setup.tasks deploy.proj directorybrowsing.xml install.tasks migrations.tasks package.tasks version.tasks src/ Infrastructure/ Database/ Migrations/ Migr_001_CreateBanner_Table.cs Sql/ [...]

Tagged , ,

Introduction to using msbuild to manage (asp.net mvc) application lifecycles

Introduction: what’s there to really manage? Part 1: Code Overview Part 2: Commandline msbuild in action Part 3: Understanding the packaging Part 4: Build & Test on your local machine Part 5: First-time installs and redeployments Parts 5-7 to come Summary and References Introduction Ever since … well since ever … I have needed to [...]

Tagged ,

msbuild-overview

Just some notes on msbuild General process on buildserver Checkout: Checks out the latest source into the build directory. Build: Uses MSBUILD to build the project, do appropriate versioning and run the unit tests Package: Creates a set of the binaries, scripts and documentation in an installable form (eg zip, msi, exe) Smoke Test: Deploys [...]