views:

32

answers:

2

Newbie question - How do I set up a VB.NET program so it will run on W2K ? I understand I can only use .Net 2.0 or older. Is there an easy way to limit which .net version is used/referenced ? (I have .Net 3.5 on my XP development computer) Updating target computers to XP, Vista, Windows 7 is NOT an option.

+1  A: 

Have your Visual Studio VB.NET project target the .NET Framework runtime version you install on your 2000 workstation.

With Visual Studio 2008 you can choose to target .NET 2.0, 3.0 or 3.5.

There are (at least) two ways to do this for a VB.NET project:

First, when you create a project. On the New Project dialog, there's a drop down on the top right-hand side of the screen from which you can specify the project's target Framework version.

Second, you can change the version by right clicking the project and selecting Properties. Click the Compile tab on the left and then click the 'Advanced Compile Options...' button. The 'Advanced Compiler Options' dialog appears and you can select the framework version on the pulldown on the bottom of the dialog. (it's certainly much easier to do this in a C# project!)

Jay Riggs
Express Edition does not allow to change the target version...in that case he'd have to use an alternate IDE like SharpDevelop (or edit it by hand, but I'm not sure if that will work).
Bobby
A: 

Thanks Jay, I know in a C# project you can set a target Framework under Properties > Application, but I'm not finding where to set the target Framework in the IDE for a VB.NET project. Maybe you could point me in the right direction (I did say I was a newbie) ?

Miffy
@miffy - I edited my response with instructions on how to do this. (BTW, your response here would have been better as a comment to my response)
Jay Riggs