Get ready to go to ABP website https://aspnetboilerplate.com/Create your project This example to create a. NET CORE 1.1 release as an example open VS2017 open project after download. Build Solution two. Open the Package management console, the default project selection src\badmati.entityframeworkcore2.1 run the following command add-migration initialcreate error Add-migration: The "add-migration" item cannot be identified as a cmdlet, function, script file, or name of a running program. Check the spelling of the name, if the path is included, make sure the path is correct, and then try again. Location Line: 1 character: 1+ add-migration initialcreate reason is not referenced entityframeworkcore,2.2 run the following command, Load entityframework reference import-module c:\users\{user name}\.nuget\packages\microsoft.entityframeworkcore.tools\1.1.1\ tools\entityframeworkcore.psd1 Example: Import-module C:\Users\Badmati\.nuget\packages\ MICROSOFT.ENTITYFRAMEWORKCORE.TOOLS\1.1.1\TOOLS\ENTITYFRAMEWORKCORE.PSD1 after running the following warning (can be ignored): module " The names of some of the import commands in Entityframeworkcore contain unapproved verbs that may cause these command names to be difficult to find. To find a command that has an unapproved verb, run the import-module command again using the Verbose parameter. For a list of approved verbs, type Get-verb. 2.3 run the following command: Add-migration initialcreate error is as follows: System.IO.FileNotFoundException:Could not load file or assembly ' Microsoft.EntityFrameworkCore.Design, Culture=neutral, PublickeytOken=null '. The system cannot find the file specified. File name: ' Microsoft.EntityFrameworkCore.Design, culture=neutral, Publickeytoken=null ' at System.reflection.runtimeassembly._nload (AssemblyName fileName, String codeBase, Evidence assemblysecurity, Runtimeassembly locationhint, stackcrawlmark& stackmark, IntPtr pprivhostbinder, Boolean throwOnFileNotFound, Boolean forintrospection, Boolean suppresssecuritychecks, IntPtr Ptrloadcontextbinder) at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName (AssemblyName assemblyref, Evidence assemblysecurity, runtimeassembly reqassembly, stackcrawlmark& stackmark, IntPtr pprivhostbinder, Boolean throwOnFileNotFound, Boolean forintrospection, Boolean suppresssecuritychecks, IntPtr Ptrloadcontextbinder) at System.Reflection.Assembly.Load (AssemblyName AssemblyRef) at Microsoft.EntityFrameworkCore.Tools.ReflectionOperationExecutor. ctor (string assembly, String startupassembly, String ProjectDir, String Contentrootpath, String dataDirectory, String roo Tnamespace, String Environment) at Microsoft.EntityFrameworkCore.Tools.Commands.ProjectCommandBase.CreateExecutor () at Microsoft.EntityFrameworkCore.Tools.Commands.MigrationsAddCommand.Execute () at Microsoft.DotNet.Cli.CommandLine.CommandLineApplication.Execute (string[] args) at Microsoft.EntityFrameworkCore.Tools.Program.Main (string[] args) Could not load file or assembly ' Microsoft.EntityFrameworkCore.Design, Culture=neutral, Publickeytoken=null '. The system cannot find the file specified. 2.4 set Entityframeworkcore as the startup project and run the Add-migration initialcreate results as follows: To undo the action, use Remove-migration. Indicates a successful 2.5 initialization database: update-database See output done. Indicates that the execution is complete 2.6 the Web.host setting does not start the item, the startup project enters the following interface, the configuration succeeds: This deployment note is written here, if it is helpful to you or this solves your problem, please click to praise. If you do not solve your problem, please leave a message to discuss.
. NET core ABP Deployment