I am using VS2015CTP now, I decided to upgrade it to VS2015 Community RC. For some unknown reason, migrations to my projects stopped working.
In Visual Studio 2015, I get the following message>
PM> update-database Exception calling "LoadFrom" with "1" argument(s): "The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters." At G:\Projects\packages\EntityFramework.6.1.3\tools\EntityFramework.psm1:780 char:5 + $utilityAssembly = [System.Reflection.Assembly]::LoadFrom((Join-Path $ToolsP ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [], MethodInvocationException + FullyQualifiedErrorId : PathTooLongException You cannot call a method on a null-valued expression. At G:\Projects\packages\EntityFramework.6.1.3\tools\EntityFramework.psm1:781 char:5 + $dispatcher = $utilityAssembly.CreateInstance( + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidOperation: (:) [], RuntimeException + FullyQualifiedErrorId : InvokeMethodOnNull Exception calling "CreateInstanceFrom" with "8" argument(s): "The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters." At G:\Projects\packages\EntityFramework.6.1.3\tools\EntityFramework.psm1:809 char:5 + $domain.CreateInstanceFrom( + ~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [], MethodInvocationException + FullyQualifiedErrorId : PathTooLongException PM>
If I open the solution in VS 2013 and run the above command, everything will work fine. This is some kind of mistake in VS, she lost a link to something? Is there a way to activate some more extensive log, I really don't feel like debugging EF.
thanks
Edit: I think this is due to the way Nuget is handled in Visual Studio 2015, it doesn't seem to look at nuget.config in the same way. I have all the packages for several solutions in one folder, for this I use nuget.config in the .nuget folder with:
<config> <add key="repositoryPath" value="G:/Projects/packages" /> </config>
for some reason, it seems that VS2015 does not handle this the same way as VS2013, because it is trying to load packages into folder packages in the solution folder.
source share