I am trying to build a .NET 4.6 project using MSBuild 15 on our build server (using CruiseControl). The project has a NuGet package reference (to Oracle.ManagedDataAccess) and it gets restored correctly. However, the build task fails with the error "The type or namespace name 'Oracle' could not be found".
I have tried building the project in VS 2017 on the build server using the same account, and it works. I expected MSBuild to retrieve the package contents from the same location, but apparently it can't. What could be the reason?