I have just upgraded an old project to use .Net Framework 4.5.2 from 4.0.0.
I am getting a build error, that the log reports as follows:
Restoring NuGet packages... (TaskId:38)
To prevent NuGet from downloading packages during build, open the Visual Studio Options dialog, click on the Package Manager node and uncheck 'Allow NuGet to download missing packages'. (TaskId:38)
EXEC : warning : The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel. [C:\Builds\1\SCD4\SCD4 - Test\Sources\MVC4\SCD4\SCD4.Model\SCD4.Model.csproj]
C:\Builds\1\SCD4\XXX - Test\Sources\MVC4\XXX.nuget\NuGet.targets(100,9): error : Unable to find version '6.1.3' of package 'EntityFramework'. [C:\Builds\1\XXX\XXX - Test\Sources\MVC4\XXX\XXX.Model\XXX.Model.csproj]
C:\Builds\1\XXX\XXX - Test\Sources\MVC4\XXX.nuget\NuGet.targets(100,9): error MSB3073: The command ""C:\Builds\1\XXX\XXX - Test\Sources\MVC4\XXX.nuget\NuGet.exe" install "C:\Builds\1\XXX\XXX - Test\Sources\MVC4\XXX\XXX.Model\packages.config" -source "" -NonInteractive -RequireConsent -solutionDir "C:\Builds\1\XXX\XXX - Test\Sources\MVC4\XXX\ "" exited with code 1. [C:\Builds\1\XXX\XXX - Test\Sources\MVC4\XXX\XXX.Model\XXX.Model.csproj]
Done executing task "Exec" -- FAILED. (TaskId:38) Done building target "RestorePackages" in project "XXX.Model.csproj" -- FAILED.: (TargetId:63) Done Building Project "C:\Builds\1\XXX\XXX - Test\Sources\MVC4\XXX\XXX.Model\XXX.Model.csproj" (default targets) -- FAILED. Done executing task "MSBuild" -- FAILED. (TaskId:4) Done building target "Build" in project "XXX.csproj.metaproj" -- FAILED.: (TargetId:6) Done Building Project "C:\Builds\1\XXX\XXX - Test\Sources\MVC4\XXX\XXX\XXX.csproj.metaproj" (default targets) -- FAILED.
How do I fix this?