You probably could if your assembly didn't use Func`2.
But MFA/MT has it in mscorlib, and WinPhone has it in System.Core.
You can share between MFA and MT, but WinPhone will have to be separate.
Jonathan
On 5/10/2012 1:15 PM, Tossing, Chris wrote:
Thank you for the quick response. I was speaking with Anuj, and I may have
misunderstood him, but it seemed that he was saying that we could simplify our
four projects per shared assembly setup that we have by doing a DLL reference
instead of a project reference. (can't reference non-M4A projects from a M4A
project)
Are we able to build one DLL which is used for all platforms - Mono for
Android, MonoTouch, and Windows Phone?
Thank you,
Chris Tossing
Software Engineer
G4S Technology Software Solutions LLC
Direct Dial: +1 (781) 457-0779
Cell: +1 (847) 942-0359
[email protected]
www.1f.com
21 North Avenue, Burlington, Massachusetts 01803 USA
Please consider the environment before printing this email
-----Original Message-----
From: Jonathan Pobst [mailto:[email protected]]
Sent: Thursday, May 10, 2012 2:11 PM
To: Discussions related to Mono for Android
Cc: Tossing, Chris
Subject: Re: [mono-android] Failed to Deploy - "error MSB4018:
Mono.Cecil.ResolutionException: Failed to resolve System.Func`2"
This generally means that one of your assemblies does not target the
Mono for Android profile.
The issue is that in early versions of .NET, Func`2 is in
System.Core.dll, and then later it moved to mscorlib.dll.
You need to ensure that all your assemblies target the Mono for Android
profile.
Jonathan
On 5/10/2012 12:50 PM, Tossing, Chris wrote:
I’m trying to convert to the references to our common libraries from
project references to dlls, so that we can have only one project per
assembly instead of four. It builds fine, but when I try to deploy to a
device, I am getting the following:
C:\Program Files
(x86)\MSBuild\Novell\Novell.MonoDroid.Common.targets(524,5): error
MSB4018: Mono.Cecil.ResolutionException: Failed to resolve System.Func`2
[C:\TFS\TCSource\branches\Dev-Mobile\Mobile\App\OfMobileMD\OFMobileMD.csproj]
Thank you,
*Chris Tossing*
Software Engineer
G4S Technology Software Solutions LLC
Direct Dial: +1 (781) 457-0779
Cell: +1 (847) 942-0359
[email protected]<mailto:[email protected]>
www.1f.com<http://www.1f.com/>
21 North Avenue, Burlington, Massachusetts 01803 USA
P *Please consider the environment before printing this email*
------------------------------------------------------------------------
The details of this company are as follows:
G4S Technology Limited, Registered Office: Challenge House,
International Drive, Tewkesbury, Gloucestershire GL20 8UQ, Registered in
England No. 2382338.
This communication may contain information which is confidential,
personal and/or privileged.
It is for the exclusive use of the intended recipient(s).
If you are not the intended recipient(s), please note that any
distribution, forwarding, copying or use of this communication or the
information in it is strictly prohibited.
Any personal views expressed in this e-mail are those of the individual
sender and the company does not endorse or accept responsibility for them.
Prior to taking any action based upon this e-mail message, you should
seek appropriate confirmation of its authenticity.
This e-mail has been scanned for all viruses by MessageLabs.
_______________________________________________
Monodroid mailing list
[email protected]
UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid
The details of this company are as follows:
G4S Technology Limited, Registered Office: Challenge House, International
Drive, Tewkesbury, Gloucestershire GL20 8UQ, Registered in England No. 2382338.
This communication may contain information which is confidential, personal
and/or privileged.
It is for the exclusive use of the intended recipient(s).
If you are not the intended recipient(s), please note that any distribution,
forwarding, copying or use of this communication or the information in it is
strictly prohibited.
Any personal views expressed in this e-mail are those of the individual sender
and the company does not endorse or accept responsibility for them.
Prior to taking any action based upon this e-mail message, you should seek
appropriate confirmation of its authenticity.
This e-mail has been scanned for all viruses by MessageLabs.
_______________________________________________
Monodroid mailing list
[email protected]
UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid