views:

100

answers:

2

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

+1  A: 

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.

Justin Niessner
I saw that but, alas, it doesn't work for me.
ifwdev
@ifwdev - I just saw the exception you posted. It looks like the newer versions of LINQPad require WPF (which Mono doesn't implement). You might want to try downloading a previous version of LINQPad.
Justin Niessner
+4  A: 

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.

Joe Albahari
Well I guess you'd know better than anyone. At least I learned a bit about Mono anyway. Thanks Joe...
ifwdev
Joe: Do you think an older version might work? (see Justin's comment)
ifwdev
Yes - I expect a VERY old version would work (0.9x). Unfortunately, I no longer has this version on file.
Joe Albahari
Update: I've tracked down an old copy of LINQPad (0.92) and uploaded it here: www.linqpad.net/LINQPad092.zip. Ensure you run it via the shortcut (which calls LINQPad with the -noupdate and -noforward switches), otherwise LINQPad will patch itself to the latest version.
Joe Albahari
I'll try that tonight. Thanks!
ifwdev