Due to forgetfulness, I forgot to change the execution environment from .net45 to .net40 in a new project. Users only have 4.0 (Windows 7 by default). When you change a finished project already, EntityFramework.dll still uses the weight 4.5. When you try to change manually to 4.0, the program does not start? Is there a way to solve my problem?
1 answer
Start the Nuget console, and enter the Update-Package –reinstall command
Nuget reinstalls all libraries for the current version of the Framework.
More information can be found on the link.
- I wrote that I could not find the -reinstall option :( And I do not have the opportunity to update NuGet, there is no admin rights - Sergеu Isupov
- 2We will consider the issue resolved. I did this: I deleted entityframework using NuGet from the project, I could not install it again. I added NuGet to the list of resources (In the parameters of the Package Manager -> sources of packages) local resources were installed and installed again. - Sergue Isupov
- Perhaps the old version of Nuget does not support the -reinstall option - beliy26rus
|