小编nvi*_*rth的帖子

Visual Studio 外部 PowerShell 中的 EF6 添加迁移

如何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)

powershell entity-framework-6 entity-framework-migrations

5
推荐指数
1
解决办法
6568
查看次数

如何以编程方式在OS X上打开任何类型的文件?

我试过这个:

var openedSuccessfully = AppKit.NSWorkspace.SharedWorkspace.OpenFile(filePath);
Run Code Online (Sandbox Code Playgroud)

它似乎有效,除了那些没有与之关联的默认应用程序的文件类型.当我尝试从Finder打开这样的文件时,我得到了这个对话框:

Finder的app选择器

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

macos cocoa xamarin xamarin.mac

1
推荐指数
1
解决办法
1214
查看次数