Visual Studio Online cannot create a project because of a link to the Entity Framework cannot be resolved

What can I do to fix this assembly? Entity Framework was added to this project through NuGet.

All projects are compiled without problems in the local system. But the build fails in Visual Studio Online.

By enabling diagnostic logging, I can track this warning, which prevented my builds from succeeding:

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.
+4
source share
2 answers

I can solve this error by simply right-clicking on the solution in Solution Explorer and select "Enable NuGet Package Recovery".

. .

0

" NuGet". " " Nuget Docs.

. (, ), , , .

+2

All Articles