Search code examples
c#.netbackwards-compatibility

C# backwards compatibility


  1. I am using windows 7 running .net 4.0
  2. I wrote an application on my platform then distributed it to my coworkers.
  3. They are using windows XP .net 3.0 and 3.5
  4. They can not update to .net 4 for business reasons.
  5. I am running Visual studio 2010

How can i make my application backwards compatible so that they can use it?


Solution

  • If you don't use any .NET 4 specific features, just target 3.0 or 3.5. That will solve any compatibility problems. Here's a link on MSDN detailing how to do it:

    • On the Project menu, click ProjectName Properties.
    • Click the Application tab.
    • In the Target Framework list, select either .NET Framework 2.0, .NET Framework 3.0, or .NET Framework 3.5.