Skip to content

Refactor PMC commands to invoke ef.exe/ef.dll - #6112

Merged
natemcmaster merged 3 commits into
dotnet:namc/ef.exefrom
natemcmaster:ps
Aug 10, 2016
Merged

natemcmaster merged 3 commits into
dotnet:namc/ef.exefrom
natemcmaster:ps

Conversation

@natemcmaster

@natemcmaster natemcmaster commented Jul 19, 2016 •

Copy link
Copy Markdown
Contributor

NB: will merge to feature branch. Based of changes in #6079

Part of #5334

Changes:

  • Package Manager Console commands start a new process using "ef.exe" or
    "dotnet.exe ef.dll"
  • Add --no-color and --no-appdomain to ef.exe
  • ef.exe can fallback to reflection based invocation
  • Add a "prefixed" reporter to ef.exe which helps PMC commands redirect
    stdout to PowerShell's Warning, Output, Warning, and Error streams
  • Add more --json option to 'dbcontext scaffold' and 'migrations remove'

TODO:

  • more automated testing
  • xmldoc

cc @bricelam

}
}


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.

nit: Empty line

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.

 

try
{
#if NET451
if (!options.NoAppDomain)

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.

Why enable this? The other code path won't work unless you copy ef.exe to your bin directory, and even then the App.config won't get used for settings, redirects, etc.

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.

UWP design-time. UWP ends up with the NETStandard .Design assembly which means the internal OperationExecutor isn't an MBRO.

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.

Makes sense.

@bricelam

bricelam commented Aug 8, 2016

Copy link
Copy Markdown
Contributor

:shipit:

Nate McMaster added 2 commits August 8, 2016 16:29
Changes:

 - Package Manager Console commands start a new process using "ef.exe" or
   "dotnet.exe ef.dll"
 - Add --no-color and --no-appdomain to ef.exe
 - ef.exe can fallback to reflection based invocation
 - Add a "prefixed" reporter to ef.exe which helps PMC commands redirect
   stdout to PowerShell's Warning, Output, Warning, and Error streams
 - Add more --json option to 'dbcontext scaffold' and 'migrations remove'
@natemcmaster
natemcmaster merged commit b82946f into dotnet:namc/ef.exe Aug 10, 2016
@natemcmaster
natemcmaster deleted the ps branch August 10, 2016 16:44
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.

4 participants