What are the proper system environment settings for Microsoft's Visual Studio .NET 2002 compiler?

Solution Number:
S20292
Last Modified:
2013-07-06
Issue

What are the proper system environment settings for Microsoft's Visual Studio .NET 2002 compiler?

Solution

Currently OPNET does support Microsoft Visual Studio .NET (2002 version) for 9.0 and higher on Windows 2000 and Windows XP.  Please refer to the .NET documentation for platform-specific support.

If you are using Microsoft Visual Studio .NET 2003 compiler, please refer to S19233 and S20295


You may try using MVS .NET (2002 version) for OPNET releases prior to 9.0 if you wish.  Again, such a configuration configuration is not officially supported by OPNET for 8.1 and previous.  However, we do not expect problems; it is likely that it will work correctly.


Note that you must ensure your system environment is set up correctly. 
Here is the list of environment settings that should be set in the System Variables on your machine. (Note: If the variable name already exists, make sure that the value associated for that variable exists. If not, you must add the below value to the variable.  Consult you System Administrator for assistance.)

Also note that .NET installation generates a batch file vcvars32.bat that will set all the required shell variables if executed on the command line. For details please refer to MSDN article at http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore/html/_core_set_environment_variables.asp

NOTE: The following settings assume that Visual Studio .NET (2002 version) is installed in C:\Program Files\Microsoft Visual Studio .NET and that your SystemRoot variable is set to C:\WINNT.  If these settings are not the settings you have, then you will have to adjust the following settings accordingly.

IMPORTANT NOTE:  For all of the environment variables below, do not put spaces between the directories.

There should be no space between the semicolon ; and the drive letter of the next directory.

For example, the following is CORRECT:
C:\Program Files\Microsoft Visual Studio .NET\VC7\BIN;C:\Program Files\Microsoft Visual Studio .NET\Common7\Tools;

However, the following is INCORRECT:
C:\Program Files\Microsoft Visual Studio .NET\VC7\BIN; C:\Program Files\Microsoft Visual Studio .NET\Common7\Tools;

DevEnvDir=C:\Program Files\Microsoft Visual Studio .NET\Common7\IDE

FrameworkDir=C:\WINNT\Microsoft.NET\Framework

FrameworkSDKDir=C:\Program Files\Microsoft Visual Studio .NET\FrameworkSDK

FrameworkVersion=v1.0.3705

INCLUDE=C:\Program Files\Microsoft Visual Studio .NET\VC7\ATLMFC\INCLUDE;
C:\Program Files\Microsoft Visual Studio .NET\VC7\INCLUDE;
C:\Program Files\Microsoft Visual Studio .NET\VC7\PlatformSDK\include\prerelease;
C:\Program Files\Microsoft Visual Studio .NET\VC7\PlatformSDK\include;
C:\Program Files\Microsoft Visual Studio .NET\FrameworkSDK\include;

LIB=C:\Program Files\Microsoft Visual Studio .NET\VC7\ATLMFC\LIB;
C:\Program Files\Microsoft Visual Studio .NET\VC7\LIB;
C:\Program Files\Microsoft Visual Studio.NET\VC7\PlatformSDK\lib\prerelease;
C:\Program Files\Microsoft Visual Studio .NET\VC7\PlatformSDK\lib;
C:\Program Files\Microsoft Visual Studio .NET\FrameworkSDK\lib;

MSVCDir=C:\Program Files\Microsoft Visual Studio .NET\VC7

Path=C:\Program Files\Microsoft Visual Studio .NET\Common7\IDE;
C:\Program Files\Microsoft Visual Studio .NET\VC7\BIN;
C:\Program Files\Microsoft Visual Studio .NET\Common7\Tools;
C:\Program Files\Microsoft Visual Studio .NET\Common7\Tools\bin\prerelease;
C:\Program Files\Microsoft Visual Studio .NET\Common7\Tools\bin;
C:\Program Files\Microsoft Visual Studio .NET\FrameworkSDK\bin;
C:\WINNT\Microsoft.NET\Framework\v1.0.3705;

VCINSTALLDIR=C:\Program Files\Microsoft Visual Studio .NET

VSCOMNTOOLS=C:\Program Files\Microsoft Visual Studio .NET\Common7\Tools\

VSINSTALLDIR=C:\Program Files\Microsoft Visual Studio .NET\Common7\IDE

To ensure that the .NET product is installed correctly, open a Command Prompt and type cl to invoke the compiler.  Then type link to invoke the linker/binder.  Confirm that each of these commands returns the correct information for the .NET installation.

cl Should report a version number beginning with 13
If the version number is 12.0, see FAQ 676 for MSVC 6 information.

link Should report a version number beginning with 7.0
If the version number is 6.0, see FAQ 676  for MSVC 6 information.
If the version is 7.1, see FAQ 1111 for .NET 2003 information.

Environment

Modeler, OPNET Modeling and Simulation, OPNET Modeler
 

Attachments
NOTICE: Riverbed® product names have changed. Please refer to the Product List for a complete list of product names.
Can't find an answer? Create a case