Click below for Step by Step and Interview Q & A (dotnetinter) wrote,
Click below for Step by Step and Interview Q & A
dotnetinter

What is Nuget (C# and Visual studio interview question and answers) ?

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.

Tags: .net interview questions with answers, c# nuget interview questions with answer, information technology questions, visual studio interview questions, what is nuget ?
Subscribe

  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments