Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CLI Tools: --configuration switch does not work #8399

Closed
caleblloyd opened this issue May 6, 2017 · 1 comment
Closed

CLI Tools: --configuration switch does not work #8399

caleblloyd opened this issue May 6, 2017 · 1 comment
Assignees
Labels
closed-fixed The issue has been fixed and is/will be included in the release indicated by the issue milestone. type-bug
Milestone

Comments

@caleblloyd
Copy link

When I add the --configuration Debug option to my dotnet ef commands, it does not work:

$ dotnet ef --configuration Debug database drop -f
/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]
Unable 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.

Without the switch everything works fine:

$ dotnet ef database drop -f

Build succeeded.
    0 Warning(s)
    0 Error(s)

Time Elapsed 00:00:02.63
Dropping database 'mysqltest'.
Database 'mysqltest' did not exist, no action was taken.

Looks like other people have problems with this too on StackOverflow: http://stackoverflow.com/questions/43676017/dotnet-ef-run-with-configuration-causes-msb4006

Further technical details

EF Core version:

    <PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="1.1.0" />
    <DotNetCliToolReference Include="Microsoft.EntityFrameworkCore.Tools.DotNet" Version="1.0.0" />

Database Provider: Pomelo.EntityFrameworkCore.MySql 1.1.1
Operating system: Ubuntu 16.04 x64

@bricelam bricelam self-assigned this May 8, 2017
@bricelam bricelam changed the title --configuration switch in dotnet ef commands does not work CLI Tools: --configuration switch does not work May 8, 2017
@ajcvickers ajcvickers added this to the 2.0.0 milestone May 12, 2017
@bricelam
Copy link
Contributor

Workaround

Specify --framework as well as --configuration

@bricelam bricelam added the closed-fixed The issue has been fixed and is/will be included in the release indicated by the issue milestone. label May 26, 2017
@bricelam bricelam modified the milestones: 2.0.0-preview2, 2.0.0 May 26, 2017
@ajcvickers ajcvickers modified the milestones: 2.0.0-preview2, 2.0.0 Oct 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed-fixed The issue has been fixed and is/will be included in the release indicated by the issue milestone. type-bug
Projects
None yet
Development

No branches or pull requests

3 participants