Firstly, this document using VS2015 Update2 and the current latest version for VS2015 is update 3. Therefore, I suggest you upgrade VS2015 to Update 3, which fixes a lot of VS errors.
Then, according to the manual, I get the same error message when I run the Add-Migration MyFirstMigration command. Then I run the "Install-Package Microsoft.EntityFrameworkCore.Design" command in the package manager console to install EntityFrameworkCore.Design. After installation, when I run the Add-Migration MyFirstMigration command, it was added successfully.
Below is my contents of the project.json file. Check the version of dependencies and tools. Make sure they are in the correct versions.
"dependencies": { "Microsoft.NETCore.App": { "version": "1.0.0", "type": "platform" }, "Microsoft.AspNetCore.Diagnostics": "1.0.0", "Microsoft.AspNetCore.Server.IISIntegration": "1.0.0", "Microsoft.AspNetCore.Server.Kestrel": "1.0.0", "Microsoft.Extensions.Logging.Console": "1.0.0", "Microsoft.EntityFrameworkCore.SqlServer": "1.0.1", "Microsoft.EntityFrameworkCore.Tools": "1.0.0-preview3-final", "Microsoft.EntityFrameworkCore.Design": "1.0.1" }, "tools": { "Microsoft.EntityFrameworkCore.Tools": "1.0.0-preview2-final", "Microsoft.AspNetCore.Server.IISIntegration.Tools": "1.0.0-preview2-final" },
source share