Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 491
  • Last Modified:

Why is my C# Project runtime version = v2.0.50??? when I have the target framework set to v3.5?

I have a project with the Target framework set to V3.5.  When I build it and look at the resulting dll, the runtime version is set to v2.0.50757.  Shouldnt this be V3.5?
0
sclamers
Asked:
sclamers
1 Solution
 
johnaryanCommented:
That's a common misconception.

3.5 is built on top of the 2.0 Framework, although it does use a newer version of the CLR.

When you build a project in VS2008, you select the Framework. If you select 2.0 then the 2.0 CLR will be used (for backward compatibility). On the other hand, if you select 3.5 - the 3.5 CLR will be used but this will use the existing 2.0 framework and the extra 3.5 libraries.

See: http://msdn.microsoft.com/en-us/library/bb822049.aspx

Hope this helps clear up a bit of the confusion.

John
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now