如何Add-Migration在 Visual Studio 之外的 PowerShell 窗口中运行 EF6?
当我尝试运行它时,出现以下错误消息:
Add-Migration : The term 'Add-Migration' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
Run Code Online (Sandbox Code Playgroud) 我试过这个:
var openedSuccessfully = AppKit.NSWorkspace.SharedWorkspace.OpenFile(filePath);
Run Code Online (Sandbox Code Playgroud)
它似乎有效,除了那些没有与之关联的默认应用程序的文件类型.当我尝试从Finder打开这样的文件时,我得到了这个对话框:

有没有办法以编程方式打开这个(或类似的)app选择器窗口?