posted on Friday, June 10, 2005 11:57 PM by leon

C# 1.0 Conformance in VS2005

Just found out new feature of Visual Studio 2005 (thanks to tip of Juval Lowy at TechEd lecture): you can ask compiler to check and compile code for 1.0 version of C#. You will receive errors for using new (C# 2.0) features.

To use it just go to the Project Properties>Build>Advanced and select ISO-1 in Language Versio combo. Notice that compiled assembly references will be resolve to version 2.0.

In conjunction with MSBuild Toolkit it gave nice solution for legacy applications support.

Comments