在VS 2010中禁用VB.NET 10功能 [英] Disable VB.NET 10 Features in VS 2010

查看:126
本文介绍了在VS 2010中禁用VB.NET 10功能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有一种方法可以禁用VS 2010中的Visual Basic 10语言功能。
我们的开发团队已移至Visual Studio 2010,但我们仍必须保持与Visual Studio 2008的向后兼容性。禁用新语言功能以避免任何问题。

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.

推荐答案

VB.NET编译器具有/ langversion命令行选项。 msbuild支持它,但IDE不支持。马虎,但可修复。例如在记事本中打开.vbproj,然后将XML粘贴在Project元素之后:

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>

这篇关于在VS 2010中禁用VB.NET 10功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆