Target framework verion different?

Posted on 2012-09-15
Last Modified: 2012-09-19

I have several projects which are referencing .net 2.0 and I created projects using .net 3.5 and 4.

When I try to reference newly created projects to the old project, I am getting this message.

I would like to upgrade old projects to the net 3.5 or 4.

Do I just unreference thos .net2.0 and add .net3.5?

How can I check if current app will break or not with more recent framework?

The Target Framework version for the project 'XXX.Gui' is higher than the current project Target Framework Verion
Would you like to addthis refrence to your project anyway?
Question by:dkim18
    LVL 83

    Accepted Solution

    You can change the framework version in project properties.
    LVL 40

    Assisted Solution

    by:Jacques Bourgeois (James Burger)
    Most of the time, using the newer version of the framework is better. Performance can be improved, rare bugs could have been solved, new features might have been added. As long as the users have the newer version of the framework installed on their computer that is.

    There are very few breaking changes between versions of the framework, and those usually involve features that are used by a very small percentage of programmers.

    And Microsoft uses a very good way of making changes to the framework. They never intentionnally make changes that will break applications right away. The thing works very well if you do not skip a version of the framework. Advised programmers always check their projects regularly in the free Express Edition of Visual Studio when they need to skip a version, so as to make sure that the following mechanism works for them.

    When they need to change something that can break old applications, they leave it in the newer versions of the framework for a few years. It's use shows a warning, so it can still be used for 1 or 2 versions of the framework. You also get a link to a way to prepare your project for the day the feature will be definitively removed or changed. So, when you upgrade a project from one version of the framework to the one or two that comes just after, you are told of future breaking changes.

    Take the attached screen shot. This warning appears in code that targets framework 4 and 4.5. Eventually, in later frameworks, it will become an error. But programmers who check their project regularly against the latest version of the framework, even if they are still on 3.5 for some reason, have known for 2 years now that OracleClient will eventually be dropped, and they are already coding with that warning in mind so their application won't break when they will switch to a version of the framework that does not support Oracle from the box.
    LVL 55

    Assisted Solution

    by:Jaime Olivares
    There is no problem when referencing a difference .net version in the range 2.0 - 4.5. This is just a [good] suggestion to take into account.

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Join & Write a Comment

    Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
    A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
    Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now