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. .NET (Core and Framework)
  4. VS 2010 Compiling Mixed Frameworks.

VS 2010 Compiling Mixed Frameworks.

Scheduled Pinned Locked Moved .NET (Core and Framework)
csharpvisual-studiohelpquestion
9 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.
  • G Offline
    G Offline
    gscheek
    wrote on last edited by
    #1

    I have a solution with 10+ projects. Most of the projects are 100% .net 2.0. However one of the projects references a .Net 3.0 DLL. The solution compiles fine in VS2008, but will not compile with VS2010, because of the mixed frameworks. We may be able to upgrade to .Net 3.5, but that will be later on. Has anyone else found a solution to this issue? Currently the solution is in VS2005.

    GSC

    L A 2 Replies Last reply
    0
    • G gscheek

      I have a solution with 10+ projects. Most of the projects are 100% .net 2.0. However one of the projects references a .Net 3.0 DLL. The solution compiles fine in VS2008, but will not compile with VS2010, because of the mixed frameworks. We may be able to upgrade to .Net 3.5, but that will be later on. Has anyone else found a solution to this issue? Currently the solution is in VS2005.

      GSC

      L Offline
      L Offline
      Luc Pattyn
      wrote on last edited by
      #2

      gscheek wrote:

      will not compile

      and what does that mean? :doh:

      Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]


      Prolific encyclopedia fixture proof-reader browser patron addict?
      We all depend on the beast below.


      G 1 Reply Last reply
      0
      • L Luc Pattyn

        gscheek wrote:

        will not compile

        and what does that mean? :doh:

        Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]


        Prolific encyclopedia fixture proof-reader browser patron addict?
        We all depend on the beast below.


        G Offline
        G Offline
        gscheek
        wrote on last edited by
        #3

        When trying to compile the solution, it contains 1000+ errors. VS2008 compiles fine with no errors.

        GSC

        L N 2 Replies Last reply
        0
        • G gscheek

          When trying to compile the solution, it contains 1000+ errors. VS2008 compiles fine with no errors.

          GSC

          L Offline
          L Offline
          Luc Pattyn
          wrote on last edited by
          #4

          really? that is horrible. I haven't been playing with VS2010 myself but that is not the behavior I expect, nor what I gathered from reading lots of posts in the Visual Studio forum and Lounge. Do you have .NET 2.0 installed? (yes the Framework itself, not VS2008). :)

          Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]


          Prolific encyclopedia fixture proof-reader browser patron addict?
          We all depend on the beast below.


          1 Reply Last reply
          0
          • G gscheek

            When trying to compile the solution, it contains 1000+ errors. VS2008 compiles fine with no errors.

            GSC

            N Offline
            N Offline
            Not Active
            wrote on last edited by
            #5

            I've converted many projects from VS2008 to VS2010 and have not had any issues. Are they warnings or errors? What some of the errors you are experiencing?


            I know the language. I've read a book. - _Madmatt

            1 Reply Last reply
            0
            • G gscheek

              I have a solution with 10+ projects. Most of the projects are 100% .net 2.0. However one of the projects references a .Net 3.0 DLL. The solution compiles fine in VS2008, but will not compile with VS2010, because of the mixed frameworks. We may be able to upgrade to .Net 3.5, but that will be later on. Has anyone else found a solution to this issue? Currently the solution is in VS2005.

              GSC

              A Offline
              A Offline
              Abhinav S
              wrote on last edited by
              #6

              gscheek wrote:

              but will not compile with VS2010, because of the mixed frameworks

              That really should not be the case. When you opened the solution in 2010, did the conversion happen correctly?

              G 1 Reply Last reply
              0
              • A Abhinav S

                gscheek wrote:

                but will not compile with VS2010, because of the mixed frameworks

                That really should not be the case. When you opened the solution in 2010, did the conversion happen correctly?

                G Offline
                G Offline
                gscheek
                wrote on last edited by
                #7

                When converting from 2005 - VS2008, it worked fine. But when converting the 2005 solution to VS2010, there was a warning for each project. The warning message was that the project is targeting 2.0 framework, but contained references to 3.0 .net dll's. If VS2008 didn't have an issue with this, why would VS2010. Also, I have VS2005, VS2008, and VS2010 installed on the same machine. Exact warning message from VS2010, it done this for several of the projects in the solution file. Your project is targeting .NET Framework 2.0 or 3.0. If your project uses assemblies requiring a newer .NET Framework, your project will fail to build. You can change the .NET Framework version by clicking Properties on the project menu and then selecting a new version in the '.NET Framework' dropdown box. (In Visual Basic, this is located on the Compile tab by clicking the 'Advanced Compiler Options...' button.)

                GSC

                modified on Thursday, April 29, 2010 10:08 AM

                A 1 Reply Last reply
                0
                • G gscheek

                  When converting from 2005 - VS2008, it worked fine. But when converting the 2005 solution to VS2010, there was a warning for each project. The warning message was that the project is targeting 2.0 framework, but contained references to 3.0 .net dll's. If VS2008 didn't have an issue with this, why would VS2010. Also, I have VS2005, VS2008, and VS2010 installed on the same machine. Exact warning message from VS2010, it done this for several of the projects in the solution file. Your project is targeting .NET Framework 2.0 or 3.0. If your project uses assemblies requiring a newer .NET Framework, your project will fail to build. You can change the .NET Framework version by clicking Properties on the project menu and then selecting a new version in the '.NET Framework' dropdown box. (In Visual Basic, this is located on the Compile tab by clicking the 'Advanced Compiler Options...' button.)

                  GSC

                  modified on Thursday, April 29, 2010 10:08 AM

                  A Offline
                  A Offline
                  Abhinav S
                  wrote on last edited by
                  #8

                  gscheek wrote:

                  Your project is targeting .NET Framework 2.0 or 3.0. If your project uses assemblies requiring a newer .NET Framework, your project will fail to build. You can change the .NET Framework version by clicking Properties on the project menu and then selecting a new version in the '.NET Framework' dropdown box. (In Visual Basic, this is located on the Compile tab by clicking the 'Advanced Compiler Options...' button.)

                  Did you try this?

                  G 1 Reply Last reply
                  0
                  • A Abhinav S

                    gscheek wrote:

                    Your project is targeting .NET Framework 2.0 or 3.0. If your project uses assemblies requiring a newer .NET Framework, your project will fail to build. You can change the .NET Framework version by clicking Properties on the project menu and then selecting a new version in the '.NET Framework' dropdown box. (In Visual Basic, this is located on the Compile tab by clicking the 'Advanced Compiler Options...' button.)

                    Did you try this?

                    G Offline
                    G Offline
                    gscheek
                    wrote on last edited by
                    #9

                    yes, I was trying avoid doing this though, since in VS 2008 it worked when I targeted the 2.0 framework. After I changed all the projects to 3.5 framework, many of the errors disappeared, but now other ones have come up. So I'm trying to get those fixed.

                    GSC

                    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