我该怎么做才能修复此版本?实体框架是通过NuGet添加到该项目的。
所有项目的编译在本地系统上都没有问题。但是在Visual Studio Online上构建失败。
通过打开诊断日志记录,我可以跟踪到此警告,这使我的构建失败:
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Microsoft.Common.targets(1605,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "EntityFramework.SqlServer". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
我可以通过在解决方案资源管理器中右键单击该解决方案,然后选择“启用NuGet软件包还原”来解决此错误。
这就为我的解决方案增加了一些文件,并修改了一些项目文件。然后,构建服务器可以在构建时还原软件包,并最终感到满意。
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句