开发者

Disable VB.NET 10 Features in VS 2010

开发者 https://www.devze.com 2022-12-31 08:55 出处:网络
is there a 开发者_Python百科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 Stu

is there a 开发者_Python百科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.


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>
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号