Problems with project C #

-1

Good the company has passed me a project that made a partner in C #, the problem I have when opening this that generates an error ..

  

Severity Code Description Project File Line Status suppressed   Error Failed to restore the NuGet package for the project   Domain.Tests: The version '4.4.0' of the package is not found   'EntityFramework'. C: \ Program Files (x86) \ Microsoft   SDKs \ NuGetPackages: The package 'EntityFramework.4.4.0' could not be found   in the source 'C: \ Program Files (x86) \ Microsoft SDKs \ NuGetPackages \'.

link : The package   'EntityFramework.4.4.0' was not found in the origin   ' link '.

In case this project worked perfectly, now we need to make modifications but when opening it in visual 2017 it generates this error we have tried to recover and restore and it generates the same, if we try to update EF it does not allow us, I have tried several things but it keeps giving us error.

It's urgent thanks

    
asked by dunia48 17.01.2018 в 10:46
source

2 answers

2

I have exactly the same error. For some reason in Visual Studio 2017 like there is some error in the dependencies.

I have not solved the problem yet but by researching I found that you can do the following.

Tools > NuGet Package Manager > Configuration of the package manager.

In the next view validates that the checkboxes are selected as shown below.

Try, maybe your problem can be solved in this way. Luck.

    
answered by 12.09.2018 в 18:18
0

I told you that I found the solution to the problem.

It turns out that in your project there is a file called "packages.config", in which are the configurations of the packages that your project uses.

Well, in this file there has to be a designated line for EntityFramework, in my case it was for another package. I solved it by deleting the line and compiling the project again. I leave you captures of what I did.

This is the file that you must modify.

This is the content of the file.

In my case, this is the line that I must eliminate.

You delete it, save the changes and compile the project again.

I hope it serves you.

    
answered by 13.09.2018 в 17:06