Part 07 – OData v4 in ASP.NET WebApi – Setting Up the Demos

This is a series of blogs detailing my introduction to using OData v4 with C# and ASP.NET WebApi.

Rather than repeat myself in each blog, I will discuss how I initially setup each demo.

The source code for this project can be found here

Software Versions

All my demos will be using

  • .NET 4.5.2
  • Microsoft.AspNet.OData” version 6.1.0

Creating the Project

The project was created in Visual Studio 2017 using the ASP.NET Web Application (.NET Framework) template and selecting the Empty WebApi option.

In the project properties, the Project URL was amended to http://localhost:40000/.

I then added the Nuget package above.

Running Each Project

Before you execute each project you will first have to remap the virtual directory for that project in project properties. This is because I am using port 40000 for all projects.

In the next blog we actually start writing some code.