对于具有 4 个项目的 MVC 网站解决方案的 TFS2017 构建代理的构建返回错误,如下所述。
The MVC project
A test project
A class library as the domain layer
A class library as the storage/infrastructure layer
日志输出中大约有 20 个错误,但下面关于 的错误EntityFramework assembly
是第一个(第二个错误与 类似EntityFramework.SqlServer assembly
)。这些错误似乎是整体构建问题的根源。
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.
该代码使用 VS2017 发布工具在托管位置进行编译、调试和运行。我正在尝试使构建服务器联机。构建服务器已安装 VS2017。
为什么构建服务器上的 MSbuild 无法访问实体框架程序集,我该如何纠正?