.NET 3.5 vs. .NET 3.0

南笙酒味 提交于 2019-12-05 21:46:34

You can use a number of 3.5 features, such as extention methods if you use the 3.5 compiler. But targeting the 3.0 is not going to hurt you much if the 200mb download is a serious concern

You're right: there is definitely an advantage in not requiring that users download another framework.

A couple of tips: if you're going to target FW3.0, you can still use Studio 2008 rather than Studio 2005 - and the C# 3.0 or VB 9.0 compilers. Simply set the target Framework to 3.0 in project properties. Also, you can still use LINQ to Objects with LINQBridge.

If you're accessing a database, you will miss out on LINQ to SQL (or Entity Framework), which I've found really simplifies development of the middle tier. For me, that would be a reason to favour Framework 3.5.

What you need is .NET Framework 3.5 SP1 Client Profile, which gives you 3.5 with minimal installation size, which is usually 2x MB.

I think that's a question only you can answer. Does having the user download/install another 200 megabytes out way your preparation for the future? Although you say that you do not need the advanced stuff, you never know if you're going to need it in the future.

Obviously you could always start in 3.0, and when you really need 3.5, upgrade your project to the newer version (by that time that could also be version 4.0 ofcourse).

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!