I have a C# project with the following NuGet references:
<packages>
<package id="Pidac.HealthCare.Appointment.Model" version="1.0.0.0" targetFramework="net40" />
</packages>
We have our build process setup in Bamboo, which attempts to restore the NuGet packages as a preliminary step. Project builds fine on my machine, restoring the correct NuGet package and all.
The build is currently failing since Bamboo has decided to attempt restoring version 1.0.0 of Pidac.HealthCare.Appointment.Model, instead of going by what it has in packages.config.
How would this happen and what is the solution to this problem?
It sounds like you're seeing a breaking change in NuGet 3.4
A zero in the fourth part of the version number will be omitted
1.0.0.0 is treated as 1.0.0 1.0.01.0 is treated as 1.0.1
It's hard to know exactly what to suggest here, partly as we don't know whether this is your own package, hosted on your own server, or something else.
See more on this question at Stackoverflow