Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MonoDroid project in a solution that contains a windows 7 phone project?

I have a VS 2010 solution that has a windows 7 phone project in it.

I added a default monoandroid project and when I try to deploy it(the emulator dialog does appear)

I get this error

" (SignAndroidPackage target) (1) ->
(_CompileAndroidPackage target) -> 
  monodroid : error 1: Evaluation version requires targeting the shared runtime. [C:\A\B\AndroidApplication1.csproj]

    0 Warning(s)
    1 Error(s)

Time Elapsed 00:00:00.87

If I unload the windows 7 phone project I lose the ability to deploy it.

They are currently share nothing. I just want them in the same project.

like image 259
chobo2 Avatar asked Aug 02 '11 19:08

chobo2


1 Answers

Did you change the AndroidApplication1 project options to disable the shared runtime, and/or do a Release build? You can check the shared runtime by viewing the Project Properties, going to the Mono Android Options tab, and ensuring that the "Use Shared Runtime" checkbox is checked.

Release builds always disable the shared runtime by default, so performing a Release build could also be a problem.

like image 51
jonp Avatar answered Oct 14 '22 11:10

jonp