MonoTouch with Portable Library Project cannot build

In my solution created using MonoDevelop (3.0.3.5), I have 3 projects:

  • MonoTouch project with user interface,
  • MonoTouch library project with specific iOS code,
  • Portable Library project with a domain model.

The Portable Library project will not compile and display warning symbols in links (System, System.Core, System.Xml) in MonoDevelop. When I expand the assembly link, the following error message is displayed:

Assembly not available in .NETPortable 4.0 Profile1 Profile (in Mono 2.10.9)

The same problem that was reported in this forum thread .

Does anyone have the same problem and can they solve it?

Update

A demo solution with build errors can be found on GitHub here (bgever / plp-build-error) .

I found out that although error messages are shown, the base code can be compiled and works as expected.

However, there are two types of build errors that prevent compilation of the demo solution:

public T Get<T> (Expression<Func<T, bool>> predicate) where T : new() { 

Using type type System.Func<T1,T2,T3,T4,T5,T6,T7,T8,T9,TResult>' requires10 'type argument (CS0305)

So it seems that 2 arguments general overload is Func<T, TResult>not supported?

public void RunInTransaction (Action action) {

Using a System.Action<T>' requiresTypical Type of Arguments of Type 1 '(CS0305)

So, it seems that no generic option Actionwas found?

+5
source share
2 answers

SO: MonoDevelop: PCL? @mhutch, MonoTouch .

, Portable Class Library Mono, MonoDevelop MonoTouch.

Portable Class Library: Xamarin UserVoice.

+1

.Net PLP, , , .Net Framework, MonoDevelop, .

0

All Articles