NuGet pack is ignoring assembly info
I was also experiencing issues in this regard; my updates to AssemblyInfo didn't seem to be being picked up - despite me building and rebuilding, etc.
I was able to resolve the issue by explicitly telling NuGet to build (in my case in Release, with pdb symbols):
nuget pack foo.csproj -Build -Symbols -Properties Configuration=Release
I think the problem was that I hadn't built my project since modifying the AssemblyInfo
. I did a rebuild and it's working now.
(As a side note, I also had the <dependencies>
in the wrong section - it should be inside of <metadata>
- but that was not causing the error in my question.)