Errors are returned on builds from a TFS2017 build agent for an MVC website solution with 4 projects as generally described below.
The MVC project
A test project
A class library as the domain layer
A class library as the storage/infrastructure layer
There are about 20 errors in the log output, but the error below with regard to the EntityFramework assembly
is the first one (a second error is similar with regard to the EntityFramework.SqlServer assembly
). These errors seem to be the source of the overall build problems.
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(2110,5): Warning MSB3245: Could not resolve this reference. Could not locate the assembly "EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
The code compiles, runs in debug, and operates at the hosting location using VS2017 publishing tools. I am trying to get the build server online. The build server has VS2017 installed.
Why would the entity framework assemblies not be accessible to MSbuild on the build server and how do I correct that?