Search:

Search all manuals
Search this manual
Manual
Couchbase Client Library: .NET (C#) 1.2
Community Wiki and Resources
Wiki: .NET Client Library
Download Client Library
.NET Client Library
Couchbase Developer Guide 2.0
Couchbase Server Manual 2.0
SDK Forum
Additional Resources
Community Wiki
Community Forums
Couchbase SDKs
Parent Section
2 Couchbase and ASP.NET MVC
Chapter Sections
Chapters

2.2. Visual Studio Project Setup

This project will be based on an ASP.NET MVC 4 application template. After opening Visual Studio, select File -> New Project and then select Web -> ASP.NET MVC 4 Application under the Visual C# project templates. Name the project “CouchbaseBeersWeb” and click “OK” to create the solution.

Figure 2.1. Figure 1, New Project.

New Project

Start with an “Empty” application using the Razor view engine for the MVC template.

Figure 2.2. Figure 2, Select Empty Template.

Select Empty Template

Next you'll need to add a reference to the Couchbase .NET Client Library. You could either download the assemblies from the getting started pageor obtain them using the NuGet package manager. When you install via Nuget, your project will automatically get references to Couchbase.dll, Enyim.Caching.dll and the dependencies Newtonsoft.Json.dll and Hammock.dll. These assemblies are also found in the zip file and should be referenced in your project if not using Nuget.

Figure 2.3. Figure 3, CouchbaseNetClient NuGet Package

CouchbaseNetClient NuGet Package