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. Even targeting 3.5, metadata version v2.0.50727 ?

Even targeting 3.5, metadata version v2.0.50727 ?

Scheduled Pinned Locked Moved .NET (Core and Framework)
questioncsharphtmldotnetcom
4 Posts 2 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
    GuimaSun
    wrote on last edited by
    #1

    Just a matter of curiosity and general knowledge..easy question it seems but I didn't find an answer :( My project (I'm using VS2008) targets .net framework 3.5, but after compiling the IDLASM shows: // Metadata version: v2.0.50727 and examining the loaded application, the used DLLs really points to the 2.05 framework...should'nt it target the 3.5 ? Thanks for any help

    GuimaSun www.nexsun.com.br NEXSUN TechZone

    D 1 Reply Last reply
    0
    • G GuimaSun

      Just a matter of curiosity and general knowledge..easy question it seems but I didn't find an answer :( My project (I'm using VS2008) targets .net framework 3.5, but after compiling the IDLASM shows: // Metadata version: v2.0.50727 and examining the loaded application, the used DLLs really points to the 2.05 framework...should'nt it target the 3.5 ? Thanks for any help

      GuimaSun www.nexsun.com.br NEXSUN TechZone

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

      It is targetting 3.5. .NET 2.0, 3.0 and 3.5 all use the .NET 2.0 CLR. .NET 3.0 and 3.5 are just set of extensions to the .NET Framework Class Libraries. Neither of them introduced any additional functionality to the .NET CLR.

      A guide to posting questions on CodeProject[^]
      Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
           2006, 2007, 2008

      G 1 Reply Last reply
      0
      • D Dave Kreskowiak

        It is targetting 3.5. .NET 2.0, 3.0 and 3.5 all use the .NET 2.0 CLR. .NET 3.0 and 3.5 are just set of extensions to the .NET Framework Class Libraries. Neither of them introduced any additional functionality to the .NET CLR.

        A guide to posting questions on CodeProject[^]
        Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
             2006, 2007, 2008

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

        This is the answer I thought I'd get, but I found many articles refering to this as the required framework version. So, how can I get the required framework from the assembly file ? Thanks a lot.

        GuimaSun www.nexsun.com.br NEXSUN TechZone

        D 1 Reply Last reply
        0
        • G GuimaSun

          This is the answer I thought I'd get, but I found many articles refering to this as the required framework version. So, how can I get the required framework from the assembly file ? Thanks a lot.

          GuimaSun www.nexsun.com.br NEXSUN TechZone

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

          The line you're look at is telling you the .NET CLR version that is required to execute the code, not the .NET Framework version. The CLR is the virtual machine runtime that executes the code. The Framework is the class library that supplies the functionality for the thousands of classes you can use in your code. There is nothing in the metadata that specifies the .NET Framework version that is required to run the app. What you see in the manifest is the required .NET CLR version. Under that, you'll see a bunch of .assembly extern references. Each of these imports a namespace, specifying the public key and VERSION NUMBER the loader must bind to. Each reference can have it's own version number seperate from the rest. For example, if you create a blank WPF app targeting .NET Framework 3.5, you see the MSCORLIB is version 2.0, from .NET 2.0, SYSTEM from .NET 2.0, PresentationFramework from .NET 3.0, and WindowBase from .NET 3.0.

          A guide to posting questions on CodeProject[^]
          Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
               2006, 2007, 2008

          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