↓ Skip to main content
The technical notebook of Bryan Avery

Ideas worth sharing.

Practical notes on software architecture, cloud platforms, security and AI. Written from real engineering experience, with an eye on what actually works.

A little about me

Latest articles

553 articles in the archive

NuGet Packaging

·1 min
With all this talk about NuGet, NuGet Gallery, I’d thought I’d share with you the NuGet Package Explorer. It is to install and very easy to use too, check out this article on Using the NuGet Package Explorer

Building to your NuGet Gallery

·5 mins
Build Process Meets NuGet Gallery The next logical step is integrating your NuGet gallery with your existing build processes. If you don’t have a build process and you’re looking for a little “getting started” guidance with Team Foundation Server (TFS) build processes, check out the Microsoft Visual Studio ALM Rangers Build Customization Guide at rabcg.codeplex.com.

Your very own NuGet Gallery

·3 mins
Why Host your own NuGet Gallery? NuGet.org already exists as a public repository for NuGet packages, so you might question the point of hosting a gallery. That’s understandable, but what about leveraging that ecosystem infrastructure within the walls of your own dev environment? Why not set up your own private gallery not only to facilitate your product’s development ecosystem but, better yet, to tie it directly to your build and deployment processes? Moreover, anything you see at NuGet.org is available to you free.

.NET Security

·1 min
With security paramount on all applications here are a few links which will help you get started: Seven phases of the traditional software development lifecycle define Security Development Lifecycle (SDL) process. Microsoft Security Development Lifecycle Core Training classes

Download links

·1 min
I’m always after the correct download links, and it takes me sometime to make sure I have the right ones, so here they are. As I come up with more I’ll keep this page updated

Deploy website from Visual Studio to IIS

·1 min
MSDeploy is really good for deploying websites and syncing up websites but it can be a real pain to configure and get going intially. The MSDeploy documentation is a bit poor as well and quite often you’ll get a very strange error which can be quite cryptic.

VS12 switching Menu to Lowercase

·1 min
If you are like me and you don’t like people shouting, you’ll be quite releaved that you can stop the Menus from Visual Studio 2012 from shouting at you by changing the Menus from Uppercase to Lowercase is as simple as adding the following key in the registry:

Need to Localize an XSLT

·2 mins
Here is our attempt at the XLST translator, main chunk of the work was by Darren, it’s a console application that applies an xsl (i.e. circle.xsl) to some xml (i.e. number.xml) and writes out the result to a console window.

EntityFramework 4.0 and SQL 2000

·2 mins
If you are like me, some customer just can’t upgrade from SQL 2000, so how do you use the EntityFramework 4.0+ with SQL Server 2000? Here is one solution that has worked for me: Here are the steps to add a new Entity Framework 4.0+ entity context to a Visual Studio 2010 project:

iOS 6 Passbook problem

·1 min
So you’ve upgraded to iOS 6 and keen to tryout all the new features one of them being the Passbook, time to get rid of all those printed tickets and even start thinking of replacing that old leather wallet.

SQL Server Broker

·1 min
I’ve been playing with SQL Server Broker services to allow me to notify my C# code when some data has been changed, but first you need to enable SSB (SQL Server Broker). The easiest way of doing this is to us the following SQL statement:

MEF with MS Workflow

·2 mins
I’ve been a strong advocator of MEF for some time now, and with some of my work is now based around MS Workflow I thought it would be a good time to get MEF working with MS Workflow.

Using MEF in MVC to inject Controllers

·2 mins
After travelling for a year I was interest to see if MEF would work with MVC, and after some digging around I found it can. ***UPDATED**** Added a CastleWindsor example With any MEF you’ll need a Composition Factory which in this case I’ll place in the MEF directory, but it can be in a different project if required.

Assigning SSL certificate in IIS 6

·5 mins
If when in a test invironment you need to test out SSL (HTTPS) on your website you can create a self-assigning SSL certificate (this process only appiles to IIS6) Typically, Secure Socket Layer (SSL) Certificates are created for domains by first generating a Certificate Signing Request (CSR) through Internet Information Services (IIS), sending the request to a known Certification Authority, such as GeoTrust, which generates a corresponding Certificate file for use in conjunction with the CSR, completing the request and securing communications on the domain.

The TFS shuffle

·1 min
If you are like me you perform a shuffle before checking anything in to a Source Control Repository and TFS is no different As for shuffle: Get Latest Fix merge conflicts Build Fix build errors Run tests Fix broken tests Go to 1 (until there is nothing new to get) Only check in when all steps are complete.