Skip to content

Add-Migration failed in vs 2017 #1

@masterchen

Description

@masterchen

Thanks for this project.
When i launch this project in vs 2017 ,the browser opened one url but then closed automatically. i found there is a warning :
The specified framework 'Microsoft.NETCore.App', version '1.1.1' was not found.
EnvironmentWatch> - Check application dependencies and target a framework version installed at:
EnvironmentWatch> C:\Program Files\dotnet
EnvironmentWatch> - Installing .NET Core prerequisites might help resolve this problem:
EnvironmentWatch> http://go.microsoft.com/fwlink/?LinkID=798306&clcid=0x409
EnvironmentWatch> - The .NET Core framework and SDK can be installed from:
EnvironmentWatch> https://aka.ms/dotnet-download
EnvironmentWatch> - The following versions are installed:
EnvironmentWatch> 2.0.6 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
EnvironmentWatch> 2.0.7 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
EnvironmentWatch> 2.1.1 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
EnvironmentWatch> It was not possible to find any compatible framework version

also, i try to migrate database , but come to following error:
Add-Migration : 使用“1”个参数调用“AddFromFile”时发生异常:““basePath”不能为空字符串("")或以 null 字符开头。
参数名: basePath”
所在位置 行:1 字符: 1

  • Add-Migration FirstMigration
  •   + CategoryInfo          : NotSpecified: (:) [Add-Migration], MethodInvocationException
      + FullyQualifiedErrorId : ArgumentException,Add-Migration
    
    
    

I know this might cause by version.

so do you have plan to update you project to vs2017 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions