?

Log in

Previous Entry | Next Entry

This question is taken from Mr. Shivprasad koirala’s book .NET interview questions with answers. http://www.dotnetinterviewquestions.in/article_net-interview-questions-6th-edition-sixth-edition-by-shivprasad-koirala_144.html. We are thankful to him to allow us to publish the same on our site.

The amount of frameworks and libraries from both Microsoft (MVC, EF etc) and Non-Microsoft open sources (NUNIT, Log4Net etc) are huge in numbers. These frameworks and libraries keep updating to newer versions and it’s very difficult to keep a track of the same.

As a visual studio developer if you need to reference these frameworks or libraries, you need to do the following:-

  • Search the library URL.

  • Install the library or probably unzip it at some place.

  • Reference the DLL in your visual studio project.

  • If library demands also make appropriate changes to the App.config or Web.Config file.


                            mockup_2


In case you want to revert back you need to follow the above process in a vice-versa fashion.

This is where “Nuget” makes our life easy. “Nuget” is a visual studio extension which helps us to search, locate the library, download them, reference them in our VS project and also make appropriate changes to App and Web config files.

                                        lib 2

So once you click on “Manage Nuget Package” , you can go and search the framework and click on install. Below is a simple image where I have searched the new version of Entity framework and now we need to just click on the install button to add the same to your visual studio project.

lab 3


We are thankful to questpond.com to sponsor this c# interview questions with answers on Nuget.

Also see the following C# and .NET interview questions and answers video on How are interview questions asked in .NET interview.

Copy right www.questpond.com

Buy 600+ Real Time Interview Videos

Call +91-22-66752917 or mail us on questpond@questpond.com for more details on C#, .NET, ASP.NET, SQL Server interview question videos.

SQL Server interview question videos

Latest Month

March 2017
S M T W T F S
   1234
567891011
12131415161718
19202122232425
262728293031 

Tags

Powered by LiveJournal.com