473,503 Members | 1,650 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

vs 2008 compiles 3.5 code regardless of target version

http://ebsteblog.wordpress.com/2008/...s-with-net-20/

Is it true that many of the 3.5 (or c# 3.0) features will work even if
you are targeting the .NET 2.0 framework? This makes it very easy to
mistakenly deploy code to your test or production environments that
work in development but do not work on the server. Is there a way to
cause these to become compiler errors during development so you can
catch them early on?
Jul 28 '08 #1
2 1254
Keep in mind, the 3.5 framework is not a new framework, it is extensions to
the 2.0 framework. So many people loose which features are available where.
The biggest thing in 3.5 from an ASP.Net perspective was ASP.Net Ajax in the
System.Web.Extension dll. Many hosts installed this to 2.0 anyways as it was
available as a separate download before the 3.5 framework release. The
largest feature lost is Linq since that is only in the 3.5 framework. Most
of the 3.0 features don't effect ASP.Net since they deal with Windows
Presentation Foundation, Windows Workflow, and Windows Communication
Foundation. Nothing directly added in ASP.Net. So, most of a 3.5 application
can still work in 2.0 since they use the same core framework pieces.

Hope this helps,
Mark Fitzpatrick
Microsoft MVP - Expression

"Fregas" <fr****@gmail.comwrote in message
news:35**********************************@k37g2000 hsf.googlegroups.com...
http://ebsteblog.wordpress.com/2008/...s-with-net-20/

Is it true that many of the 3.5 (or c# 3.0) features will work even if
you are targeting the .NET 2.0 framework? This makes it very easy to
mistakenly deploy code to your test or production environments that
work in development but do not work on the server. Is there a way to
cause these to become compiler errors during development so you can
catch them early on?
Jul 29 '08 #2
Many features are simply 2.0 which are 'shortened' to be cooler/simpler.
They are then extened to actual 2.0 code prior to compilation

Evan Camilleri
http://www.holisticrd.com

"Fregas" <fr****@gmail.comwrote in message
news:35**********************************@k37g2000 hsf.googlegroups.com...
http://ebsteblog.wordpress.com/2008/...s-with-net-20/

Is it true that many of the 3.5 (or c# 3.0) features will work even if
you are targeting the .NET 2.0 framework? This makes it very easy to
mistakenly deploy code to your test or production environments that
work in development but do not work on the server. Is there a way to
cause these to become compiler errors during development so you can
catch them early on?

Jul 29 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
4537
by: Cirene | last post by:
I installed the RTM version of Visual Studio 2008 today. Initially when I would open any of my 2005 projects (.NET 2.0) it would simply open them. Now the Visual Studio Conversion Wizard is...
8
5774
by: =?Utf-8?B?QXNhZg==?= | last post by:
Hi, 1. Do I need to install "AjaxControlExtender.vsi" and to use "AJAX Control Toolkit Web Site" template when I create a new web site or I can just use "ASP.NET Web Site" and to add "Script...
15
1401
by: Andrew | last post by:
Ok, today I decided to open vs 2008 and start to see what's the changes. What's the best way to try do do something? So I decided to read a stupid xml file with LinQ ... but ... strange thing...
2
2596
by: NvrBst | last post by:
I'm not too much of a C++ programmer but I have a bunch of C programs (they compile with GNU) and want to get them to compile in VC++ 2008. In Unix I go "./configure" and it makes a "Makefile". ...
4
2602
by: Colin J. Williams | last post by:
1.I have both 2.5 and 2.6 but both appear, under Recent Projects, as pcbuild. It would be helpful if the Python Version could be indicated. 2.With 2.6, Python compiles and executes OK but...
1
1671
by: Jim Langston | last post by:
I'm trying to compile some source code to interface LUA into C++. When I compile in MSVC++ Express 2008, however, I get the error (among others): ....\luastate.h(129) : error C2027: use of...
3
912
by: cj | last post by:
I know there is a menu somewhere in 2008 that lets you set the version of .net to build the app to. Where is it? I'm building a windows app if that makes a difference.
6
4867
by: Miro | last post by:
I can run an exe ( and its install ) i have created on my machine. The exe has a button that populates a dataset and then shoots it to a crystal report. But... Installing the setup.exe on my...
4
3278
by: Miro | last post by:
<i have also added this reply to the other newsgroup - now that I have realizd ( and assuming ) it is not a localized error directly to vb.> I have found this link on the website:...
0
7201
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7083
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7278
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
6988
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7456
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5011
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4672
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
1
734
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
379
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.