Loading ...
Sorry, an error occurred while loading the content.
 

Recognizing a smart device project in VS 2005

Expand Messages
  • pjollans
    Hi, I have just discovered that my Add-In doesn t reliably detect Smart Device projects in Visual Studio 2005. Specifically, I created a Pocket PC 2003
    Message 1 of 3 , Nov 6, 2006
      Hi,

      I have just discovered that my Add-In doesn't reliably detect Smart
      Device projects in Visual Studio 2005.

      Specifically, I created a "Pocket PC 2003" application and found that
      the Project.Kind property simply indicated a VB or a C# project, but
      not specifically smart device project.

      I am expecting the following values:

      VB: {F184B08F-C81C-45F6-A57F-5ABD9991F28F}
      C#: {FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
      VB-SmartDevice: {CB4CE8C6-1BDB-4dc7-A4D3-65A1999772F8}
      CS-SmartDevice: {20D4826A-C6FA-45db-90F4-C717570B9F32}

      which I believe were used in VS 2003.

      Has anybody got a tip about how to recognize a smart device project?

      Thanks in advance
      Phil
    • MZ-Tools
      Hi Phil, You are right, at least in VB.NET 2005 it no longer returns the VB-SmartDevice GUID but the VB guid, I have tested that my MZ-Tools add-in fails too.
      Message 2 of 3 , Nov 6, 2006
        Hi Phil,

        You are right, at least in VB.NET 2005 it no longer returns the
        VB-SmartDevice GUID but the VB guid, I have tested that my MZ-Tools add-in
        fails too.

        I suppose that Device Project is a flavour of VB and there is a way using
        the SDK APIs to get that second GUID but not from an add-in. The easiest
        workaround I think that it is to check the EnvDTE.Project.ExtenderNames(0) =
        "SDEProjectExtender" or to check if
        EnvDTE.Project.Extender("SDEProjectExtender") returns a non-null value
        ("SDE" stands for Smart Device Extender, I think).

        FWIW, the new Web Application projects of VS 2005 SP1 (not to be confussed
        with Web Site projects) are recognized by the "WebApplication" project
        extender.


        Best regards,

        Carlos J. Quintero

        MZ-Tools: Productivity add-ins for Visual Studio.
        You can code, design, locate code and document your apps much faster:
        http://www.mztools.com


        ________________________________

        De: vsnetaddin@yahoogroups.com [mailto:vsnetaddin@yahoogroups.com]
        En nombre de pjollans
        Enviado el: lunes, 06 de noviembre de 2006 23:31
        Para: vsnetaddin@yahoogroups.com
        Asunto: [vsnetaddin] Recognizing a smart device project in VS 2005



        Hi,

        I have just discovered that my Add-In doesn't reliably detect Smart
        Device projects in Visual Studio 2005.

        Specifically, I created a "Pocket PC 2003" application and found
        that
        the Project.Kind property simply indicated a VB or a C# project, but
        not specifically smart device project.

        I am expecting the following values:

        VB: {F184B08F-C81C-45F6-A57F-5ABD9991F28F}
        C#: {FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
        VB-SmartDevice: {CB4CE8C6-1BDB-4dc7-A4D3-65A1999772F8}
        CS-SmartDevice: {20D4826A-C6FA-45db-90F4-C717570B9F32}

        which I believe were used in VS 2003.

        Has anybody got a tip about how to recognize a smart device project?

        Thanks in advance
        Phil
      • pjollans
        Hi Carlos, thanks, I will try that out. Regards Phil
        Message 3 of 3 , Nov 7, 2006
          Hi Carlos,

          thanks, I will try that out.

          Regards
          Phil
        Your message has been successfully submitted and would be delivered to recipients shortly.