Disable VB.NET 10 Features in VS 2010

后端 未结 1 1125
故里飘歌
故里飘歌 2020-12-31 22:26

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

相关标签:
1条回答
  • 2020-12-31 22:35

    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 讨论(0)
提交回复
热议问题