Nuget downloading packages to incorrect folders - Bamboo build server -


i'm trying create build plan in bamboo asp.net mvc project. i've setup build plan call nuget.exe packages required build. however, nuget restore operation putting nuget files different directories specified, causing build issues.

below extract of 2 of nuget packages in packages.config file causing problems:

<package id="owin" version="1.0.0" targetframework="net46" userinstalled="true" /> <package id="unity" version="3.5.1404" targetframework="net46" userinstalled="true" /> 

the restore operation works correctly, packages downloaded incorrect directory names. example, owin package downloaded packages\owin.1.0 when should packages\owin.1.0.0. unity package downloaded packages\unity.3.5.1404.0

it should noted position of 2 lines in packages.config file (i.e. unity directly follows owin package), don't think it's coincidence directory looses .0 directly before package definition gains 0.1.

the command in bamboo calling nuget.exe file following command parameters: restore "${bamboo.build.working.directory}\checkout\path\to\solution.sln" -configfile "${bamboo.tools.directory}\nuget\nuget.config"

edit: behaviour reproducable on different system, downloading nuget command line utility , running following command line: nuget restore "../path/to/solution.sln" -configfile "nuget.config"

so, turns out reason nuget downloading owin.1.0.nupkg , unity.3.5.1404.0.nupkg files, incorrect directory names coming from.

output nuget restore command:

installing 'owin 1.0'. installing 'unity 3.5.1404.0'. installed 'owin 1.0'. installed 'unity 3.5.1404.0'. 

so while it's far less ideal solution, guess i'm going have create build step rename erroneous directory names.


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -