I am using Visual Studio 2013. I am trying to add all nuget packages from another project into this project. I copied all the folders under packages from one project into this one how do I add to visual studio?
I tried using the Package Manager Console to update the nuget packages but I am not sure what to write?
I tried Update-Package -Reinstall -Solution Babysitter2 [Babysitter2]
What am I doing wrong?
This Is what my project setup looks like.
Select the Tools > NuGet Package Manager > Package Manager Console menu command. Once the console opens, check that the Default project drop-down list shows the project into which you want to install the package. If you have a single project in the solution, it is already selected.
In Solution Explorer, right-click the project and choose Properties. In the Package tab, select Generate NuGet package on build.
Open %AppData%\NuGet folder, open existing NuGet. Config file. Edit repositoryPath key and set new destination.
Simply copy existing packages.config
file to your new project. Include this file into the project. Then follow to Package Manager Console
and execute Update-Package -reinstall
command. No need to copy packages
folder and to add dll
references manually.
You can install packages on the new project based on installed packages in another project.
On "Package Manager Console", paste the following command replacing sourceProject and TargetProject by your project names:
Get-Package -ProjectName sourceProject | ForEach-Object { Install-Package -Id $_.Id -Version $_.Versions -Projectname targetProject }
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With