just started learning dot net core 2.0.
when I try to create a migration:
PM> Add-Migration InitialModel
i get the error:
Add-Migration: Exception throws a "Substring" with an argument of "1": "StartIndex cannot be less than zero. Parameter name: startIndex" At line: 1 char: 1 + Add-Migration InitialModel + ~~~~~~~~~ ~~~~~~~~~~~~~~~~~ + CategoryInfo: NotSpecified: (:) [Add-Migration], MethodInvocationException + FullyQualifiedErrorId: ArgumentOutOfRangeException, Add-Migration
my dotnet --info
.NET Command Line Tools (2.0.0)
Product Information: Version: 2.0.0 Commit SHA-1 hash: cdcd1928c9
Runtime environment: OS name: Windows OS Version: 10.0.15063 OS platform: Windows RID: win10-x64 Base path: C: \ Program Files \ DotNet \ SDK \ 2.0.0 \
Microsoft.NET Core Shared Framework Host
: 2.0.0 Build: e8b8861ac7faf042c87a5c2f9f2d04c98b69f28d
csproj:
<PropertyGroup>
<TargetFramework>netcoreapp2.0</TargetFramework>
<TypeScriptCompileBlocked>true</TypeScriptCompileBlocked>
<TypeScriptToolsVersion>Latest</TypeScriptToolsVersion>
<IsPackable>false</IsPackable>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.All" Version="2.0.0" />
<PackageReference Include="Microsoft.DotNet.Watcher.Tools" Version="2.0.0" />
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="2.0.0" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="2.0.0" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="2.0.0" />
</ItemGroup>
<ItemGroup>
<DotNetCliToolReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Tools" Version="2.0.0" />
<DotNetCliToolReference Include="Microsoft.EntityFrameworkCore.Tools.DotNet" Version="2.0.0" />
</ItemGroup>
!