{"action":"created","issue":{"url":"https://api.github.com/repos/aspnet/EntityFramework/issues/4683","repository_url":"https://api.github.com/repos/aspnet/EntityFramework","labels_url":"https://api.github.com/repos/aspnet/EntityFramework/issues/4683/labels{/name}","comments_url":"https://api.github.com/repos/aspnet/EntityFramework/issues/4683/comments","events_url":"https://api.github.com/repos/aspnet/EntityFramework/issues/4683/events","html_url":"https://github.com/aspnet/EntityFramework/issues/4683","id":137942015,"number":4683,"title":"Cannot generate migration in UWP when using Win2D","user":{"login":"geoffmmorgan","id":4315558,"avatar_url":"https://avatars.githubusercontent.com/u/4315558?v=3","gravatar_id":"","url":"https://api.github.com/users/geoffmmorgan","html_url":"https://github.com/geoffmmorgan","followers_url":"https://api.github.com/users/geoffmmorgan/followers","following_url":"https://api.github.com/users/geoffmmorgan/following{/other_user}","gists_url":"https://api.github.com/users/geoffmmorgan/gists{/gist_id}","starred_url":"https://api.github.com/users/geoffmmorgan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geoffmmorgan/subscriptions","organizations_url":"https://api.github.com/users/geoffmmorgan/orgs","repos_url":"https://api.github.com/users/geoffmmorgan/repos","events_url":"https://api.github.com/users/geoffmmorgan/events{/privacy}","received_events_url":"https://api.github.com/users/geoffmmorgan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2016-03-02T17:40:14Z","updated_at":"2016-03-02T18:31:46Z","closed_at":null,"body":"I have a UWP project that uses Win2D. When I attempt to generate a migration with EF the migration will fail with the following error.\r\n\r\n> System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.\r\n   at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)\r\n   at System.Reflection.RuntimeAssembly.get_DefinedTypes()\r\n   at Microsoft.Data.Entity.Design.Internal.StartupInvoker..ctor(String startupAssemblyName, String environment)\r\n   at Microsoft.Data.Entity.Design.DbContextOperations..ctor(ILoggerProvider loggerProvider, String assemblyName, String startupAssemblyName, String environment)\r\n   at Microsoft.Data.Entity.Design.MigrationsOperations..ctor(ILoggerProvider loggerProvider, String assemblyName, String startupAssemblyName, String environment, String projectDir, String rootNamespace)\r\n   at Microsoft.Data.Entity.Design.OperationExecutor.<>c__DisplayClass3_0.<.ctor>b__3()\r\n   at Microsoft.Data.Entity.Internal.LazyRef`1.get_Value()\r\n   at Microsoft.Data.Entity.Design.OperationExecutor.<AddMigrationImpl>d__7.MoveNext()\r\n   at System.Linq.Buffer`1..ctor(IEnumerable`1 source)\r\n   at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)\r\n   at Microsoft.Data.Entity.Design.OperationExecutor.OperationBase.<>c__DisplayClass4_0`1.<Execute>b__0()\r\n   at Microsoft.Data.Entity.Design.OperationExecutor.OperationBase.Execute(Action action)\r\nUnable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.\r\n\r\nThis is due to the use of CanvasBitmap.LoadAsync() from Win2D. Any use of that method will prevent migrations from being generated. I have created a sample project demoing this. You can [find it here](https://github.com/geoffmmorgan/MigrationTest/tree/master)"},"comment":{"url":"https://api.github.com/repos/aspnet/EntityFramework/issues/comments/191361687","html_url":"https://github.com/aspnet/EntityFramework/issues/4683#issuecomment-191361687","issue_url":"https://api.github.com/repos/aspnet/EntityFramework/issues/4683","id":191361687,"user":{"login":"darenm","id":1674843,"avatar_url":"https://avatars.githubusercontent.com/u/1674843?v=3","gravatar_id":"","url":"https://api.github.com/users/darenm","html_url":"https://github.com/darenm","followers_url":"https://api.github.com/users/darenm/followers","following_url":"https://api.github.com/users/darenm/following{/other_user}","gists_url":"https://api.github.com/users/darenm/gists{/gist_id}","starred_url":"https://api.github.com/users/darenm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/darenm/subscriptions","organizations_url":"https://api.github.com/users/darenm/orgs","repos_url":"https://api.github.com/users/darenm/repos","events_url":"https://api.github.com/users/darenm/events{/privacy}","received_events_url":"https://api.github.com/users/darenm/received_events","type":"User","site_admin":false},"created_at":"2016-03-02T18:31:46Z","updated_at":"2016-03-02T18:31:46Z","body":"We'll give that a shot. BTW - this code is destined for some important labs at the end of the month..."}}