← all years

Posts from 2017

15 postsRSS ↗
Dec 28, 2017·5 min read

BenchmarkDotNet: IsBoolean method

This post might seem weird and is slightly. It's really just a pointer as with all my posts to send people to instead of sharing lots of text "on the down low" 😁.

BenchmarkDotNetJust Coding
Dec 07, 2017·1 min read

Work Around for .NET Framework 4.7 or a later update is already installed on this computer

I see this message most times I format my machines after opening existing projects in Visual Studio and I always forgot how I solve it

Visual Studiodotnet
Aug 06, 2017·3 min read

Connecting agents to TFS using integrated security on http from external domain

If you have TFS on the domain but you are trying to connect agents to it from outside the domain and TFS is not running on https then this post is for you.

SecurityVSTS / TFSDigi Cert+3 more
Aug 06, 2017·4 min read

Searching in VSTS/TFS

This post is largely showing off a cool feature of chrome but the core focus is how you can be more productive with VSTS search

VSTS / TFSTFSSearch+2 more
Jul 25, 2017·12 min read

Bulk import git repositories into VSTS/TFS

With the rate that the VSTS team releases with all the features they releasing it's hard to know everything that exists in VSTS. I recently needed to migrate git repos from various Team Project Collections (TPC) into a single Team Project and started out doing it very manually and slowly progresses to importing over 100 in a couple hours .

gitSource ControlVSTS / TFS+2 more
Jun 20, 2017·4 min read

Battling to Join Insider Preview?

Today I tried to join one of my machines to the insider preview. Most people if they get issues would probably take it as a sign that putting the broken bits on their machine was a bad idea and the universe has saved them…I need my broken bits fix .

Microsoft AccountWindows Insider Program
May 22, 2017·5 min read

Converting Html to Pdf using C# and magic!

Everyone at some point needs to convert and html page into a PDF for some reason or another. For this I've always used a component which was cheap at the time (and is far from it now). This component has worked well for the last 8(ish) years, most ish in the last while because it doesn't deal well with https sites. When contacting the vendor they said hey but our latest version which can be expected I guess because it's 8 years down the line but then came the it's ALL OF THE $ . The last issue is that the component I used doesn't work in Azure. That lead me to some investigation and then ultimately this post.

AzureJust CodingGitHub Projects+1 more
May 18, 2017·3 min read

Using ngrok to test web apps on mobile while developing

I often never really test on mobile properly because most sites are responsive so it's easier to just resize your browser and test like that. This works great until you trying to get the perfect mobile experience and looking at every element like how drop lists present themselves with different content taking into account how wrapping might happen in mobile browser controls (which is different from web browser, even in chrome ). A long time ago I briefly used ngrok just to test how it works and now I use it constantly for testing apps while they are still in development.

MobileVisual StudioJust Coding
Apr 30, 2017·12 min read

Generating code documentation using Ghost Doc Enterprise

I've recently started catching up with all the blogs that I've wanted to write and have had flagged to write for a long time. This one I have had flagged since 26 January 2016.

Visual StudioC#Ghost Doc+1 more
Apr 23, 2017·15 min read

Setting up a standard continuous integration build with VSTS/TFS

If you do a quick Google for pros of setting up continuous integration you'll come across a lot of articles about how good setting up continuous integration (CI) is compared to googling cons of setting up continuous integration which basically gives you the same posts of the the pros search so we won't dig too much into that now .

VSTS / TFSVisual StudioBuild Automation+2 more
Apr 23, 2017·8 min read

Setting up .net core continuous integration build with VSTS/TFS

You might be wondering after recently posting Setting up a standard continuous integration build with VSTS/TFS why I'd need to post specifically on .net core. After all it's still a Visual Studio solution so things should just work, the keyword here is should . Things didn't just work when I tried to get this working so decided to share my experience here (as well as document it for myself later ).

VSTS / TFSVisual StudioAutomated Builds+1 more
Apr 12, 2017·5 min read

Implementing a dynamic robots.txt

Firstly you might want to know why would you want to implement a dynamic robots.txt? Isn't it better to just put a static file in the web app? Yes it is but when you running your application on certain platforms like web apps in Azure when you using deployment slots. I found this handy link which explains deployment slots quite nicely , but basically what happens is when you switch 2 slots Azure will do a virtual IP switch so traffic from your slots will now be switched (not the files from each slot).

AzureMVCrobots text file+2 more
Mar 08, 2017·2 min read

So I installed VS Enterprise 2017 and have no MTM, where is it?

If you've installed Visual Studio 2017 Enterprise and weren't one of the people that went over to the Individual Components tab to see what you weren't installing you probably don't have Microsoft Test Manager installed.

Visual StudioVisual Studio 2017Test Manager
Feb 09, 2017·3 min read

Using C# 6 to make 'bad' SQL awesome

I'm busy going through Pluralsight watching Exploring C# 6 with Jon Skeet by Rob Conery. Jon Skeet goes ahead and makes this epic method that looks like it's so naughty but is pretty cool.

SQL InjectionCSharp-6Just Coding
Jan 05, 2017·3 min read

Easily adding auditing to a Entity Framework Code First project

If you've done any amount of development where you need to interact with data you'd know that at some point customers or stakeholders always want to know who made that change or when was that change made. To answer these questions you'd look to your auditing which in most cases is the last thing people think about adding into their apps for some reason.

AuditingDataEntity Framework