2
votes

I have a .csproj named "A" with many Nuget packages.

I want to create a similar .csproj named "B", with the same Nuget packages of "A".

In the same solution, I also have others .csproj with other stuff.

What's the fastest way to do it?

I tried to copy the packages.config from one to another and then executed this:

Update-Package –reinstall

The result was that it reinstalled ALL packages of ALL projects, but didn't really created any file on project "B".

1

1 Answers

2
votes

I think you just missed one switch. What if you copy the packages.config, as you did, and then use

Update-Package -reinstall -ProjectName (TheProjectName)