. NET Core ABP Deployment

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.