Running StyleCop from the command line and in a TFS 2015 vNext build

Updated 6 Feb 2016 - See the newer post about the new vNext build task I have written to do the same job Virtually any automated build will require some customisation beyond a basic compile. So as part of my upcoming Techorama session on TFS 2015 vNext build I need a demo of using a custom script as part of the build process. Two common customisations we use are version stamping of assemblies and running code analysis tools. For vNext build there is already a sample of version stamping, so I thought getting StyleCop running would be a good sample. ...

April 3, 2015 · 8 min · Richard Fennell

All change - new SKUs for Visual Studio 2015

All change again on Visual Studio SKU licensing, have a look at the blog post on new SKUs for the 2015 release and also the 2015 product site. Basically it is a simplification. You can find the detailed feature break down on the comparison site

March 31, 2015 · 1 min · Richard Fennell

Cross platform build with TFS 2015 vNext Build

I have been preparing for my Techorama session on TFS vNext build. One of the demo’s I am planning is to use the Node based cross platform build agent to build something on a Linux VM. Turns out this takes a few undocumented steps to get this going with the CTP of TFS 2015 The process I followed was: I installed a Mint 17 VM On the VM, I installed the Node VSOAgent as detailed in the npm documentation (or I could have built it from from source from GitHub to get the bleeding edge version) I created a new agent instance vsoagent-installer I then tried to run the configuration, but hit a couple of issues _ node vsoagent_ URL error The first problem was I was told the URL I provided was invalid. I had tried the URL of my local TFS 2015 CTP VM ...

March 30, 2015 · 3 min · Richard Fennell

We are hosting a free event on Visual Studio ALM on the 18th March

Black Marble are hosting, at our offices, a Microsoft event on the 18th March on ALM with Visual Studio & TFS 2013. This is a repeat of the sell out event we hosted in the autumn. For details of the event and registration see the booking site

February 28, 2015 · 1 min · Richard Fennell

My DSC session is up at TechDays Online 2015 On-Demand

A couple of weeks ago I presented on DSC and Release Management as part of the Microsoft UK TechDays Online 2015 event. All the sessions from this three day event are now available on demand at TechDays Online 2015 on-demand sessions. You do seem to have to register/login to see the content, so I can’t deep link to my session, but browsing the catalogue is a good idea there are some great sessions ...

February 17, 2015 · 1 min · Richard Fennell

Build arguments are not returned for a build definition via the TFS API if they are left as default values

We use my TFS Alerts DSL to perform tasks when our TFS build complete, one of these is a job to increment the minor version number and reset the version start date (the value that generates third field – days since a point in time) if a build is set to the quality ‘release’ e.g. 1.2.99.[unique build id] where 99 is the days count since some past date could change to 1.3.0.[unique build id] (see this old post on how we do this in the build process) ...

February 11, 2015 · 2 min · Richard Fennell

Choices DDD South West or the Maker Faire?

Speaker registration for DDD South West has opened, problem is the event is the same weekend as the Maker Faire in Newcastle, don’t think I can do both. Both are great options though, good to have choices

February 9, 2015 · 1 min · Richard Fennell

Windows 10 to be an option on the Raspberry PI 2

Seem Windows 10 will be an option on the new Raspberry PI 2, that provides some more nice IoT options. It will be interesting to see which tools Microsoft look to target onto this board, I guess remote development from a PC as per their Galileo board. But there might be enough power for a bit more, we shall see

February 2, 2015 · 1 min · Richard Fennell

Fix for timeout exporting a SQL Azure DB using PowerShell or SQLPackage.exe

I have been trying to export a SQL Azure DB as a .BACPAC using the command line “C:Program Files (x86)Microsoft SQL Server120DACbinSqlPackage.exe” /action:Export /sourceservername:myserver.database.windows.net /sourcedatabasename:websitecontentdb /sourceuser:sa@myserver /sourcepassword: /targetfile:db.bacpac The problem is the command times out after around an hour, at the ‘Extracting schema from database’ stage. I got exactly the same issue if I use PowerShell as discussed in Sandrino Di Mattia’s post. The issue is the Azure service tier level I am running the SQL DB on. ...

February 2, 2015 · 1 min · Richard Fennell

Wrong package location when reusing a Release Management component

Whilst setting up a new agent based deployment pipeline in Release Management I decided I to reuse an existing component as it already had the correct package location set and correct transforms for the MSDeploy package. Basically this pipeline was a new copy of an existing website with different branding (css file etc.), but the same configuration options. I had just expected this work, but I kept getting ‘file not found’ errors when MSDeploy was run. On investigation I found that the package location for the component was wrong, it was the build drop root, not the sub folder I had specified. ...

January 31, 2015 · 1 min · Richard Fennell