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. The Lounge
  3. VS2008 Target Framework

VS2008 Target Framework

Scheduled Pinned Locked Moved The Lounge
comquestion
24 Posts 9 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.
  • M Marc Clifton

    Rama Krishna Vavilala wrote:

    What do you intend to achieve?

    I want to compile against the latest framework so I can test it.

    Rama Krishna Vavilala wrote:

    As per my understanding unless you are using LINQ features there is no need to change the target?

    I may use them in limited situations.

    Rama Krishna Vavilala wrote:

    Of course you can write a macro quickly to change target framework of all the projects in a solution.

    Why TF should I write a macro?!?! Isn't this something that some intelligent person at Microsoft would have raised their hand during a design session and asked "what about those people that have hundreds of projects that they want to retarget for .NET 3.5???" Pisses me off. 5 minutes into the damn thing, and I find something that is going to take at least as long to figure out how to convert myself as I've already spent complaining about it!!! Marc

    Thyme In The Country
    Interacx
    My Blog

    R Offline
    R Offline
    Rama Krishna Vavilala
    wrote on last edited by
    #13

    Marc Clifton wrote:

    compile against the latest framework

    What does it mean? If you are not using System.Core, System.Data.Linq, System.Xml.Linq what does it mean to compile against the new framework? Think this way. Someone gave you an assembly full of new stuff. Now you have lots of existing projects. You just don't need to go ahead and add the new assembly as reference to all the projects unless you are actually using it in a project. If you are using it in a project you will go ahead and add the assembly a as reference and then write code to use it. Unless you have code that uses the assembly adding a reference is of no use. The bigger issue is writing code to use the assembly not adding the reference which is insignificant. The rant here should be on the naming of ".NET Framework" version numbers. It is way too confusing. BTW The mscorlib.dll, system.dll and other assemblies you are using in teh project will automatically be upgraded to .NET 2.0 SP1 which is built into .NET 3.5. So you will automatically be testing your projects with .NET 3.5 just by building them.

    Co-Author ASP.NET AJAX in Action CP Quote of the Day: It is the same Friday that blooms as a new enriching day with novelty and innovation for us every week. - Vasudevan Deepak Kumar

    M 1 Reply Last reply
    0
    • R Rama Krishna Vavilala

      Marc Clifton wrote:

      compile against the latest framework

      What does it mean? If you are not using System.Core, System.Data.Linq, System.Xml.Linq what does it mean to compile against the new framework? Think this way. Someone gave you an assembly full of new stuff. Now you have lots of existing projects. You just don't need to go ahead and add the new assembly as reference to all the projects unless you are actually using it in a project. If you are using it in a project you will go ahead and add the assembly a as reference and then write code to use it. Unless you have code that uses the assembly adding a reference is of no use. The bigger issue is writing code to use the assembly not adding the reference which is insignificant. The rant here should be on the naming of ".NET Framework" version numbers. It is way too confusing. BTW The mscorlib.dll, system.dll and other assemblies you are using in teh project will automatically be upgraded to .NET 2.0 SP1 which is built into .NET 3.5. So you will automatically be testing your projects with .NET 3.5 just by building them.

      Co-Author ASP.NET AJAX in Action CP Quote of the Day: It is the same Friday that blooms as a new enriching day with novelty and innovation for us every week. - Vasudevan Deepak Kumar

      M Offline
      M Offline
      Marc Clifton
      wrote on last edited by
      #14

      Rama Krishna Vavilala wrote:

      What does it mean?

      Let me rephrase what I meant. There's a new .NET framework out there, called 3.5. Just because Microsoft says there aren't any changes to "2.0" portion of it doesn't mean that I believe them. I want to test my code using the latest framework, even if I don't use any of the new stuff in that framework yet. Marc

      Thyme In The Country
      Interacx
      My Blog

      R 1 Reply Last reply
      0
      • M Marc Clifton

        Rama Krishna Vavilala wrote:

        What does it mean?

        Let me rephrase what I meant. There's a new .NET framework out there, called 3.5. Just because Microsoft says there aren't any changes to "2.0" portion of it doesn't mean that I believe them. I want to test my code using the latest framework, even if I don't use any of the new stuff in that framework yet. Marc

        Thyme In The Country
        Interacx
        My Blog

        R Offline
        R Offline
        Rama Krishna Vavilala
        wrote on last edited by
        #15

        Then you don't need to retarget it. The new assemblies will automatically be picked up as I stated in my post. As a matter of fact .NET 3.5 is .NET 2.0 SP + bunch of stuff. Yes there have been some changes I believe to the core assemblies, but for that you don't need to retarget. Re targeting = Adding new assemblies Things you are trying to achieve does not need retargeting. Your purpose is achieved by just rebuilding the projects.

        Co-Author ASP.NET AJAX in Action CP Quote of the Day: It is the same Friday that blooms as a new enriching day with novelty and innovation for us every week. - Vasudevan Deepak Kumar

        R M 2 Replies Last reply
        0
        • R Rama Krishna Vavilala

          Then you don't need to retarget it. The new assemblies will automatically be picked up as I stated in my post. As a matter of fact .NET 3.5 is .NET 2.0 SP + bunch of stuff. Yes there have been some changes I believe to the core assemblies, but for that you don't need to retarget. Re targeting = Adding new assemblies Things you are trying to achieve does not need retargeting. Your purpose is achieved by just rebuilding the projects.

          Co-Author ASP.NET AJAX in Action CP Quote of the Day: It is the same Friday that blooms as a new enriching day with novelty and innovation for us every week. - Vasudevan Deepak Kumar

          R Offline
          R Offline
          Rainer Mangold
          wrote on last edited by
          #16

          Hello I fully agree with your post, but there ist still one question pending, at least for me.:) VS2008 forces you to upgrade Net 2.0 to Net 2.0 SP1. Now when you are building apps against NET 2.0, with VS2008 of course, what does this mean to your target system. Does the target too have to have Net 2.0SP1 or is Net 2.0 sufficent to run the application. Is it possible to install Net 2.0 SP1 in Win2000 SP4, as it was possible with Net 2.0? I found no hint about this on MS-sites.

          greetings Rainer Be as sinple as you can be; You will be astonished to see how uncomplicated and happy your life can become. --Paramahansa Yogananda

          R 1 Reply Last reply
          0
          • M Marc Clifton

            So, does one have to manually right-click on properties for EACH project in a solution and change the target framework to 3.5? Please tell me it isn't so. Marc

            Thyme In The Country
            Interacx
            My Blog

            P Offline
            P Offline
            Patrick Etc
            wrote on last edited by
            #17

            If it makes you feel any better, VS2005 has a similar quirk: When doing Compact Framework development, there's no way to change every project's target SDK (PPC 2003, WM5, etc): You have to right-click and manually retarget each project, which is then unloaded and reloaded. It's a pain.. I'm curious as to whether that still exists in VS2008. Sounds like it probably does. I get the feeling what you've discovered is going to be a big "WHOOPS!!!" on the part of Microsoft..


            It has become appallingly obvious that our technology has exceeded our humanity. - Albert Einstein

            1 Reply Last reply
            0
            • R Rainer Mangold

              Hello I fully agree with your post, but there ist still one question pending, at least for me.:) VS2008 forces you to upgrade Net 2.0 to Net 2.0 SP1. Now when you are building apps against NET 2.0, with VS2008 of course, what does this mean to your target system. Does the target too have to have Net 2.0SP1 or is Net 2.0 sufficent to run the application. Is it possible to install Net 2.0 SP1 in Win2000 SP4, as it was possible with Net 2.0? I found no hint about this on MS-sites.

              greetings Rainer Be as sinple as you can be; You will be astonished to see how uncomplicated and happy your life can become. --Paramahansa Yogananda

              R Offline
              R Offline
              Rama Krishna Vavilala
              wrote on last edited by
              #18

              Rainer Mangold wrote:

              Net 2.0 sufficent to run the application.

              I think this is the case. Because there have been no new methods, types etc added in SP1.

              Rainer Mangold wrote:

              Is it possible to install Net 2.0 SP1 in Win2000 SP4, as it was possible with Net 2.0?

              No idea:( I think it might be.

              Co-Author ASP.NET AJAX in Action CP Quote of the Day: It is the same Friday that blooms as a new enriching day with novelty and innovation for us every week. - Vasudevan Deepak Kumar

              1 Reply Last reply
              0
              • R Rama Krishna Vavilala

                Then you don't need to retarget it. The new assemblies will automatically be picked up as I stated in my post. As a matter of fact .NET 3.5 is .NET 2.0 SP + bunch of stuff. Yes there have been some changes I believe to the core assemblies, but for that you don't need to retarget. Re targeting = Adding new assemblies Things you are trying to achieve does not need retargeting. Your purpose is achieved by just rebuilding the projects.

                Co-Author ASP.NET AJAX in Action CP Quote of the Day: It is the same Friday that blooms as a new enriching day with novelty and innovation for us every week. - Vasudevan Deepak Kumar

                M Offline
                M Offline
                Marc Clifton
                wrote on last edited by
                #19

                Rama Krishna Vavilala wrote:

                Things you are trying to achieve does not need retargeting. Your purpose is achieved by just rebuilding the projects.

                Ahhh, ok. I'm perhaps getting a glimmer of what you're saying. But what is confusing to me is that the target framework, after converting the project, was 2.0. So I assume my application will use the 2.0 framework when it runs? Or does it run using the 3.5 framework? That would mean that the target is really just for making sure you don't write code that includes 3.x stuff when you know your destination system only has the 2.0 framework? I think I'm getting more confused! Marc

                Thyme In The Country
                Interacx
                My Blog

                R 1 Reply Last reply
                0
                • M Marc Clifton

                  Rama Krishna Vavilala wrote:

                  Things you are trying to achieve does not need retargeting. Your purpose is achieved by just rebuilding the projects.

                  Ahhh, ok. I'm perhaps getting a glimmer of what you're saying. But what is confusing to me is that the target framework, after converting the project, was 2.0. So I assume my application will use the 2.0 framework when it runs? Or does it run using the 3.5 framework? That would mean that the target is really just for making sure you don't write code that includes 3.x stuff when you know your destination system only has the 2.0 framework? I think I'm getting more confused! Marc

                  Thyme In The Country
                  Interacx
                  My Blog

                  R Offline
                  R Offline
                  Rama Krishna Vavilala
                  wrote on last edited by
                  #20

                  Marc Clifton wrote:

                  I think I'm getting more confused!

                  Yes, it is very confusing. Blame the people who named the ".NET Framework"s not me.

                  Marc Clifton wrote:

                  That would mean that the target is really just for making sure you don't write code that includes 3.x stuff when you know your destination system only has the 2.0 framework?

                  That's it!

                  Co-Author ASP.NET AJAX in Action CP Quote of the Day: It is the same Friday that blooms as a new enriching day with novelty and innovation for us every week. - Vasudevan Deepak Kumar

                  M 1 Reply Last reply
                  0
                  • M Marc Clifton

                    So, does one have to manually right-click on properties for EACH project in a solution and change the target framework to 3.5? Please tell me it isn't so. Marc

                    Thyme In The Country
                    Interacx
                    My Blog

                    S Offline
                    S Offline
                    Shog9 0
                    wrote on last edited by
                    #21

                    You can select multiple projects and bring up a combined property sheet, right?

                    ----

                    ...the wind blows over it and it is gone, and its place remembers it no more...

                    R 1 Reply Last reply
                    0
                    • S Shog9 0

                      You can select multiple projects and bring up a combined property sheet, right?

                      ----

                      ...the wind blows over it and it is gone, and its place remembers it no more...

                      R Offline
                      R Offline
                      Rama Krishna Vavilala
                      wrote on last edited by
                      #22

                      Only for C++.

                      Co-Author ASP.NET AJAX in Action CP Quote of the Day: It is the same Friday that blooms as a new enriching day with novelty and innovation for us every week. - Vasudevan Deepak Kumar

                      S 1 Reply Last reply
                      0
                      • R Rama Krishna Vavilala

                        Marc Clifton wrote:

                        I think I'm getting more confused!

                        Yes, it is very confusing. Blame the people who named the ".NET Framework"s not me.

                        Marc Clifton wrote:

                        That would mean that the target is really just for making sure you don't write code that includes 3.x stuff when you know your destination system only has the 2.0 framework?

                        That's it!

                        Co-Author ASP.NET AJAX in Action CP Quote of the Day: It is the same Friday that blooms as a new enriching day with novelty and innovation for us every week. - Vasudevan Deepak Kumar

                        M Offline
                        M Offline
                        Marc Clifton
                        wrote on last edited by
                        #23

                        Rama Krishna Vavilala wrote:

                        That's it!

                        Doh! Why didn't you just say so in the first place! Just kidding! Thanks so much for this clarification. Now I can sound intelligent when talking to others. :) Marc

                        Thyme In The Country
                        Interacx
                        My Blog

                        1 Reply Last reply
                        0
                        • R Rama Krishna Vavilala

                          Only for C++.

                          Co-Author ASP.NET AJAX in Action CP Quote of the Day: It is the same Friday that blooms as a new enriching day with novelty and innovation for us every week. - Vasudevan Deepak Kumar

                          S Offline
                          S Offline
                          Shog9 0
                          wrote on last edited by
                          #24

                          Ah, crap. You're right. Just spent the last week doing maintenance, forgot how nice C# property pages aren't. Consistent interface my ass... :suss:

                          ----

                          ...the wind blows over it and it is gone, and its place remembers it no more...

                          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