Skip to content

New architecture for design-time tools - #6288

Merged
natemcmaster merged 1 commit into
devfrom
feature/ef.exe
Aug 11, 2016
Merged

natemcmaster merged 1 commit into
devfrom
feature/ef.exe

Conversation

@natemcmaster

@natemcmaster natemcmaster commented Aug 10, 2016 •

Copy link
Copy Markdown
Contributor

This merges feature/ef.exe into dev. This deprecates .Design.Core and .Tools and introduces .Tools.VisualStudio and .Tools.DotNet.

Most of this has been reviewed in #6112 and #6079

New stuff:

  • Issue warning when architecture is unrecognized (e.g. ARM). f55b1d1
  • Move classes to .Internal
  • Other build cleanup stuff

Issues fixed

TODOs

cc @bricelam @divega

{
public class CommandLineOptions
{
public ICommand Command { get; set; }

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

virtual? May want to enable the API consistency tests (or at least some of them) on this.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assumed YAGNI. This isn't really an "API" in the sense that we don't expect other developers to be able to reuse this.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree it's YAGNI, but consistency merit too. I'm fine not fixing for now.


namespace Microsoft.EntityFrameworkCore.Tools.DotNet.Internal
{
public class InternalNugetPackageCommandResolver

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This name is a lot more general than the implementation. Perhaps it should be something more specific like EFToolCommandResolver?

@bricelam

Copy link
Copy Markdown
Contributor

:shipit: But we must stream output before shipping.

Issues:

 - Fix #646 - implements assembly-based command line interface
 - Fix #5273 - Split tools packages into .Tools.DotNet and .Tools.VisualStudio
 - Fix #5334 - Refactor cmdlets/dotnet-ef to invoke ef.exe/ef.dll
 - Fix #5684 - Use nuspec's instead of Sake
 - Fix #5839 - throw warning when architecture is not in {x86, x64, AnyCPU}

Other changes:

 - Add --no-color and --no-appdomain to command line tools
 - Add --json option to 'dbcontext scaffold' and 'migrations remove'
 - Refactor the inside-man invocation for Tools.DotNet to use "ef.dll" instead of invoking .Design.exe.
 - Add native powershell module for processing/forwarding streams
 - Reorganize code
    *  💔 break up DotNet and VisualStudio command line tools into separate packages
    * Push down execution logic dode from Tools.VisualStudio into .Design.
    * Lift code from .Design.Core to .Design
    * Reorganize test projects
    * Create a powershell only project for Tools.VisualStudio
    * Move tests into appropriate test projects and adjust namespaces
@natemcmaster

Copy link
Copy Markdown
Contributor Author

Rebased and updated, including streaming output on update-database. Waiting for full build to pass.

@natemcmaster
natemcmaster merged commit 9cc12d6 into dev Aug 11, 2016
natemcmaster added a commit to aspnet/Coherence that referenced this pull request Aug 11, 2016
natemcmaster pushed a commit to aspnet/Diagnostics that referenced this pull request Aug 11, 2016
natemcmaster pushed a commit to aspnet/Entropy that referenced this pull request Aug 11, 2016
natemcmaster pushed a commit to aspnet/Identity that referenced this pull request Aug 11, 2016
natemcmaster pushed a commit to aspnet/Templates that referenced this pull request Aug 11, 2016
natemcmaster added a commit to aspnet/Templates that referenced this pull request Aug 17, 2016
DotDeveloper95 added a commit to DotDeveloper95/Entropy that referenced this pull request Sep 4, 2023
sdpotgo996 added a commit to sdpotgo996/Identity that referenced this pull request Jan 21, 2026
sdpotgo996 added a commit to sdpotgo996/Diagnostics that referenced this pull request Jan 21, 2026
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

Successfully merging this pull request may close these issues.

3 participants