是否可以在 Mono 上运行 LINQPad (Mac)

发布于 2024-09-18 16:32:17 字数 1575 浏览 7 评论 0 原文

我已经在 Snow Leopard 中安装了 Mono 2.6.7,并且想运行 LINQPad。我已经启动了 LINQPad (v2.21),但立即收到 FileNotFoundException。有没有人能够成功运行它?

我认为例外是因为它试图读取/写入配置文件或其他内容,但希望有一些解决方法。

谢谢。

编辑: 使用“Olive”构建 Mono(WPF 必需):

在终端中:

svn co svn://anonsvn.mono-project.com/source/trunk/olive
cd /Users/(your user name)/olive
./configure --prefix=/Users/(your user name)/olive --with-glib=embedded
make
make install

现在在 Finder 中导航到:

/Users/(您的用户名)/olive/lib/mono/gac

将这些文件夹(例如:PresentationCore、PresentationFramework)复制到:

/Library/Frameworks/Mono.framework/Versions/2.6.7/lib/mono/gac (当前的 Mono 版本是 2.6.7,但这显然可能有所不同)

编辑:不幸的是,现在我在运行 LINQPad 时得到了这个:

警告**:该类 System.Windows.Resources.AssemblyAssociatedContentFileAttribute 无法加载,在 LINQPad 中使用无法加载,在 LINQPad 中使用

编辑: Xamarin Workbooks 最近发布了 1.0 (https://developer.xamarin.com/workbooks/),是我见过的最接近 macOS 上的 LINQPad 的版本。

编辑(2017 年 9 月): 这仍然是推测性的!

使用 Docker 和适用于 Linux 的 Windows 子系统 (WSL) 可能可以运行大多数 Windows 应用程序(包括 GUI 应用程序):

在 Ubuntu 上运行的 cmd.exe 的动画演示

请参阅博客文章 https://blog.jessfraz.com/post/windows-for-linux-nerds/ 了解详细的演练。

I have installed Mono 2.6.7 in Snow Leopard and would like to run LINQPad. I've gotten LINQPad (v2.21) to start but immediately get a FileNotFoundException. Has anyone been able to run it successfully?

I assume the exception is because it's trying to read/write a config file or something but hopefully there is some workaround.

Thanks.

Edit:
Building Mono with "Olive" (required for WPF):

In Terminal:

svn co svn://anonsvn.mono-project.com/source/trunk/olive
cd /Users/(your user name)/olive
./configure --prefix=/Users/(your user name)/olive --with-glib=embedded
make
make install

Now navigate in Finder to:

/Users/(your user name)/olive/lib/mono/gac

Copy those folders (ex: PresentationCore, PresentationFramework) into:

/Library/Frameworks/Mono.framework/Versions/2.6.7/lib/mono/gac
(Current Mono version is 2.6.7 but this obviously may be different)

Edit: Unfortunately, now I'm getting this when running LINQPad:

WARNING **: The class
System.Windows.Resources.AssemblyAssociatedContentFileAttribute
could not be loaded, used in LINQPadcould not be loaded, used in LINQPad

Edit: Xamarin Workbooks recently released 1.0 (https://developer.xamarin.com/workbooks/) and is the closest I've seen to LINQPad on macOS.

Edit (September 2017):
This is still speculative!

Running most Windows applications (including GUI apps) might be possible with Docker and Windows Subsystem for Linux (WSL):

Animated demo of cmd.exe running on Ubuntu

See the blog post at https://blog.jessfraz.com/post/windows-for-linux-nerds/ for a detailed walkthrough.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

凤舞天涯 2024-09-25 16:32:17

LINQPad 不能在 Mono 中工作,主要是因为它依赖于 ActiPro 的 SyntaxEditor,后者执行一些 Win32 互操作。 LINQPad 本身也进行一些互操作。

LINQPad 的早期原型使用 TextBox 而不是语法编辑器 - 这可能是针对 Mono 进行的测试。

LINQPad doesn't work in Mono primarily because it relies on ActiPro's SyntaxEditor which does some Win32 interop. LINQPad itself also does some interop.

An early prototype of LINQPad used a TextBox instead of a syntax editor - this might be what was tested against Mono.

好多鱼好多余 2024-09-25 16:32:17

我还想让 LINQpad 在 OSX 下运行,但在使用上面链接的 Joe 的 0.92 版本后发现这似乎不可能。

尽管该应用程序在单声道下启动并显示熟悉的 LINQPad 屏幕,但如果您尝试运行任何查询,它只会崩溃并消失。

原因是该 LINQPad 版本中似乎使用了 WebBrowser 控件,并且根据终端窗口中显示的错误,似乎需要 libgluezilla。通过对 libgluezilla 的一些挖掘,我看到了 Mono 开发者的一些回复,说它现在和将来都不会在 Mac 上可用,这是一个遗憾。

错误参考:

mono linqpad.exe
libgluezilla not found. To have webbrowser support, you need libgluezilla installed

I also wanted to get LINQpad running under OSX and have found after using the above linked 0.92 version from Joe that it does not seem possible.

Although the app starts up under mono and displays the familiar LINQPad screen if you try and run any query it simply crashes and disappears.

Reason being is that there seems to be some use of a WebBrowser control in that LINQPad version and according to the errors displayed in the terminal window it would appear that libgluezilla is required. From doing some digging about libgluezilla I've seen a few replies from Mono devs that it isn't and won't be available for mac, which is a shame.

Error for reference:

mono linqpad.exe
libgluezilla not found. To have webbrowser support, you need libgluezilla installed
呆橘 2024-09-25 16:32:17

LinqPad 可能是我完全迁移到 Mac 进行开发后所怀念的一件事,我不会仅仅为了访问它而运行虚拟机。如上所述,Xamarin Workbooks 实际上是 macOS 的相当不错的替代品。

迭代正则表达式匹配></a><br />
参考:<a href=https://stackoverflow.com/a/8480659/132599

LinqPad is probably the one thing I miss from moving entirely to Mac for development and I'm not going to run a VM just to access it. As mentioned above, Xamarin Workbooks is actually a pretty decent replacement for macOS.

Iterating regex matches
ref:https://stackoverflow.com/a/8480659/132599

贩梦商人 2024-09-25 16:32:17

如果您查看 Mono 文档,它会说 LINQPad 是他们用来测试 WinForms 实现的应用程序之一:

Winforms 示例 - Mono

也就是说,我必须想象他们已经能够让它自己工作。

If you look at the Mono documentation, it says that LINQPad is one of the applications they use to test their WinForms implementation:

Winforms Samples - Mono

That said, I have to imagine that they've been able to get it to work themselves.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文