संपादित करें

इसके माध्यम से साझा किया गया


-sdkpath

Specifies the location of mscorlib.dll and Microsoft.VisualBasic.dll.

Syntax

-sdkpath:path  

Arguments

path
The directory containing the versions of mscorlib.dll and Microsoft.VisualBasic.dll to use for compilation. This path is not verified until it is loaded. Enclose the directory name in quotation marks (" ") if it contains a space.

Remarks

This option tells the Visual Basic compiler to load the mscorlib.dll and Microsoft.VisualBasic.dll files from a non-default location. The -sdkpath option was designed to be used with -netcf. The .NET Compact Framework uses different versions of these support libraries to avoid the use of types and language features not found on the devices.

Note

The -sdkpath option is not available from within the Visual Studio development environment; it is available only when compiling from the command line. The -sdkpath option is set when a Visual Basic device project is loaded.

You can specify that the compiler should compile without a reference to the Visual Basic Runtime Library by using the -vbruntime compiler option. For more information, see -vbruntime.

Example

The following code compiles Myfile.vb with the .NET Compact Framework, using the versions of Mscorlib.dll and Microsoft.VisualBasic.dll found in the default installation directory of the .NET Compact Framework on the C drive. Typically, you would use the most recent version of the .NET Compact Framework.

vbc -netcf -sdkpath:"c:\Program Files\Microsoft Visual Studio .NET 2003\CompactFrameworkSDK\v1.0.5000\Windows CE " myfile.vb  

See also