Partager via


Which Framework version will my app use?

From an internal mailing list (answers posted by Suzanne):

Q: App compiled on v1.0. When the app is run on a computer with v1.0 and v1.1 (and even v2.0 when released), what version of the framework will it automatically use?

A: v1.0.

Q: App compiled on v1.0. When the app is run on a computer with only v1.1 (or only v2.0) on it, will the app automatically use v1.1 (or v2.0)?

A: If only v1.1, then v1.1. I believe that we intend to do the same floating-up for v2.0 (so if only v2.0, then v2.0).

Q: App compiled on v1.1. When the app is run on a computer with only v1.0 on it, will the app automatically use v1.0? (assume that the app isn’t using any v1.1 specific code.)

A: App will fail with message saying that the required runtime isn't available.

Comments

  • Anonymous
    January 13, 2004
    "App will fail with message saying that the required runtime isn't available."

    Except when I've tried it in the past it doesn't say that, it says something along the lines of "could not find correct version of mscrwks.dll". A nicer message would have been much better :)
  • Anonymous
    January 13, 2004
    Q: How to determine under what version your app is compiled?

    (Stupid?) Q: How to choose under what v your app gets compiled?

    I'm guessing, after reading your post, it's always best to compile your app at a low as possible version, correct?

    Tnx
  • Anonymous
    January 14, 2004
    R: The message I got when trying to run a v2.0 app on v1.1 was fairly clear:

    ---------------------------
    .NET Framework Initialization Error
    ---------------------------
    To run this application, you first must install one of the following versions of the .Net Framework:

    v2.0.31218

    Contact your application publisher for instructions about obtaining the appropriate version of the .Net Framework.
    ---------------------------
    OK
    ---------------------------


    David: That's an interesting point. However, I think the advantages of compiling against a newer version (cool new features and bug fixes) outweigh this concern, especially when it is easy to install the required version of the Framework along with your app.
  • Anonymous
    January 16, 2004
    Ah, ok, thanks for the reply :)
  • Anonymous
    February 07, 2004
    I've compiled ASP.NET applications on 1.1 and run them on servers that only had 1.0 installed.

    Does "App will fail with message saying that the required runtime isn't available." only apply to WinForms apps?
  • Anonymous
    February 08, 2004
    Louis: The behavior above is the default behavior - you can always override this in config files. Did you use a config file to get your ASP.NET v1.1 app to run on v1.0?

    That said, yes, my post was about client apps, and I am not sure if ASP.NET has the same behavior. They may have a different story, due to their dynamic compilation model.