Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disable VB.NET 10 Features in VS 2010

is there a way to disable visual basic 10 language features in VS 2010. our Dev team has moved to Visual studio 2010, but we still have to keep backwards compatibility with Visual Studio 2008. is there a way to disable the new language features to avoid any issues.

like image 658
kay.one Avatar asked May 21 '10 16:05

kay.one


Video Answer


1 Answers

The VB.NET compiler has the /langversion command line option. It is supported by msbuild but not the IDE. Sloppy, but fixable. Open the .vbproj in, say, notepad and paste this XML, right after the Project element:

  <PropertyGroup>
    <LangVersion>9</LangVersion>
  </PropertyGroup>
like image 96
Hans Passant Avatar answered Oct 02 '22 19:10

Hans Passant