Install WebMatrix helpers to your ASP.NET MVC 3 project with NuGet

Άρθρο από George Chatzimanolis Fri, 19/11/2010 - 17:52

You may have noticed that there are some cool helpers in WebMatrix that you may want to use in your current ASP.NET MVC 3 project. The good thing is that you can use them. The only thing you have to do is just download them with NuGet.

As you already know, if you read the article about NuGet, is that you can have multiple feed sources for NuGet packages. So you only have to found a NuGet feed that includes all these helpers. This is not so difficult because Microsoft have created this feed for us. You can find the feed in this address (http://go.microsoft.com/fwlink/?LinkID=205388).

In order to add the feed in your Visual Studio 2010 Package Sources you have to go to Tools > Options > Package Manager > General

NuGetFeed

There you can add a new Item in the list. Enter a name in the “Name” textbox, in the “Source textbox” enter the feed address (http://go.microsoft.com/fwlink/?LinkID=205388) and click “Add” button. You will see that a new line has been added in the “Available package sources” listbox.

After that it is very easy to add the Helpers in your project. Go to Package Manager Console, select your new feed from “Package source” combobox and write List-Package to console window. You will see all available packages so you can very easily add a Helper to your project just by writing Install-Package “Package-Name” (ex Install-Package Twitter.Helper ) <!--abc760bb4c5a4fc6881d892923e732d4-->

ListPackage

InstallPackage

Comments

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options