# Wednesday, 22 April 2015

Recently Microsoft showed us something new to the world which I think is very interesting: Azure App Service.


This new offering makes it a snap to create, deploy, manage your applications and APIs and integrate third party APIs as well.

First of all the two parts that stayed the same but got a rebranding:

Two newcomers in the arena are

  • Logic apps to automate access and use of data
  • API apps to easily build and consume Cloud APIs

There are several great videos available that show you a quick introduction:

Grz, Kris.

Wednesday, 22 April 2015 20:10:33 (GMT Daylight Time, UTC+01:00)  #    Disclaimer  |  Comments [0]  | 
# Wednesday, 01 April 2015

I got renewed as an MVP for ASP.NET. I’ve been renewed every year since 2007 when I first got the award.

I’ll keep doing my best for the community for the next year(s) to come as well. Being an MVP is all about community work and interaction and I really love that community. Thanks to that I got to know a lot of interesting people, became a better developer and person. It’s been an awesome ride so far.

Grz, Kris.

Wednesday, 01 April 2015 23:47:00 (GMT Daylight Time, UTC+01:00)  #    Disclaimer  |  Comments [0]  | 
# Thursday, 05 February 2015

Recently I was at a user group meeting about Xamarin. During the session several Macbooks were used. One of presenters wanted to zoom in on something on screen just like he would on Windows with the built in tooling. Turned out to be nobody in the room actually knew how to do it. To add a little disclaimer: we were all heavily Microsoft .NET users who usually spend 90% of their day in Visual Studio, on Windows.

As I didn’t know the answer either, but since a couple of months also use a Macbook pro at work as my main working machine I wanted to know as it’s a neat little feature while doing presentations. Just to step aside: why a Macbook pro when you’re doing .NET development? Well, turns out to be more and more developers are doing so as I noticed at work and not only there. The hardware is very nice and you can run Windows virtually pretty easily on it. I use Parallels myself at the moment but noticed others are making use of alternatives as well.

So how to do it?

1. Open System Preferences

And click the Accessibility icon.


Proceed to step 2.

2. Zoom settings

Click on the Zoom item in the listbox and there you’ll notice different ways of turning on or off for easy zooming. You can either make use of scrolling (with 2 fingers on the trackpad while holding a key) or making use of a keyboard shortcut combination



Grz, Kris.

Thursday, 05 February 2015 03:37:00 (GMT Standard Time, UTC+00:00)  #    Disclaimer  |  Comments [0]  | 
# Wednesday, 21 January 2015

Likely somewhere this year ASP.NET 5, or vNext as it’s been called in the past, will launch. From all we hear each time it’s going to be a major shift again, likely as big as the shift from classic ASP to ASP.NET back in 2002. To get to know what’s going to change the people from the ASP.NET team made a series of screencasts available for us. You can watch them at your convenience at Microsoft Virtual Academy.

Go sit in your comfy chair and take some time to watch it at http://www.microsoftvirtualacademy.com/training-courses/what-s-new-with-asp-net-5.

Grz, Kris.

Wednesday, 21 January 2015 17:12:00 (GMT Standard Time, UTC+00:00)  #    Disclaimer  |  Comments [0]  | 
# Wednesday, 14 January 2015

I’ve been fiddling around lately with Gulp and Bower. 2 tools that go hand in hand to make compelling web applications and… also integrate nicely in the new Visual Studio.

Gulp is a javascript based task runner and Bower is “package manager for the web”. Why bother you might ask yourself? Well, that’s a good question. In the recent years we’ve been enjoying bunding and minification which can be found in the ASP.NET System.Web.Optimization namespace. That’s going to be gone in ASP.NET 5 (or vNext as we’ve known it up until recently).

Just follow along on how to get started with the new wave.

Create a new project

Start Visual Studio 2015. Create a new project. Opt for ASP.NET Web Application.


Give it a meaningful name and press OK and opt in the following screen for ASP.NET 5 Starter Web


Again press the OK button and let the project be generated. After that you can open the nodes of wwwroot and Dependencies.

What’s under wwwroot


Quick overview of the new template

What’s new in ASP.NET 5.0 is the wwwroot folder. This is going to be the place to put static files like CSS, images, html, javascript files.

Something else which is new is that you don’t have a web.config file anymore. There are also some newcomers in the form of .json files:

  • bower.js: contains the Bower packages
  • config.json: the main configuration file
  • package.json: lists the npm packages
  • project.json: the main project file.

Using npm to install Gulp

Gulp itself is not yet in the template. To get this into it take the following steps:

  1. open package.json
  2. add a new entry under devDependencies: “gulp”: “^3.8.10”. Save the file.
  3. under the NPM node in your Solution Explorer pane you’ll notice that that a new subnode has appeared suffixed with (not installed):
  4. Right click the NPM node and select Restore Packages from the context menu that appears.
  5. Now the package is installed:

  6. Your package.json file will now look like the following:
    "version": "0.0.0",
    "name": "GulpTestingInVS2015",
    "devDependencies": {
        "grunt": "^0.4.5",
        "grunt-bower-task": "^0.4.0",
        "gulp": "^3.8.10"

In the same fashion add entries for gulp-less and gulp-minify-css. As you can guess from the names these are respectively to transform a .less file to css and to minify a css file.

Gulp it up

Now that we have our ingredients ready we’re going to start to follow the recepy. In the solution, in the root folder of your project add a new file called gulpfile.js. Right click on it. In the context menu you select Task Runner Explorer. A new pane will open and a reference to gulp will appear in it. If you want to get rid of the default Grunt tasks you can simply delete the gruntfile.js file. I noticed that it’s a good habit to frequently refresh the overview in the Task Runner Explorer with the dedicated Refresh button.

Create a subfolder Assets under the root of the application. In there place 2 .less files: Colors.less and Styles.less.




@import "Colors.less";

body {
    background-color: @backcolor;

a {
    color: @color;

    &:hover {
        color: @color + @backcolor;




"use strict";

var gulp = require('gulp');
var less = require('gulp-less');
var minifyCSS = require('gulp-minify-css');

gulp.task('LessAndMinifyCSS', function () {

What goes on in this gulp file is that first declarations are made for the packages we’re going to make use of in our function. Then a Gulp task is created with the name LessAndMinifyCSS. We’ll also see, after a refresh, that function name appear in the Task Runner Explorer.

In the Gulp task we first set the source of our less files. Then via pipiing we execute the less package functionality over what was just loaded. Then the transformed result will be written down with destination wwwroot/css.

In the Task Runner Explorer hit the refresh button. Drill down to the node LessAndMinifyCSS. Right click on it and select Run.

In the output window of the Task Runner Explorer we can see that our less transformation was successful:


When we take a look in the Solution Explorer pane we’ll also notice that a new file was generated:


If it doesn’t show up directly then click the Refresh button, circled in red.

The content of the Styles.css file is as expected:

body {
  background-color: #808080;
a {
  color: #b6ff00;
a:hover {
  color: #ffff80;

So with not too much effort we were able to transform our less file to a css file. Now lets take it one step further. We’ll easily as well add CSS minification to our process. Change the gulpfile.js file as follows:

"use strict";

var gulp = require('gulp');
var less = require('gulp-less');
var minifyCSS = require('gulp-minify-css');

gulp.task('LessAndMinifyCSS', function () {

The output of the Styles.css file after running the Gulp task again has now become:


Now in the Task Runner Explorer right click the LessAndMinifyCSS task. Click the Bindings menu item and then select Before Build.


Now each time you build your project the Gulp task will be run resulting in your Styles.css file to be updated. Of course there are a lot more Gulp packages that you can use but that’s a story for another blog post.

Grz, Kris.

Wednesday, 14 January 2015 09:41:56 (GMT Standard Time, UTC+00:00)  #    Disclaimer  |  Comments [0]  | 
# Wednesday, 29 October 2014

If yes then take a look at aka.ms/devbesmart.

Grz, Kris.

Wednesday, 29 October 2014 19:38:00 (GMT Standard Time, UTC+00:00)  #    Disclaimer  |  Comments [0]  | 
# Monday, 27 October 2014

If you like Charles Petzold’s (who doesn’t) books then you’re in for a treat: Get this free eBook by him both as pdf and as Kindle download.

Grz, Kris.

Monday, 27 October 2014 16:14:00 (GMT Standard Time, UTC+00:00)  #    Disclaimer  |  Comments [0]  | 
# Friday, 01 August 2014

When you look outside of the window and you notice the weather’s not making you feel to go and sit outside to enjoy it you might as well read a good book. Microsoft released an ebook that’ll go well with the cloudy weather but will at least make you fee more happy than the actual weather does.

To grab a copy go over to Cloud apps with Microsoft Azure: Best practices for DevOps, data storage, high availability, and more, by Scott Guthrie, Mark Simms, Tom Dykstra, Rick Anderson, and Mike Wasson..

You can opt to go for these choices:


Grz, Kris.

Friday, 01 August 2014 11:27:02 (GMT Daylight Time, UTC+01:00)  #    Disclaimer  |  Comments [0]  | 
# Wednesday, 23 July 2014

I just came across a good looking overview of the ASP.NET MVC 5 application lifecycle. I thought I’d share it so here you go.

Grz, Kris.

Wednesday, 23 July 2014 14:46:37 (GMT Daylight Time, UTC+01:00)  #    Disclaimer  |  Comments [0]  | 

Thanks to a colleague I got to know about this free eBook: http://read.humanjavascript.com/ch00-foreword.html.

It’s not the typical dry to read tech book and doesn’t get you started with javascript. On the contrary it reads in a nice way and talks about what the author was confronted with and how he dealt with it. Something extra to read while sitting outside in the evening sun (when there is any in Belgium).

Grz, Kris.

Wednesday, 23 July 2014 08:14:38 (GMT Daylight Time, UTC+01:00)  #    Disclaimer  |  Comments [0]  |