Freigeben über


How to: Set Sample Settings

The .NET Framework Samples require environment variable values to be specified on your computer. The variables are initialized when you start the SDK Command Prompt.

You can set these variables in a variety of ways, depending on your personal preferences. The .NET Framework SDK setup program does not set these variables on your computer.

The required values are provided by the sdkvars.bat batch file located in one of the following directories, depending on whether you installed Microsoft Visual Studio 2005:

  • Program Files\Microsoft.NET\SDK\v2.0\bin

  • Program Files\Visual Studio 8\SDK\v2.0\bin

The SDK Command Prompt calls the SDKVars.bat batch file, located in the Program Files\Microsoft.NET\SDK\v2.0\Bin directory. Note that the variables expire when you close the command prompt window.

To make the settings permanent, you can append the variable values to your environment variables by using the My Computer properties.

To start the SDK Command Prompt

  • Click Start, point to All Programs, point to Microsoft .NET Framework SDK v2.0, and then click SDK Command Prompt.

See Also

Tasks

How to: View and Download Samples

Other Resources

.NET Framework Samples