c# - dnx . ef command returns System.Reflection.ReflectionTypeLoadException -
i'm trying create first migration file , got following error after execute dnx command:
dnx . ef migration add migrationfile
system.reflection.reflectiontypeloadexception: unable load 1 or more of requested types. retrieve loaderexceptions property more information. @ system.reflection.runtimemodule.gettypes(runtimemodule module) @ system.reflection.assembly.gettypes() @ microsoft.data.entity.commands.contexttool.getcontexttypes(assembly assembly) @ microsoft.data.entity.commands.migrationtool.getcontexttypes() @ microsoft.data.entity.commands.migrationtool.getcontexttype(string name) @ microsoft.data.entity.commands.migrationtool.addmigration(string migration name, string contexttypename, string startupassemblyname, string rootnamespace, string projectdir) @ microsoft.data.entity.commands.program.<>c__displayclass12_0.<addmigration>b__0() @ microsoft.data.entity.commands.program.execute(string startupproject, func`1 invoke) @ microsoft.framework.runtime.common.commandline.commandlineapplication.execute(string[] args) --- end of stack trace previous location exception thrown --- @ system.runtime.exceptionservices.exceptiondispatchinfo.throw() @ microsoft.framework.runtime.common.entrypointexecutor.execute(assembly assembly, string[] args, iserviceprovider serviceprovider) @ microsoft.framework.applicationhost.program.executemain(defaulthost host, string applicationname, string[] args) @ microsoft.framework.applicationhost.program.main(string[] args) --- end of stack trace previous location exception thrown --- @ system.runtime.exceptionservices.exceptiondispatchinfo.throw() @ microsoft.framework.runtime.common.entrypointexecutor.execute(assembly assembly, string[] args, iserviceprovider serviceprovider) @ dnx.host.bootstrapper.runasync(list`1 args, iruntimeenvironment env, frame workname targetframework) @ dnx.host.runtimebootstrapper.executeasync(string[] args, frameworkname targetframework) @ dnx.host.runtimebootstrapper.execute(string[] args, frameworkname targetframework)
Comments
Post a Comment