Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Compile as 1.0 on 1.1 FW

Compile as 1.0 on 1.1 FW

Scheduled Pinned Locked Moved C#
help
10 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    Lapje
    wrote on last edited by
    #1

    I want to compile my application as a Framework 1.0 app on Framework 1.1. This is not because I'm too lazy to install 1.1, but Windows MCE requires it. I guess I need some command line options, but can't find it in MSDE. Please help me out. Theo

    D 1 Reply Last reply
    0
    • L Lapje

      I want to compile my application as a Framework 1.0 app on Framework 1.1. This is not because I'm too lazy to install 1.1, but Windows MCE requires it. I guess I need some command line options, but can't find it in MSDE. Please help me out. Theo

      D Offline
      D Offline
      Dan Neely
      wrote on last edited by
      #2

      I don't think you can do that without a copy of VS 2002

      L 1 Reply Last reply
      0
      • D Dan Neely

        I don't think you can do that without a copy of VS 2002

        L Offline
        L Offline
        Lapje
        wrote on last edited by
        #3

        1. I'm using VS 2003 Pro 2. I'm almost sure it can be done in commandline, I only don't know how.

        D 1 Reply Last reply
        0
        • L Lapje

          1. I'm using VS 2003 Pro 2. I'm almost sure it can be done in commandline, I only don't know how.

          D Offline
          D Offline
          Dave Kreskowiak
          wrote on last edited by
          #4

          Nope. VS2002 will ONLY build against the .NET Framework 1.0. VS2003 will ONLY build against the .NET Framework 1.1. This is because the compilers are not built into Visual Studio. They are an integral parts of the .NET Framework itself. You can compile a .NET Framework 1.1 app and alter it's configuration to run under 1.0, IF it doesn't use any 1.1 specific classes. You can't use the .NET Framework 1.1 compilers to compile a completely native .NET Framework 1.0 application. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

          N 1 Reply Last reply
          0
          • D Dave Kreskowiak

            Nope. VS2002 will ONLY build against the .NET Framework 1.0. VS2003 will ONLY build against the .NET Framework 1.1. This is because the compilers are not built into Visual Studio. They are an integral parts of the .NET Framework itself. You can compile a .NET Framework 1.1 app and alter it's configuration to run under 1.0, IF it doesn't use any 1.1 specific classes. You can't use the .NET Framework 1.1 compilers to compile a completely native .NET Framework 1.0 application. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

            N Offline
            N Offline
            Niklas Ulvinge
            wrote on last edited by
            #5

            Can I do something like that with the 2.0 framework? And how? Niklas Ulvinge aka IDK

            D 1 Reply Last reply
            0
            • N Niklas Ulvinge

              Can I do something like that with the 2.0 framework? And how? Niklas Ulvinge aka IDK

              D Offline
              D Offline
              Dave Kreskowiak
              wrote on last edited by
              #6

              Nope. No version of the .NET Framework is going to compile to a natively lower version. See Working with Multiple Versions of the .NET Framework[^] on MSDN for more information. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

              L 1 Reply Last reply
              0
              • D Dave Kreskowiak

                Nope. No version of the .NET Framework is going to compile to a natively lower version. See Working with Multiple Versions of the .NET Framework[^] on MSDN for more information. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

                L Offline
                L Offline
                Lapje
                wrote on last edited by
                #7

                If you read the info behind that link, you would know it IS possible to compile 1.0 at a 1.1 framework. In VS, go to your project properties, and select 1.0 at 'supported runtimes'. Althought you said it wasn't possible, you helped me well. :) Cheers, Theo

                D 1 Reply Last reply
                0
                • L Lapje

                  If you read the info behind that link, you would know it IS possible to compile 1.0 at a 1.1 framework. In VS, go to your project properties, and select 1.0 at 'supported runtimes'. Althought you said it wasn't possible, you helped me well. :) Cheers, Theo

                  D Offline
                  D Offline
                  Dave Kreskowiak
                  wrote on last edited by
                  #8

                  This changes the applications configuration so it is ALLOWED to run under 1.0, with the restriction that you can't use 1.1 specific classes. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

                  D 1 Reply Last reply
                  0
                  • D Dave Kreskowiak

                    This changes the applications configuration so it is ALLOWED to run under 1.0, with the restriction that you can't use 1.1 specific classes. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

                    D Offline
                    D Offline
                    Dan Neely
                    wrote on last edited by
                    #9

                    Dave Kreskowiak wrote: This changes the applications configuration so it is ALLOWED to run under 1.0, with the restriction that you can't use 1.1 specific classes. I don't see the distinction you're trying to make.

                    D 1 Reply Last reply
                    0
                    • D Dan Neely

                      Dave Kreskowiak wrote: This changes the applications configuration so it is ALLOWED to run under 1.0, with the restriction that you can't use 1.1 specific classes. I don't see the distinction you're trying to make.

                      D Offline
                      D Offline
                      Dave Kreskowiak
                      wrote on last edited by
                      #10

                      This doesn't change the code generated by the compiler at all. What you're actually doing is changing a configuration option in the applications .config file that say that this application CAN run under the 1.0 Framework. There is nothing guaranteeing that though. The .NET Runtime is trusting YOU to tell it that it is OK to run this particular 1.1 code under the 1.0 Framework. It's taking YOUR WORD that the code doesn't use anything that is 1.1 specific. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • World
                      • Users
                      • Groups