Blog

Learnin' in the machine

“We go live in 6 hours! What’s the problem?” Jerry Gainsborough had just burst into the development team’s pod area and started shouting at the very tired, very forlorn looking group of developers. This project was coming to an end after a long 18 months of hard work, many hours of overtime and …

Podcasts, I'm addicted.

My name is Mark and I am a podcast addict. TL;DR I listen to many podcasts. If you want some suggestions for weekly/monthly listening I recommend: Hanselminutes .Net Rocks! Yet Another Podcast Merge Conflict Accidental Tech Podcast The Incomparable And some podcasts that have finished This Developer’s Life (27 …

.Net core tests not showing up in VS? Here's the trick...

I’ve been using VS Code. Great tool. But it means my tests are running through a command line runner. Essentially I use dotnet test, which is nice since I am targeting multiple platforms (.Net 4.5, 4.5.2, 4.6 & netcoreapp1.0). But when I open my test project in Visual Studio, I have 0 tests. Thats zero, none, …

dotnet + nunit3 + TeamCity success

The new .Net Core CLI has the ability to use xunit or nunit. Which is great. For running tests locally. I use TeamCity, so I like to see test results showing up, track testing count over time etc. There is a built in way to import xml reports which supports junit (which is xunit-compatible) and nunit. But choosing …

New Projects - Consolable, ConcurrentConsole & t4tinytypes

I’ve been working on some new projects, so thought I would do a quick elevator pitch for each. Consolable I was having an issue with environment variables as arguments, and with PowerShell replacing "text" with text (stripping double-quotes) and how these interacted with my command line arguments. …

.Net Core Series - Multi-targeting

This is a series on the .Net Core 1.0 bits. Looking for .Net Core 2 Series? Getting Started What’s in the box Using Multiple Projects Testing NuGet Multi-targeting <=(We are here) Publishing Portable Applications Self-contained Applications Last time we learned how to package our libraries as NuGet packages. …

.Net Core Series - NuGet

This is a series on the .Net Core 1.0 bits. Looking for .Net Core 2 Series? Getting Started What’s in the box Using Multiple Projects Testing NuGet <=(We are here) Multi-targeting Publishing Portable Applications Self-contained Applications Let’s set aside Application packing for later, and focus our …

.Net Core Series - Testing

This is a series on the .Net Core 1.0 bits. Looking for .Net Core 2 Series? Getting Started What’s in the box Using Multiple Projects Testing <=(We are here) NuGet Multi-targeting Publishing Portable Applications Self-contained Applications We want to be able to test our application code that we build. …

Experimenting with global.json

While working on my .Net Core Series I noticed that Visual Studio was adding a global.json file to the root of my project, and liked to put src and test in there. I thought I would investigate what it actually does. I noticed that if all my project folders were next to each other it didn’t matter. So here is my …

.Net Core Series - Using Multiple Projects

This is a series on the .Net Core 1.0 bits. Looking for .Net Core 2 Series? Getting Started What’s in the box Using Multiple Projects <=(We are here) Testing NuGet Multi-targeting Publishing Portable Applications Self-contained Applications We know how to create new projects, we know how to build and run our …

.Net Core Series - What's in the box

This is a series on the .Net Core 1.0 bits. Looking for .Net Core 2 Series? Getting Started What’s in the box <=(We are here) Using Multiple Projects Testing NuGet Multi-targeting Publishing Portable Applications Self-contained Applications Last time we created a new application. Once with dotnet CLI and once …

Visual Studio Code with C# and dotnet

Getting Started with Visual Studio Code? Me too. Let’s see what it takes to get going. This is a bit of a companion piece alongside my .Net Core Series I am writing at the moment. Hopefully as well as .Net Core, I will have a play with writing TypeScript, Rust and maybe C++ inside Visual Studio Code. I might have …

.Net Core Series - Getting Started

This is a series on the .Net Core 1.0 bits. Looking for .Net Core 2 Series? Getting Started <=(We are here) What’s in the box Using Multiple Projects Testing NuGet Multi-targeting Publishing Portable Applications Self-contained Applications We finally got some finalised bits in a release this week. So here is …

Form posts with PowerShell

This article is based on an answer found and updated on StackOverflow. I’f you have used PowerShell for much at all, you are probably familiar with Invoke-WebRequest. But did you know you can carry around a session and have it automatically add and update cookies for you? The Scenario I had an API I wanted to …

using over lambda

Let’s talk about these two patterns: public void GetSomethingDone() { var metaData = "Some Sort of Metadata for timing"; var result = DoTimedWork(metaData, () => { MyResult resul; //Some other complicated work/method-call happens here return result; }); //either uses or returns result here } public T …

The art of the brick 2016

In 2008 (8 years ago!) I blogged about the art of the brick. I didn’t join twitter until 2010, but if I had this probably wouldn’t have been a blog post, really, since I can fit it in a quote right here: Check out this guy who makes art out of Lego bricks. Very talented and very creative, a must see. His …

Fork off with your branches

The nice thing about git is that branches are cheap and you can create many and varied branches for every little fix, format or feature. The annoying thing about GitHub is that every user creates many many many branches. One of my pet peeves at the moment is a large number of branches on our upstream repository. That …

Manage your hosts entries better

If you are working with a lot of sites in IIS then you will be familiar with the hosts file on your computer. %SystemRoot%\System32\drivers\etc\hosts, usually found in C:\Windows\System32\drivers\etc\hosts. This file acts as a DNS mapping table used by your computer. As a developer, you will often want to tinker with …

A couple of debugging tips

I had an idea of something I wanted to post, but a quick google turns up I posted it 6 months ago, so here are some debugging tips. Console Break So you are writing a console app? Cool. Want to see the output? Of course, you do. But when you run it, the app pops up then disappears really quickly right? No? Have you a …

On Passion in IT

Some people have a natural gift to be able to learn. They can pick up any subject and by putting in hard work they can get good at it. Some people have a natural interest in a specific subject, and these people enjoy the process of learning and don’t find the work being put in as ‘hard’, but instead it is fun. They too …