Skip to content

A Minimalist WebAPI 2 Visual Studio Project

Updated: at 02:12 PM

Introduction

Many of us have been asking Microsoft to keep all the extra stuff out of Visual Studio 2013 projects.  For example, I don’t want JQuery in my project yet almost all project types include it.  So, here are my steps to create just WebAPI 2 and no other types that are not directly that.

The Steps

File / New / Project

image

Empty Project with Just WebAPI

image

Then, when I go into References / Manage NuGet

image

I see just 4 packages

image

My Solution explorer is small and if I look in my App_Start, I just have one simple file, WebApiConfig.cs which is as follows:

image 

image

Project size, 29 files, 9 folders.   I’d say that’s pretty good.

Check out the ORM (Object Relational Mapper) PRISMA. The database access method I use in all my projects