1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Development Explicit usage of one version of .NET

Discussion in 'Software' started by oesaus, 6 Jun 2006.

  1. oesaus

    oesaus What's a Dremel?

    Joined:
    6 Jun 2006
    Posts:
    1
    Likes Received:
    0
    I work in the Medical field under the scrutiny of the FDA. We go to great lengths to validate and test our products. However, our most recent development using .NET has brought forth a question. How can we explicitily call out usage of a version of the .NET framework and ensure that only that version gets used. (i.e. if we validate 1.1 and the user installs 2.0, I do not want the application to use 2.0, because my application is validated with 1.1)
     
  2. woof82

    woof82 What's a Dremel?

    Joined:
    18 Jul 2005
    Posts:
    2,223
    Likes Received:
    58
    Fistly you need to make sure that if the user installs a version then the back versions also get installed.

    The way I would go about doing this is to get the computer to recognise the different versions as entirely different applications, then getting it to execute the corresponding one. I don't know if that's entirely possible, but it seems logical.
     
  3. John Cena

    John Cena What's a Dremel?

    Joined:
    1 Jun 2004
    Posts:
    818
    Likes Received:
    0
    Check the .NET Version at runtime. It's in the Environment class.

    System.Environment.Version will give you the version.
     

Share This Page