[mono-android] Build script on mac

Steven Pack steven_john_pack at yahoo.com.au
Sun Feb 19 07:07:19 UTC 2012


Thanks.

Where are all the targets defined? And how do import them? Specifying any of those simply throws a target not found error. It looks like xbuild does try to import Mono.MonoMac.targets which I assume is where they are located...?The file it's looking for is not there.

I do have some target files here: /Library/Frameworks/Mono.framework/External/xbuild/Novell

e.g. Novell.MonoDroid.Build.Tasks.dll and Novel.MonoDroid.CSharp.targets.


Also, how do I specifiy Clean and RebuildAll? Are they just targets?


/Users/me/Dev/mono/projects/TheDictionary/TheDictionary.SetupTasks/TheDictionary.SetupTasks.csproj:  warning : Could not find project file /Library/Frameworks/Mono.framework/External/xbuild/Mono/MonoMac/v0.0/Mono.MonoMac.targets, to import. Ignoring.
Project "/Users/me/Dev/mono/projects/TheDictionary/TheDictionary.sln" (SignAndroidPackage target(s)):
        Target ValidateSolutionConfiguration:
                Building solution configuration "Debug|Any CPU".
/Users/me/Dev/mono/projects/TheDictionary/TheDictionary.sln: error : Target named 'SignAndroidPackage' not found in the project.
Done building project "/Users/me/Dev/mono/projects/TheDictionary/TheDictionary.sln".-- FAILED



________________________________
 From: Jonathan Pryor <jonp at xamarin.com>
To: Steven Pack <steven_john_pack at yahoo.com.au>; Discussions related to Mono for Android <monodroid at lists.ximian.com> 
Sent: Sunday, 19 February 2012 2:38 AM
Subject: Re: [mono-android] Build script on mac
 
On Feb 18, 2012, at 7:09 AM, Steven Pack wrote:
> Any issues I should be aware of with xbuild? Or is that the way?

xbuild is the way. Other helpful targets include:

    /t:Install
        Install app onto a device. If you have more than one device running, use /p:AdbTarget, e.g. to install on emulator /p:AdbTarget=-e
    /t:Uninstall
        Uninstall app from a device. If you have more than one device running, use /p:AdbTarget, e.g. to install on emulator /p:AdbTarget=-e
    /t:SignAndroidPackage
        Create the .apk

- Jon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/monodroid/attachments/20120218/52a21c7a/attachment-0001.html>


More information about the Monodroid mailing list