I am on a two-man team using Team Foundation Server for our source control. I started a new solution. For that solution I created several projects. In many of them I used NuGet to install AutoMapper and Unity. I then right clicked on the solution and selected "Add to Source Control". I then checked in the resulting pending changes.
The other person on my team did a get latest and all of the NuGet references are failing for him.
So, I figured I needed to add the packages folder. So I did that.
After I did that, the NuGet references are still failing (for him).
Also, when I try to add a NuGet Package to a file I get this error now:
Access to the path 'C:\src\MyPath\ToMySolution\packages\repositories.config' is denied.
I assume this is because the repositories.config file is now under source control (so it is read only until manually checked out).
So, here are my two questions:
- How or what do I check in so that the NuGet packages are valid for my coworker when he does a get latest?
- Is there a way to not have to manually check out the NuGet files when I need to use NuGet?
Am I doing this wrong? Or is NuGet not really meant for use with source control?