NuGet/package restore not playing nicely with F#

f#, nuget

Solution

Are you running into this bug? F# Project VS 2012: Update package removes HintPath

There are some other known bugs in NuGet which affect F# projects. You may want to browse through the NuGet issue tracker on CodePlex to see if your problem has already been reported; if it hasn't, you should definitely file a bug report to make the NuGet developers aware of the problem.

NuGet Issue Tracker

Problem

We have a solution with an F# project and a C# project. Both consume the same set of NuGet packages, using NuGet package restore to automate the downloads. Frustratingly, we are constantly running into issues where the F# project cannot build, forcing us to uninstall and then reinstall all packages. It appears that NuGet is not properly editing the fsproj file during installation, thus leaving us with duplicate references, or misversioned references that block the build. Has anyone encountered a similar problem/does anyone know of a solution?

Original source