Error in migrations in EFCore

ef-migrations entity-framework-core

Question

When I run Add-Migration using Microsoft.EntityFrameworkCore.Tools 1.1.1, I get the following error:

Add-Migration : Exception calling "Substring" with "1" argument(s): "StartIndex cannot be less than zero. Parameter name: startIndex" At line:1 char:1 + Add-Migration + ~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [Add-Migration], MethodInvocationException + FullyQualifiedErrorId : ArgumentOutOfRangeException,Add-Migration

The same stuff works perfect with version 1.1.0-preview4-final

1
1
5/25/2017 10:37:25 AM

Popular Answer

This is issue #8163. You can safely ignore the error. It will be fixed in 2.0.0-preview2-final.

0
5/25/2017 3:16:40 PM


Related Questions





Related

Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow