locked
Visual Basic Light Switch RRS feed

  • Question

  • Hello.

    Creating a data entry application using VB Light Switch, this only took about an hour.  I was wondering what is the compatibility of VB Light Switch with either Visual Basic or Visual Basic Express.  I have attempted to open the VB light Switch project in Visual Basic Express and the application is not compatible.

    If there is no compatibility, is there a way to import the code from VB light Switch to Visual Basic?

    The functionality of VB light Switch was seamless and provide great results of the application.  However since VB Light Switch is still in the Beta stage, the application cannot be deployed within the organization I work for.  Thus importing the project into Visual Basic.

     Thank you


    Billy Stanfield

    Data Analyst\Application Specialist

     

    Tuesday, January 4, 2011 7:10 PM

Answers

  • Hi Billy,

    Alessandro is right in what he is explaining. The LightSwitch team abstracts a lot of the coding you need to do to get an LightSwitch application up and running. How we do this, is we use MEF (Microsoft Entity Framework) to create a LightSwitch model (metadata), which tells how display various aspects of a LightSwitch application and autogenerates specific projects under the covers.

    However, that being said, where the language semantics comes into play within the LightSwitch IDE and in your case Visual Basic, is that you can program the business logic and also tailor user experience using Visual Basic language.

    Given where the product group is at in the development cycle, it is a bit to early to provide converters as such to other VS products. To tell you the truth it is highly unlikely we would provide/want such converters or the capablity to open LightSwitch applications in other VS project, as then why would you need LightSwitch IDE?

    But, there is nothing wrong for a developer to write an extension (essentially an add-on) in Visual Basic and add it to the LightSwitch application. If you want to get a feel of that experience, look at the LightSwitch Training Kit at http://www.microsoft.com/downloads/en/details.aspx?FamilyID=ac1d8eb5-ac8e-45d5-b1e3-efb8e4e3ebd1&displaylang=en

    I hope this helps.

    Cheers,

    Campbell Gunn


    Program Manager - Microsoft Visual Studio LightSwitch - Extensibility
    Friday, January 7, 2011 5:58 PM
    Moderator

All replies

  • Hi,

    basically a LightSwitch solution is a 100% Visual Studio solution, by the way there is a number of assemblies specific to Visual Studio LightSwitch that expose namespaces, classes and user controls that can be used only within LightSwitch applications. This is the main reason why you cannot import the project into Visual Basic.

    You can take a look at some auto-generated code by exploring the project's folder in Windows Explorer, but there is some stuff that it's hard to understand. Also, you will not find any code for the user interface: this is generated at run-time so it would not be useful to you.

    I think that you have to build your application by using VB Express or wait for another release of LightSwitch in case Microsoft will decide to offer a Go Live license.


    Alessandro Del Sole
    Microsoft MVP - Visual Basic: development
    http://community.visual-basic.it/alessandro/
    Tuesday, January 4, 2011 10:03 PM
  • Thank you Mr. Gunn.  I have begun the process of creating a VB application using the indicators I used with VB Light Switch.

    The reception of the Light Switch was well received however since VB Light Switch is still in Beta development we are unable to apply the application to our real world db.

    Hopefully MS will allow the integration of VB Light Switch into the Visual Basic family.  The robust features of VB Light Switch and the ease of use are outstanding.  Being an Application Specialist, having the ability of creating a business application to house data in less than an hour with twenty (20) different fields.  Reduced the amount of hours evolved to create such an application.

    Thank you for your response and look forward to future editions of VB light Switch.

     

    Friday, January 7, 2011 4:40 PM
  • Hi Billy,

    Alessandro is right in what he is explaining. The LightSwitch team abstracts a lot of the coding you need to do to get an LightSwitch application up and running. How we do this, is we use MEF (Microsoft Entity Framework) to create a LightSwitch model (metadata), which tells how display various aspects of a LightSwitch application and autogenerates specific projects under the covers.

    However, that being said, where the language semantics comes into play within the LightSwitch IDE and in your case Visual Basic, is that you can program the business logic and also tailor user experience using Visual Basic language.

    Given where the product group is at in the development cycle, it is a bit to early to provide converters as such to other VS products. To tell you the truth it is highly unlikely we would provide/want such converters or the capablity to open LightSwitch applications in other VS project, as then why would you need LightSwitch IDE?

    But, there is nothing wrong for a developer to write an extension (essentially an add-on) in Visual Basic and add it to the LightSwitch application. If you want to get a feel of that experience, look at the LightSwitch Training Kit at http://www.microsoft.com/downloads/en/details.aspx?FamilyID=ac1d8eb5-ac8e-45d5-b1e3-efb8e4e3ebd1&displaylang=en

    I hope this helps.

    Cheers,

    Campbell Gunn


    Program Manager - Microsoft Visual Studio LightSwitch - Extensibility
    Friday, January 7, 2011 5:58 PM
    Moderator