Earlier we have use ‘Manage NuGet Package’. Today I am going to use Package Manager Console for that. So let’s take same example which we have used in the earlier post. I have a sample application which have three projects.
![MyApplication- Nuget with multiple projects. www.dotnetjalps.com MyApplication- Nuget with multiple projects. www.dotnetjalps.com](https://lh5.ggpht.com/-P9MA0IBOg0Q/TpBE_x59MFI/AAAAAAAAA80/1FlUzZWQEa4/MyApplication_thumb%25255B1%25255D.png?imgmax=800)
As you can see in above post there are three projects.
- MyApplication-Main Web application project
- MyApplication.Business- This project has business logic classes for application
- MyApplication.Data- This project has database access layer classes for application
.
![PackageManagerConsole PackageManagerConsole](https://lh5.ggpht.com/-J68Rsf7K2iQ/TpBFF2t1h-I/AAAAAAAAA88/v5TZOUdaP40/PackageManagerConsole_thumb%25255B1%25255D.png?imgmax=800)
Now as I have to type following command in NuGet Package Manager Console to install EntityFramework Package to MyApplication.Data project
Get-Project MyApplication.Data | Install-Package EntityFramework
Here in above command Get-Project will get the project where we have to install the project and Install-Package will install the required package. As you can see entityframework reference added in MyApplication.Data Project in below image.
![EntityFrameworkReference EntityFrameworkReference](https://lh5.ggpht.com/-WE9-Bm_GrmQ/TpBFI8v5ipI/AAAAAAAAA9E/f-m9Mvh9zSg/EntityFrameworkReference_thumb%25255B1%25255D.png?imgmax=800)
That’s it. Hope you like it. Stay tuned for more.. Till then Happy programming
Namaste!!