{"action":"opened","issue":{"url":"https://api.github.com/repos/aspnet/EntityFramework/issues/8399","repository_url":"https://api.github.com/repos/aspnet/EntityFramework","labels_url":"https://api.github.com/repos/aspnet/EntityFramework/issues/8399/labels{/name}","comments_url":"https://api.github.com/repos/aspnet/EntityFramework/issues/8399/comments","events_url":"https://api.github.com/repos/aspnet/EntityFramework/issues/8399/events","html_url":"https://github.com/aspnet/EntityFramework/issues/8399","id":226788619,"number":8399,"title":"--configuration switch in `dotnet ef` commands does not work","user":{"login":"caleblloyd","id":2414837,"avatar_url":"https://avatars3.githubusercontent.com/u/2414837?v=3","gravatar_id":"","url":"https://api.github.com/users/caleblloyd","html_url":"https://github.com/caleblloyd","followers_url":"https://api.github.com/users/caleblloyd/followers","following_url":"https://api.github.com/users/caleblloyd/following{/other_user}","gists_url":"https://api.github.com/users/caleblloyd/gists{/gist_id}","starred_url":"https://api.github.com/users/caleblloyd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caleblloyd/subscriptions","organizations_url":"https://api.github.com/users/caleblloyd/orgs","repos_url":"https://api.github.com/users/caleblloyd/repos","events_url":"https://api.github.com/users/caleblloyd/events{/privacy}","received_events_url":"https://api.github.com/users/caleblloyd/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-05-06T17:22:04Z","updated_at":"2017-05-06T17:22:04Z","closed_at":null,"body":"When I add the `--configuration Debug` option to my `dotnet ef` commands, it does not work:\r\n\r\n```\r\n$ dotnet ef --configuration Debug database drop -f\r\n/home/caleb/Projects/caleb/Pomelo.EntityFrameworkCore.MySql/test/Pomelo.EntityFrameworkCore.MySql.PerfTests/obj/Pomelo.EntityFrameworkCore.MySql.PerfTests.csproj.EntityFrameworkCore.targets(4,5): error MSB4006: There is a circular dependency in the target dependency graph involving target \"GetEFProjectMetadata\". [/home/caleb/Projects/caleb/Pomelo.EntityFrameworkCore.MySql/test/Pomelo.EntityFrameworkCore.MySql.PerfTests/Pomelo.EntityFrameworkCore.MySql.PerfTests.csproj]\r\nUnable to retrieve project metadata. Ensure it's an MSBuild-based .NET Core project. If you're using custom BaseIntermediateOutputPath or MSBuildProjectExtensionsPath values, Use the --msbuildprojectextensionspath option.\r\n```\r\n\r\nWithout the switch everything works fine:\r\n\r\n```\r\n$ dotnet ef database drop -f\r\n\r\nBuild succeeded.\r\n    0 Warning(s)\r\n    0 Error(s)\r\n\r\nTime Elapsed 00:00:02.63\r\nDropping database 'mysqltest'.\r\nDatabase 'mysqltest' did not exist, no action was taken.\r\n```\r\n\r\nLooks like other people have problems with this too on StackOverflow: http://stackoverflow.com/questions/43676017/dotnet-ef-run-with-configuration-causes-msb4006\r\n\r\n### Further technical details\r\nEF Core version:\r\n\r\n```\r\n    <PackageReference Include=\"Microsoft.EntityFrameworkCore.Tools\" Version=\"1.1.0\" />\r\n    <DotNetCliToolReference Include=\"Microsoft.EntityFrameworkCore.Tools.DotNet\" Version=\"1.0.0\" />\r\n```\r\n\r\nDatabase Provider: `Pomelo.EntityFrameworkCore.MySql 1.1.1`\r\nOperating system: `Ubuntu 16.04 x64`\r\n"}}
{"actor":{"display_login":"caleblloyd"}}