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

ef command should not build if not needed #5850

Closed
moozzyk opened this issue Jun 24, 2016 · 2 comments
Closed

ef command should not build if not needed #5850

moozzyk opened this issue Jun 24, 2016 · 2 comments

Comments

@moozzyk
Copy link

moozzyk commented Jun 24, 2016

I just do dotnet ef --help and it builds my app. On top of that because the application is built it runs build scripts (bundler and minifier). EF command should only invoke build when it is needed.

PS C:\users\XXXXX\documents\visual studio 2015\Projects\WebApplication12\src\WebApplication12> dotnet ef --help
Project WebApplication12 (.NETCoreApp,Version=v1.0) will be compiled because project is not safe for incremental compilation. Use --build-profile flag for more information.
Compiling WebApplication12 for .NETCoreApp,Version=v1.0
Bundling with configuration from C:\users\XXXXX\documents\visual studio 2015\Projects\WebApplication12\src\WebApplication12\bundleconfig.json
Processing wwwroot/css/site.min.css
  Bundled
  Minified
Processing wwwroot/js/site.min.js
Compilation succeeded.
    0 Warning(s)
    0 Error(s)
Time elapsed 00:00:03.4386959
 (The compilation time can be improved. Run "dotnet build --build-profile" for more information)
Entity Framework .NET Core CLI Commands 1.0.0-preview2-21424
Usage: dotnet ef [options] [command]
Options:
  -h|--help                      Show help information
  -v|--verbose                   Enable verbose output
  --version                      Show version information
  --assembly <ASSEMBLY>          The assembly file to load.
  --startup-assembly <ASSEMBLY>  The assembly file containing the startup class.
  --data-dir <DIR>               The folder used as the data directory (defaults to current working directory).
  --project-dir <DIR>            The folder used as the project directory (defaults to current working directory).
  --content-root-path <DIR>      The folder used as the content root path for the application (defaults to application base directory).
  --root-namespace <NAMESPACE>   The root namespace of the target project (defaults to the project assembly name).
Commands:
  database    Commands to manage your database
  dbcontext   Commands to manage your DbContext types
  migrations  Commands to manage your migrations
Use "dotnet ef [command] --help" for more information about a command.
@rowanmiller
Copy link
Contributor

Already tracked as part of #5188

@moozzyk
Copy link
Author

moozzyk commented Jun 24, 2016

Closing as it's already tracked.

@moozzyk moozzyk closed this as completed Jun 24, 2016
@ajcvickers ajcvickers reopened this Oct 16, 2022
@ajcvickers ajcvickers closed this as not planned Won't fix, can't repro, duplicate, stale Oct 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants