Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3944484
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T00:54:21+00:00 2026-05-20T00:54:21+00:00

In a project which target framework is 3.5 the following line compiles with MsBuild

  • 0

In a project which target framework is 3.5 the following line compiles with MsBuild 4.0:

 aEnumerable.Select(aMethod);

But MsBuild 3.5 requires me to write:

 aEnumerable.Select(item => aMethod(item));

Will both binaries will run a machine without .NET Framework 4.0, but with .NET 3.5?

PS: While i showed an example using “method overload inference” the same happens with other “4.0” features (eg. “named parameters”).

another title for this question could be: What C# 4.0/Visual Studio 2010 features are .NET 3.5 compatible?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T00:54:22+00:00Added an answer on May 20, 2026 at 12:54 am

    You are confusing Msbuild and the .NET framework.

    Msbuild is just a tool to build .NET projects. Version 4.0 is required to build .NET 4 projects, but it can also do .NET 1.1, 2.0, 3.0, 3.5, 3.5 SP1. Its just like using Word 2010 to open a Word 2003 file. 2010 will open both, but 2003 will crash if you give it a 2010 file

    Your code examples are showing differenecs added to the framework in version 4.0. You cannot execute .NET 4 code on a machine that doesn’t haven’t the .NET 4.0 framework installed. Doesn’t matter what builds it, the runtime will not be able to understand the CLR and it won’t run

    As for msBuild itself:
    MsBuild 4.0 is a new version, largely updated to support .NET 4, but also with its own features. Consult the release notes for msbuild4 if you need those details.

    That said, MsBuild 4 is fully capable of producing .NET 3.5 output so long as the targetFramework is properly configured. (We moved all our builds to MsBuild 4.0 long before we upgraded all projects to the .NET 4 framework)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm starting a project which requires reading outlook msg files in c#. I have
I'm on a project which is trying to write what amounts to a Mailing
I've got a project which requires a fairly complicated process and I want to
The Situation I'm working on a group web project which uses the Spring framework.
We use MSBuild to run a project which, among many other things, reads some
I have a project in Eclipse (Indigo but similar in Helios) which has files
I have a Rails project which I neglected to build tests for (for shame!)
I have a project which is source controlled using Subversion and VisualSVN. Since the
I have a Rails project which has a Postgres database for the actual application
I'm starting a project which I think would benefit from bindings (I've got a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.