开发者

How to find the currently used VB version?

开发者 https://www.devze.com 2023-03-29 14:21 出处:网络
I\'m working on a VB.Net Project and someone suggested me to use the VB2008 IF(a,b,c) operator. I think I am using VB2005, but I c开发者_C百科an\'t find where to confirm that information.

I'm working on a VB.Net Project and someone suggested me to use the VB2008 IF(a,b,c) operator. I think I am using VB2005, but I c开发者_C百科an't find where to confirm that information.

Also, is the server's IIS version important for the VB version used? (I think so, but I'd like confirmation... And a way to know what IIS version match what VB version).


There are 2 separate concerns here

  • The version of Visual Studio you are running
  • The version of the VB.Net compiler being used

The version of Visual Studio should be very straight forward. Simply go to the Help menu of Visual Studio and it will identify the version.

Each version of Visual Studio can be used with a specific subset of VB.Net versions. The default version is the highest version available

  • Version 2005: VB.Net 8.0
  • Version 2008: VB.Net 9.0 and 8.0
  • Version 2010: VB.Net 10.0, 9.0 and 8.0

The If operator has been around since VB.Net 9.0 which is generally associated with Visual Studio 2008.

There is no real correlation between IIS versions and VB.Net versions. IIS is generally configurable to work with whatever version of VB.Net is installed on the machine. In order to determine that version you'll need to contact the server admin and see what version of the .Net framework IIS is working with.

0

精彩评论

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

关注公众号