1

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?

Rye bread
  • 1,305
  • 2
  • 13
  • 36

1 Answers1

0

The error seems to have been caused because MSBuild 14 was used in the build task instead of MSBuild 15. Not sure exactly why that made it fail, but it works now.

Rye bread
  • 1,305
  • 2
  • 13
  • 36