1

只是尝试创建数据库作为文档中步骤的一部分。

解决方案构建良好。

来自包管理器控制台的消息:

PM>更新-数据库

无法解析指定的框架版本“2.1”

找不到指定的框架“Microsoft.NETCore.App”,版本“2.1”。

  • 检查应用程序依赖项并定位安装在以下位置的框架版本:C:\Program Files\dotnet\
  • 安装 .NET Core 先决条件可能有助于解决此问题: http: //go.microsoft.com/fwlink/ ?LinkID=798306&clcid=0x409
  • .NET Core 框架和 SDK 可以从以下位置安装: https ://aka.ms/dotnet-download
  • 安装了以下版本:1.0.5 在 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] 1.1.2 在 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] 2.0。 5 在 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] 2.0.6 在 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] 2.0.9 在 [C:\Program Files \dotnet\shared\Microsoft.NETCore.App] 2.1.5 在 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]

从我的 VS 窗口复制的错误

鉴于我安装了 2.1.5,这似乎很奇怪。有 ABP 经验的人可以为我指明正确的方向吗?谢谢!

4

1 回答 1

0

This is not an abp problem, but VS and dotnet core framework.

Scenario 1:

  1. steps to follow

  2. Update VisualStudio

  3. Delete .vs folder
  4. Restart PC
  5. Run VisualStudio as administrator

This is what helped me.

Scenario 2:

Write PM> ls and check if the VS package manager is a corect dir, If not cd folder and try again. If not working go to Scenario 1.

Scenario 3:

Copy your whole repository to C:/repo folder and try again.

If all of those wont work reinstall .NET core 2.1 framework.

于 2018-11-06T22:24:07.530 回答