Learn How to Configure Lightswitch With MVC

Microsoft Visual Studio LightSwitch is an extension and framework specifically tailored for creating line-of-business applications built on existing .NET technologies and Microsoft platforms.
This article shows the walkthrough of how to use MVC with Visual Studio LightSwitch.
Let's start creating a LightSwitch Application.

  • Step 1: Create a new project by opening Visual Studio 2013 then Click on "File" -> "New Project" then seelct "Create new LightSwitch HTML Application" then name it SampleLightSwitchMVC.
  • Step 2: Let's install the Microsoft ASP.NET MVC and Microsoft ASP.NET IDentity core packages from Nuget. Right-click on the Server project and select Manage NuGet Packages as shown below.

 Type "Microsoft ASP.NET MVC" and install as shown below.
  Type "Microsoft ASP.NET Identity core" and install as shown.
  • Step 3: Right-click on the Server project and select "Add Reference…".

The System.Web.ApplicationServices namespace provides classes that enable us to access ASP.NET forms authentication, roles, and profiles application services as Windows Communication Foundation (WCF) services.

In this small article, I explained how to prepare a LightSwitch Application to use MVC. In future articles we will see the creation of Models, Views and Controllers.

Similar Articles