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

  • SEARCH
  • Home
  • 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 3302324
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T20:50:23+00:00 2026-05-17T20:50:23+00:00

I have a solution that contains several projects. One of the test projects is

  • 0

I have a solution that contains several projects. One of the test projects is using .NET 4.0 due to a dependency. The deploy-able project I want to build is targeted against the .NET 3.5 compiler. Our current build script is not granular enough to target different .NET compilers on a project by project basis. Basically I can only use one compiler for every project in the solution.

Is the .NET 4.0 compiler smart enough to compile 3.5 code?

Solution Structure

  • Project 1 .NET 3.5 (deploy-able)
  • Project 2 .NET 4.0 (used for testing in automated build cycle)

Note:
I can not just ignore Project 2, because our automated build server runs the unit tests in project 2. All tests must pass before a build is successful.

Edit:

I am not compiling this code within Visual Studio. We have a custom build script that is run external to visual studio. It is only smart enough to use 1 .NET compiler. It uses this compiler to compile all of the projects in a given solution. The build script does not care whether or not the projects are defined to be compiled against 3.5 or 4.0. Instead it compiles them with the defined compiler.

Project 1 does not reference project 2. Project 2 is a project containing unit tests. Our automated build tool compiles project 2 only to run tests.

  • 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-17T20:50:24+00:00Added an answer on May 17, 2026 at 8:50 pm

    EDIT

    Op clarified the question is the comments as

    Can the 4.0 compiler compile a 3.5 project

    The answer is yes this is very possible.

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

Sidebar

Related Questions

I have a solution that contains two projects. One project is an ASP.NET Web
I have a solution that contains a good deal of projects, I would like
I have a VS solution that contains 6 library projects and 1 web folder
I have a Visual Studio solution that comprises of several projects and are separated
I have 3 projects in my solution that I want to deploy. Is there
I have 3 projects in my solution that I want to deploy. Is there
I have a solution that is deployed using ClickOnce. It consists of an application,
I have a solution that is missing a lot of code coverage. I need
I have been tasked with developing a solution that tracks changes to a database.
I have a very simple problem and a solution that will work, but I'm

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.