Here we will learn how to add NuGet to our LightSwitch Application using Visual Studio 2012.In my previous article I created the basic application; see: http://www.c-sharpcorner.com/UploadFile/18ddf7/add-and-edit-data-in-basic-lightswitch-application/.
Procedure for adding NuGet to our application.Step 1In the Solution Explorer, click on the Toggle View drop down list and select "File View".Step 2Right-click on the HTML_App.HTML Client Project in the Solution Explorer and select Manage NuGet Packages...Step 3The Manage NuGet Packages dialog box appear. Select "Online packages" and in the Search box, search for SignalR. Step 4Install the Microsoft ASP.Net SignalR JavaScript Client.Step 5The SignalR JavaScript is added to the HTML Client.Step 6Now open the default.htm file and add the following code.<script type="text/javascript" src="Scripts/jquery.signalR-1.0.1.js"></script> //It is the reference to SignalR Library <script src="../signalr/hubs"></script> //It is the reference to Java Script Library
Step 7Right-click on the server project and select "Manage NuGet Package..." as shown below.Step 8This time we need to install Microsoft ASP.NET SignalR.
You need to be a premium member to use this feature. To access it, you'll have to upgrade your membership.
Become a sharper developer and jumpstart your career.
$0
$
. 00
monthly
For Basic members:
$20
For Premium members:
$45
For Elite members: