- r - 以节省内存的方式增长 data.frame
- ruby-on-rails - ruby/ruby on rails 内存泄漏检测
- android - 无法解析导入android.support.v7.app
- UNIX 域套接字与共享内存(映射文件)
当我尝试运行命令“update-database”时,我得到了这个异常:
Specify the '-Verbose' flag to view the SQL statements being applied to the target database. System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Build.Framework, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. File name: 'Microsoft.Build.Framework, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
WRN: Assembly binding logging is turned OFF. To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1. Note: There is some performance penalty associated with assembly bind failure logging. To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
Could not load file or assembly 'Microsoft.Build.Framework, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.`
最佳答案
我想我遇到了和你一样的问题。我没有保存整个错误信息,但我的错误信息是
'Could not load file or assembly 'Microsoft.Build.Framework, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.'
我正在使用 Visual Studio 2017 并尝试在 Add-Migration
之后执行 Update-Database
。
为了解决这个问题,我关闭了 Visual Studio 并重新打开它,然后再次运行 Update-Database
。
这可能会或可能不会解决您的问题,但我想我会发帖以防万一它会有所帮助。
关于c# - 无法加载文件或程序集 'Microsoft.Build.Framework' (VS 2017),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43330915/
我是一名优秀的程序员,十分优秀!