Rui*_*ima 6 entity-framework-6 visual-studio-2015
我现在一直在使用VS2015CTP我决定将其升级到VS2015社区RC由于某些未知原因我的项目上的迁移停止了工作.
在Visual Studio 2015中,我收到以下消息>
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>
Run Code Online (Sandbox Code Playgroud)
如果我在VS 2013中打开解决方案并运行上面的命令一切正常.这是VS中的一些错误,它是否失去了对某些东西的引用?有没有办法激活某种更广泛的日志,我真的不觉得调试EF.
谢谢
编辑:我认为这与在Visual Studio 2015中处理Nuget的方式有关,似乎它没有以同样的方式查看nuget.config.我在同一个文件夹中包含多个解决方案的所有包,为此我在.nuget文件夹下使用nuget.config:
<config>
<add key="repositoryPath" value="G:/Projects/packages" />
</config>
Run Code Online (Sandbox Code Playgroud)
出于某种原因,似乎VS2015没有像VS2013那样处理它,因为它试图将软件包下载到解决方案文件夹下的文件夹包中.
| 归档时间: |
|
| 查看次数: |
2596 次 |
| 最近记录: |