Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Compiling C# .net 4 code to .net 3.5?

I made a program in Visual Studio 2010 that targeted .NET 4.0 originally. However, now I need to target .NET 3.5 instead of 4.0. How can I change my target framework version to compile with an earlier version of .NET?

like image 773
Oztaco Avatar asked Feb 20 '26 18:02

Oztaco


1 Answers

If your code is compilable with C# 3.5 (depends on what you used), right click on your project and press on properties, then in application tab change target framework to 3.5.

Your project will be reloaded and you may now compile it

This article explains you what you should have not used if you want compile code on 3.5

like image 121
Francesco Belladonna Avatar answered Feb 22 '26 07:02

Francesco Belladonna



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!