[MonoDevelop] iPhone/Android app - how to add a project reference to a library (incompatible target framework)

Miljenko Cvjetko mcvjetko at holisticware.net
Tue Nov 15 07:52:53 EST 2011


On 2011.11.15 13:34, Rob Wilson wrote:
> Hi all,
> I am attempting to write my first iPhone application and plan to 
> ensure that the core code is reusable between the iPhone and Android 
> projects.
> I've created a 'Domain' library project, additionally a 'Core' library 
> project, both have the 'Target framework' set to 'Mono / .NET 4.0' 
> with a compile target set to 'Library'.
> I then created the iPhone / iPad project and tried to link the 
> projects together (from within the iPhone project, right-click on 
> 'references' then click on the 'edit references' menu option), but 
> within the Projects tab  both of my library projects say 'Incompatible 
> target framework: v.NETframework, Version=v4.0).
> I am using MonoDevelop version 2.8.2.
> Google searches tend to indicate that I may need to manually link each 
> file?! If that's the case fine, but that does seem very primitive 
> considering that this is surely a common aim?  Am I missing something 
> obvious, or is this how it has to be done?
I do not know if MonoDevelop has (yet) such feature: "batch linking", 
but push it to shared folder
or svn and pull it out on Windows site into Visual Studio.
Visual Studio has bunch of extensions on gallery (productivity tools 
that enable right click copy and
paste as link...

or edit project file:
link snippet

VS has great tool - project linker that does that but on project level 
as You add files to source (base
project with smallest subset of features) they are automagically linked 
to (source)-'linked' projects.
Unless You do some tweaking to exclude linking....


> Regards,
> Rob.
> _______________________________________________
> Monodevelop-list mailing list
> Monodevelop-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/monodevelop-list

Miljenko Cvjetko dipl.ing. ET
	Projektant rjes(enja/Solution Architect	
	Razvojni programer/Senior developer
	Voditelj projekta/Project Manager

IX juz(na obala 13
Kajzerica Zagreb
T: 385 1 7775555
M: 385 91 557 447 3
F: 385 1 7779556
e: mcvjetko at holisticware.net
w: http://www.holisticware.net

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/monodevelop-list/attachments/20111115/fe76a548/attachment.html 

More information about the Monodevelop-list mailing list