SharpDevelop Community

Get your problems solved!
Welcome to SharpDevelop Community Sign in | Join | Help
in Search

Cannot target framework mono

Last post 09-07-2008 5:36 PM by narven. 8 replies.
Page 1 of 1 (9 items)
Sort Posts: Previous Next
  • 09-03-2008 9:41 PM

    • narven
    • Top 500 Contributor
    • Joined on 08-16-2008
    • Lisboa, Portugal
    • Posts 9

    Cannot target framework mono

     hi,

     

    i've installed mono-1.9.1-gtksharp-2.10.4-win32-2 and sharpdevelop, but in my project properties i cannot Target Platform to Mono 1.1 :(

     

    can anyone help me?

    http://www.narvenblog.com/blog
    Filed under:
  • 09-03-2008 10:02 PM In reply to

    Re: Cannot target framework mono

    Mono is only supported via additional backend bindings that need to be installed separately:

    http://laputa.sharpdevelop.net/SharpDevelop3WhereDidMonoAndNAntSupportGo.aspx

    Chris

  • 09-04-2008 2:45 AM In reply to

    • narven
    • Top 500 Contributor
    • Joined on 08-16-2008
    • Lisboa, Portugal
    • Posts 9

    Re: Cannot target framework mono

     ive instaled all the things needed, but i still cant change the target framework to mono :(

     

    cygwin

    gre for gecko#

    evolution

     

     

    http://www.narvenblog.com/blog
  • 09-04-2008 8:47 PM In reply to

    Re: Cannot target framework mono

    The code that supported other frameworks has been removed in 3.0. Currently you'll have to add an MonoTargetFrameworkVersion element to your .csproj file manually, for example:

    <Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
      <PropertyGroup>
        <ProjectGuid>{3AF00322-0172-45A8-B233-9F7F17DE344E}</ProjectGuid>
        <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
        <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
        <OutputType>Exe</OutputType>
        <RootNamespace>Test</RootNamespace>
        <AssemblyName>Test</AssemblyName>
        <MonoTargetFrameworkVersion>v2.0</MonoTargetFrameworkVersion>
      </PropertyGroup>

    v2.0 or v1.1 will target Mono 2.0 and 1.1 respectively.

  • 09-04-2008 9:40 PM In reply to

    • narven
    • Top 500 Contributor
    • Joined on 08-16-2008
    • Lisboa, Portugal
    • Posts 9

    Re: Cannot target framework mono

    do i keep 

     <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>

     ???

    http://www.narvenblog.com/blog
  • 09-04-2008 9:50 PM In reply to

    Re: Cannot target framework mono

    Doesn't matter if the TargetFrameworkVersion is still there.

    I forgot one thing, assuming you're modifying an existing .csproj file that was not created from one of the Mono projects templates in SharpDevelop, you'll need to replace

      <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.Targets" />

     with

    <Import Project="$(MonoBuildTasksPath)\Mono.Build.CSharp.targets" />

    If you're creating a new project from scratch it is easier to use the existing Mono project template. By default they target Mono 2.0.

  • 09-05-2008 10:19 PM In reply to

    • narven
    • Top 500 Contributor
    • Joined on 08-16-2008
    • Lisboa, Portugal
    • Posts 9

    Re: Cannot target framework mono

    " If you're creating a new project from scratch it is easier to use the existing Mono project template. By default they target Mono 2.0."

     In my SharpDevelop i dont have any Mono project template :(

     and the

     <Import Project="$(MonoBuildTasksPath)\Mono.Build.CSharp.targets" />

     is giving an error :(

      Error loading c:\blabla\bla\bla\bla.csproj:

    the imported project "c:\mono.build.csharp.targets" was not found

    http://www.narvenblog.com/blog
  • 09-06-2008 10:42 AM In reply to

    Re: Cannot target framework mono

    Did you build the Mono addin sample?

    Is there a AddIn\Samples\Mono.AddIn folder?
  • 09-07-2008 5:36 PM In reply to

    • narven
    • Top 500 Contributor
    • Joined on 08-16-2008
    • Lisboa, Portugal
    • Posts 9

    Re: Cannot target framework mono

    hi,

     no i didn't had any folder named samples but i've found this article/tutorial that helped me.

     this is the link. hope that would help anyone :)

     

    http://www.winmatrix.com/forums/index.php?s=16c0d013eb312b159f61a3a516acfaa7&showtopic=19618&pid=182984&st=0&#entry182984

     ps: thanks  MattWard for the help \m/

    http://www.narvenblog.com/blog
Page 1 of 1 (9 items)
Powered by Community Server (Commercial Edition), by Telligent Systems
Don't contact us via this (fleischfalle@alphasierrapapa.com) email address.