Runtime version in 3rd party controls

Posted on 2011-05-06
Last Modified: 2012-06-27

I'm starting my first .Net WinForms application and I'm using two 3rd party components suite:
- DevExpress XtraEditors, the free short version
- PureComponets, got it on sale for $19

Both DevExpress dlls and PureComponents dlls show "Runtime Version" as v2.0.50727 in the properties windows.
All their dll's.

For PureComponents I can't speak a lot... actually nothing... but I liked the components and the price, with source code included was unbeatable.

Now, for DevExpress.... eventhough they say they support VS 2010, they're components are still a .net 2.0 binaries?

Well, if in my Winforms Application I set to target .Net 4.0... and this components are 2.0.. does it mean my users will have to have both 2.0 and 4.0 for their applications to run?
Will my application be using both .Net frameworks while the application is running?
Would it be better if I just target my application to use .Net 2.0, too?
(I don't think I'm using anything special right now that could not be available if I change it the older version)
Question by:fischermx
    LVL 13

    Assisted Solution

    Net 3.5/2.0 Applications do not automatically run on the .Net 4.0 runtime. You have to specify explicitly for your application that it should run on .Net 4.0 in your App.config by adding:

        <supportedRuntime version="v4.0" />

    In case you have third party components you also have to mark them as being ready for 4.0:

          <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
                <assemblyIdentity name="AssemblyName" publicKeyToken="31bf3856ad364e35"/>
                <bindingRedirect oldVersion="" newVersion=""/>
    LVL 33

    Expert Comment

    by:Todd Gerbert
    I'm pretty sure that the .Net releases include all the previous versions - so if a user has .Net 4.0 installed they should be able to run applications built against 2.0, 3.0, 3.5, 4.0.  So no: your users won't need to install both runtimes separately, they'll just need to have .Net 4.0.

    And you're going to want to keep your application targeted to .Net 4.0 - there are some performance enhancements in .Net 4.0 that'll help your application run a little bit quicker.
    LVL 33

    Accepted Solution

    Okay, I made a simple test by building a Forms application targeted to .Net 4.0, and a Class Library targeted to .Net 2.0; the forms application references the class library and uses one of it's methods.

    Then I installed only .Net Framework 4.0 on a clean install of Windows XP and the application ran fine. However, I could not run a application that was targeted only to .Net 2.0 - so my earlier comment was half-correct.

    But the end result is that if your application is targeted to .Net 4.0, even if the third party component was written against an earlier .Net Framework, it should run fine on users' machines who have only .Net 4.0 installed.
    LVL 1

    Author Closing Comment

    Thank you very much!

    Featured Post

    Find Ransomware Secrets With All-Source Analysis

    Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

    Join & Write a Comment

    In my previous article ( we saw the basics of serialization and how types/objects can be serialized to Binary format. In this blog we wi…
    Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
    Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now