Xamarin Studio Plugin (Mac)

98 views
Skip to first unread message

Justin Walsh

unread,
May 30, 2013, 3:10:48 AM5/30/13
to plays...@googlegroups.com
I've installed the Xamarin Studio Plugin into Xamarin Studio 4.0.8 (build 2) and am unable to get a project to compile...
Using the Playscript Console Solution the output I receive is...

Building: HelloConsole (Release|x86)
Performing main compilation...
/Users/justinwalsh/Library/Application Support/XamarinStudio-4.0/LocalInstall/Addins/MonoDevelop.PlayScriptBinding.4.0.5/playc /noconfig "/r:/Users/justinwalsh/Projects/Playscript/SDK/lib/mono/4.0/mscorlib.dll" -nostdlib "/out:/Users/justinwalsh/Projects/Playscript/HelloConsole/HelloConsole/bin/Release/HelloConsole.exe" "/r:/Users/justinwalsh/Projects/Playscript/SDK/lib/mono/4.0/System.dll" "/r:/Users/justinwalsh/Library/Application Support/XamarinStudio-4.0/LocalInstall/Addins/MonoDevelop.PlayScriptBinding.4.0.5/pscorlib_aot.dll" "/r:/Users/justinwalsh/Library/Application Support/XamarinStudio-4.0/LocalInstall/Addins/MonoDevelop.PlayScriptBinding.4.0.5/PlayScript.Dynamic_aot.dll" "/r:/Users/justinwalsh/Projects/Playscript/SDK/lib/mono/4.0/System.Core.dll" /nologo /warn:4 /optimize+ /codepage:utf8 /platform:x86 /t:exe "/Users/justinwalsh/Projects/Playscript/HelloConsole/HelloConsole/Main.play" 

---------------------- Done ----------------------

Build failed. ApplicationName='/Users/justinwalsh/Library/Application Support/XamarinStudio-4.0/LocalInstall/Addins/MonoDevelop.PlayScriptBinding.4.0.5/playc', CommandLine='/noconfig @"/var/folders/9c/mz0l4nx56rd9cs6kjhrhhm2m0000gn/T/tmp637ecebc.tmp"', CurrentDirectory='/Users/justinwalsh/Projects/Playscript/HelloConsole/HelloConsole'
Build: 1 error, 0 warnings
 

So I copied the output from the compiler and ran the following command on the command line...
 
~/Projects/Playscript/SDK/bin/mono /Users/justinwalsh/Library/Application\ Support/XamarinStudio-4.0/LocalInstall/Addins/MonoDevelop.PlayScriptBinding.4.0.5/playc.exe "/r:/Users/justinwalsh/Projects/Playscript/SDK/lib/mono/4.0/mscorlib.dll" -nostdlib "/out:/Users/justinwalsh/Projects/Playscript/HelloConsole/HelloConsole/bin/Release/HelloConsole.exe" "/r:/Users/justinwalsh/Projects/Playscript/SDK/lib/mono/4.0/System.dll" "/r:/Users/justinwalsh/Library/Application Support/XamarinStudio-4.0/LocalInstall/Addins/MonoDevelop.PlayScriptBinding.4.0.5/pscorlib_aot.dll" "/r:/Users/justinwalsh/Library/Application Support/XamarinStudio-4.0/LocalInstall/Addins/MonoDevelop.PlayScriptBinding.4.0.5/PlayScript.Dynamic_aot.dll" "/r:/Users/justinwalsh/Projects/Playscript/SDK/lib/mono/4.0/System.Core.dll" /nologo /warn:4 /optimize+ /codepage:utf8 /platform:x86 /t:exe "/Users/justinwalsh/Projects/Playscript/HelloConsole/HelloConsole/Main.play"


Well, I didn't get any build errors, and HelloConsole.exe was hanging out in the Release folder as expected. When I attempt to run the file using the same mono I used to compile above, I get this error...

The entry point method could not be loaded


Not sure what is wrong, or how I can get you any more info to help figure out what the problem might be. Any ideas?

Ben Cooley

unread,
May 31, 2013, 3:46:04 AM5/31/13
to plays...@googlegroups.com
Hi Justin,

What's happening is that the compiled program can't find one of it's dependent DLL's, so it can't start.   You'll need to copy the dll's into the target folder (pscorlib, PlayScriptDynamic, etc.). 

I don't know why mono is not giving the "Dependency not found" error, but it's not.  It might be broken.

I don't know why the plugin is not working for you.  What MonoDevelop is returning doesn't seem to be particularly helpful in diagnosing the problem either.

Ben Cooley

unread,
May 31, 2013, 3:50:26 AM5/31/13
to plays...@googlegroups.com
Justin,

I would recommend the "framework" install procedure right now until we wrap up the plugin support for the playc compiler and distribute the binaries.

To use the framework, clone and build the github playscript-mono repository, and then use a standard C# project (or C# monotouch/mono android), and point your .NET framework to the PlayScript framework you built.  This is what we've used for development as we work on fixing the bugs in the PlayScript plugin.

The plugin still gives you full syntax highlighting, code completion, etc. when using standard .csproj C# projects and using the playscript version of the mcs.exe compiler.  The ".psproj" project type still seems to be to alpha stage to use just yet.


On Thursday, May 30, 2013 12:10:48 AM UTC-7, Justin Walsh wrote:
Reply all
Reply to author
Forward
0 new messages