gpt4 book ai didi

c# - 无法加载文件或程序集 'Microsoft.Build.Framework' (VS 2017)

转载 作者:IT王子 更新时间:2023-10-29 03:46:43 31 4
gpt4 key购买 nike

当我尝试运行命令“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/

31 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com