Repository navigation
Closed
Milestone
Description
This bug was hiding under #4802 .
Repro steps
Install Microsoft.EFCore.Commands
Execute any EF command from PMC.
Error:
System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.AspNetCore.Hosting.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' or one of its dependencies. The system cannot find the file specified.
File name: 'Microsoft.AspNetCore.Hosting.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'
I've also seen this one:
> Add-Migration First -Verbose
Using startup project 'test\UWP.SQLite'.
Using project 'test\UWP.SQLite'
Build started...
Build succeeded.
Using application base 'C:\Users\namc\dev\ef.platformtesting\test\UWP.SQLite\bin\x86\Debug\'.
No configuration file found.
Using current directory 'C:\Users\namc\dev\ef.platformtesting\test\UWP.SQLite\bin\x86\Debug\'.
System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)
at System.Reflection.RuntimeAssembly.get_DefinedTypes()
at Microsoft.EntityFrameworkCore.Design.Internal.StartupInvoker..ctor(Assembly startupAssembly, String environment, String startupProjectDir)
at Microsoft.EntityFrameworkCore.Design.DbContextOperations..ctor(ILoggerProvider loggerProvider, Assembly assembly, Assembly startupAssembly, String environment, String startupProjectDir)
at Microsoft.EntityFrameworkCore.Design.MigrationsOperations..ctor(AssemblyLoader assemblyLoader, ILoggerProvider loggerProvider, Assembly assembly, Assembly startupAssembly, String environment, String projectDir, String startupProjectDir, String rootNamespace)
at Microsoft.EntityFrameworkCore.Design.OperationExecutor.<>c__DisplayClass4_0.<.ctor>b__5()
at Microsoft.EntityFrameworkCore.Internal.LazyRef`1.get_Value()
Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
Metadata
Metadata
Assignees
Labels
No labels
Activity
natemcmaster commentedon Apr 11, 2016
Triage: we need to fix this for RC2
natemcmaster commentedon Apr 12, 2016
Closed via #5037