I have some solution created in Visual Studio 2015, with usages of NuGet packages.
When I compile the solution from Visual Studio (both of settings "Allow to download missing packages" and "Automatically check for missing packages during build" are set ON) - it works.
But when compiling the solution on TeamCity (which calls MSBuild for build) - it fails:
Error : the type or namespace name 'someName' cannot be found (are you missing using directive or assembly reference?), where 'someName' defined in the assembly to be installed by NuGet
In TeamCity there are two separate steps defined:
- NuGet install - it was verified that packages installed on build agent
- Build itself
Is there a parameter of MSBuild to be checked?
What can be the cause of the issue?
