dotnet

Solution Wide Project Settings

When working with larger solutions in Visual Studio there often common properties you want to set across the board for all your project, for example Copyright or TreatWarningsAsErrors. It can be a little tedious to set these for all the projects, particularly for bigger solutions, and when you add new projects to your solution it's easily missed resulting in undesired differences between projects. A nice simple way to set common properties is to use Directory.Build.props.

Read more...

Entity Builder for Unit Tests

If you find yourself needing to create an instance of a domain entity for unit testing, but having trouble getting round property or constructor accessability, using a builder is a great technique to get round this and provide a consistent, reusable method of creating the object for your tests.

Read more...

VueJs and ASP.NET Core - Part 3

In parts 1 and 2 we looked at the experience of creating a new Angular app and some of the differences compared to what's required for Vue. We then went on to create middleware to add support for running the Vue CLI within our ASP.NET application, and then a new project enabling us to successfully run the Vue CLI in development and have the ability to package everything together when publishing our app. In this final part we are going to create a new project template allowing us a quick start for future projects.

Read more...

VueJs and ASP.NET Core - Part 2

In Part 1 we looked at the Angular project template with ASP.NET Core and its pretty much what we want to achieve for VueJs. In this part we'll dig a little deeper into Microsoft.AspNetCore.SpaServices, specifically Microsoft.AspNetCore.SpaServices.AngularCli and look to take inspiration for our Vue solution.

Read more...

VueJs and ASP.NET Core - Part 1

Whilst it’s relatively easy to find and follow a guide to get up and running with Vue and ASP.NET Core, you’ll probably find there are a number techniques, methods, and opinions and there isn’t really the ‘first class’ support and 'simple' method of getting started as there is with Angular. In the following series of posts we’ll take a look at repurposing and using some of Microsoft’s SpaServices to create better support for Vue.js within your new ASP.NET Core project.

Read more...

Custom HTTP Verb

There are server reasons you might look to implement a custom HTTP Verb in you ASP.NET application, and thankfully with ASP.NET Core it’s incredibly simple.

Read more...

dotnet sln add

It's been a while since I'd created a number dotnet projects and supporting solution using the command line so I had to refer to the documentation to keep me right. As I had just created a number of projects adding each one to the solution is a little tedious so when I'd spotted I could use globbing patterns I thought this would save time and a few key presses.

Read more...