SharpDevelop Community

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

Compact Framework problems

Last post 10-16-2007 8:29 PM by kyksam. 13 replies.
Page 1 of 1 (14 items)
Sort Posts: Previous Next
  • 09-15-2006 6:24 AM

    Compact Framework problems

    Hello,

    I have .NET 2.0 runtime, the .net 2.0 SDK, and the .NET 2.0 CF Redistribitual. when I compile a compact framework solution in Sharpdevelop 2.1 (latest build)I get the following error:

     

    Build started.
    C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.CompactFramework.Common.targets(23,9) : Error : This project requires .NET Compact Framework CF 2.0, which is not installed on this machine.
    Build failed.

    Any suggestons?
     

  • 09-15-2006 11:59 AM In reply to

    Re: Compact Framework problems

    Added bug report.
  • 09-15-2006 2:32 PM In reply to

    Re: Compact Framework problems

    So who doess this work for? People who installed some version of Visual Studio 2005?
  • 09-18-2006 9:19 PM In reply to

    Re: Compact Framework problems

    Hello ,

    I have the same problem (error at the line 23 in the Microsoft.CompactFramework.common.targets). I try to reinstall without success.

    In my case it is the build 1815 (2006/09/18) of SD. Is it a bug or is something missing ?

  • 09-18-2006 9:31 PM In reply to

    Re: Compact Framework problems

    I believe it's a bug in SharpDevelop 2.1 introduced in revision 1752.

    You can either go back to an older version (pre 1752) or try the workaround in the bug report, or wait until someone fixes it. 

  • 09-19-2006 7:41 PM In reply to

    Re: Compact Framework problems

    Thanks. It works !
  • 09-19-2006 8:27 PM In reply to

    Re: Compact Framework problems

    MattWard:

    I believe it's a bug in SharpDevelop 2.1 introduced in revision 1752.

    You can either go back to an older version (pre 1752) or try the workaround in the bug report, or wait until someone fixes it. 

    Ok so I did a bit of digging, No answers yet but a few observations.

    First of all in the file: 

    src/Main/Base/Project/Src/Services/ParserService/NetCFProjectContentRegistry.cs 

    There is a similar error message in LoadProjectContent() "Warning: .NET Compact Framework SDK is not installed.", Perhaps a comment should be added to that file noting the difference such as below:

     Index: src/Main/Base/Project/Src/Services/ParserService/NetCFProjectContentRegistry.cs
    ===================================================================
    --- src/Main/Base/Project/Src/Services/ParserService/NetCFProjectContentRegistry.cs     (revision 1826)
    +++ src/Main/Base/Project/Src/Services/ParserService/NetCFProjectContentRegistry.cs     (working copy)
    @@ -53,11 +53,13 @@
                                            return CecilReader.LoadAssembly(Path.Combine(netPath, shortName), this);
                                    }
                            } else {
    +                               //If your working on bug SD2-1094, note that this is not where the error message is getting generated.
                                    string message = "Warning: .NET Compact Framework SDK is not installed." + Environment.NewLine;
                                    if (!TaskService.BuildMessageViewCategory.Text.Contains(message)) {
                                            TaskService.BuildMessageViewCategory.AppendText(message);
                                    }
    ===================================================================================

    End diff

     

    I also had to add a line to SharpDevelop.Build.CSharp.targets  in addition to the ones in the workaround:

    <Import Condition=" '$(TargetFrameworkVersion)' == 'v2.0.0.0' " Project="$(MSBuildBinPath)\Microsoft.CompactFramework.CSharp.targets"/> 

    I believe this is because I added those lines before the Compact Framework imports and not after.

    Filed under:
  • 09-19-2006 8:42 PM In reply to

    Re: Compact Framework problems

    Yes, you need to modify the Import statement. The bug report is updated now.

  • 12-10-2006 11:38 AM In reply to

    Re: Compact Framework problems

    MattWard:

    I believe it's a bug in SharpDevelop 2.1 introduced in revision 1752.

    You can either go back to an older version (pre 1752) or try the workaround in the bug report, or wait until someone fixes it. 

    Arghhh. Still not fixed in build 2002...I have no idea how to make the changes required, so any help appreciated.

  • 12-10-2006 1:58 PM In reply to

    Re: Compact Framework problems

    According to the bugtracker the bug is fixed back in 2.1.0.1863. I just tried building a Compact Framework Forms from the project template in SharpDevelop and it built successfully. I have installed the .NET CF SP 1 which I obtained from Microsoft's downloads.
  • 12-11-2006 10:25 PM In reply to

    Re: Compact Framework problems

    MattWard:
    According to the bugtracker the bug is fixed back in 2.1.0.1863. I just tried building a Compact Framework Forms from the project template in SharpDevelop and it built successfully. I have installed the .NET CF SP 1 which I obtained from Microsoft's downloads.

     

    Works for me too now. This is awesome. No more silly workaround 

  • 12-12-2006 3:13 AM In reply to

    Re: Compact Framework problems

    Ok what does one need to install to be able to compile .NET compact framework 1.0 distributables?
  • 08-27-2007 3:01 PM In reply to

    • Mac
    • Not Ranked
    • Joined on 08-10-2007
    • Posts 1

    How do I compile a C# program for the Compact Framework 1.0?

    Same question from me. How do I compile a C# program for the Compact Framework 1.0?

    On the Project Options, Compiling tab I selected the Compact Framework 1.0 as my Target Framework.
    A build results in:

    This project requires .NET Compact Framework v1.0, which is not installed on this machine. - C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.CompactFramework.Common.targets:23,9


    Microsoft .NET Compact Framework 1.0 SP3 is installed, as is Microsoft .NET Compact Framework 2.0 SP2.
    Also Microsoft .NET Framework 1.1, 1.1 Hotfix, SDL 1.1, 2.0 and Security update, 2.0 SDK and 3.0 are installed.

    I'm using SharpDevelop Version 2.2.0, Build 2595.


    Do I need to install anything else? Should I de-install anything? Should some file(s) be changed? If so, what file(s), and what changes? Should I set other Project Options?

    Filed under:
  • 10-16-2007 8:29 PM In reply to

    • kyksam
    • Not Ranked
    • Joined on 10-09-2007
    • Posts 3

    Re: How do I compile a C# program for the Compact Framework 1.0?

    I have the same problem. I'm just begining to work with compact framwork but i dont know if I'm doing it ok.

    I installed CompactFramwork V2, and I followed the instructions from http://community.sharpdevelop.net/forums/thread/6813.aspx, but I still dont know if i have a pocket pc application,

    i have been trying to find an emulator but i dont know how to install it or prove (test) it,

     

    any suggestion

    I will be very glad!!!

     

    atte

    samyko
     

Page 1 of 1 (14 items)
Powered by Community Server (Commercial Edition), by Telligent Systems
Don't contact us via this (fleischfalle@alphasierrapapa.com) email address.